|
Class: ProjectProblem
Object
|
+--ProjectProblem
|
+--ProjectProblem::ClassProblem
|
+--ProjectProblem::InvalidPackageName
|
+--ProjectProblem::ProjectDefinitionDoesNotExist
- Package:
- stx:libbasic3
- Category:
- System-Support-Projects
- Version:
- rev:
1.65
date: 2019/07/10 16:32:03
- user: cg
- file: ProjectProblem.st directory: libbasic3
- module: stx stc-classLibrary: libbasic3
I represent a problem as detected by the project consistency checker,
which is optionally executed before committing a package to a repository.
Typically, I find inconsistencies, uncompilable methods or missing prerequisites,
which might lead to trouble when the package is later to be compiled to a dll via stc.
[instance variables:]
package - the package in question
fixes - a collection of possible fixes
(to be shown in the HTML view of the problem browser)
allProblems - the collection of problems I am part of
(only needed to be able to do the
'fix other problems of this kind' operation,
for example in the MethodOnNoPackage problem.)
ProjectChecker
ProjectDefinition
instance creation
-
newClass: aClass usesPoolButItDoesNotExist: poolName
-
-
newClassIsCompiledButSuperclassIsAutoloaded
-
-
newClassIsCompiledButSuperclassProjectDefinitionIsMissing
-
-
newClassListedBeforeItsPool
-
-
newClassListedBeforeItsSuperclass
-
-
newClassListedBeforeItsSuperclass: aClass
-
-
newClassListedButDoesNotExist
-
-
newClassListedButInOtherPackage
-
-
newClassListedMultipleTimes
-
-
newClassListedMultipleTimes: aClass
-
-
newClassNotListed
-
-
newClassShouldNotBeInPackage
-
-
newClassUsesPoolButItDoesNotExist
-
-
newClassUsesPoolButItIsNotASharedPool
-
-
newClassUsesPoolInNamespaceButNamespaceIsNotDefined
-
-
newExtensionMethodListedButDoesNotExist
-
-
newExtensionMethodListedButInDifferentPackage
-
-
newExtensionMethodNotListed
-
-
newExtensionMethodsClassDoesNotExist
-
-
newInvalidPackageName
-
-
newMethodCompilabilityIssue1
-
-
newMethodCompilabilityIssue2
-
-
newMethodInNoPackage
-
-
newMethodListedInOtherPackage
-
-
newMethodSourceCorrupted
-
-
newMethodSourceNotAvailable
-
-
newProjectDefinitionDoesNotExist
-
accessing
-
allProblems: something
-
-
countOtherProblemsOfThisKind
-
-
description
-
Return a (HTML) describing the problem.
** This method raises an error - it must be redefined in concrete classes **
-
descriptionAndFixes
-
Return a (HTML) describing the problem plus possible fixes.
-
klass
-
Return the class which is subject of the problem.
To be redefined in problems which are class-related
-
label
-
Return the label (possibly instance if a Text) shortly describing the problem
** This method raises an error - it must be redefined in concrete classes **
-
package
-
-
package: aSymbol
-
-
packageDefinitionClass
-
-
severity
-
Return a severity - one of #error, #warning, #info
fixing
-
allUnfixedProblemsOfMyKindDo: aBlock
-
-
alreadyFixed
-
-
doFix: index
-
-
fixes
-
Return (possibly empty) list of description-action pairs that
the user may take to fix/investigate the problem.
Returned value should be list of pairs (label, action block).
To be overriden in subclasses.
The list should be an array of pairs ( fix label , fix block ).
Fix block should return true, if the fix was successful,
false otherwise
initialization
-
initializeFixes
-
super initialize. -- commented since inherited method does nothing
printing & storing
-
displayOn: aGCOrStream
-
what a kludge - Dolphin and Squeak mean: printOn: a stream;
-
printOn: aStream
-
append a printed representation of the receiver to the argument, aStream
utilities-HTML
-
linkToClass: classOrclassName
-
-
linkToClass: classOrclassName selector: selector
-
-
linkToClass: classOrclassName selector: selector omitClassName: omitClassName
-
-
linkToPackage: packageId
-
ClassIsCompiledButSuperclassIsAutoloaded
ClassIsCompiledButSuperclassProjectDefinitionIsMissing
ClassListedBeforeItsPool
ClassListedBeforeItsSuperclass
ClassListedButDoesNotExist
ClassListedButInOtherPackage
ClassListedMultipleTimes
ClassNotListed
ClassProblem
ClassShouldNotBeInPackage
ClassUsesPoolButItDoesNotExist
ClassUsesPoolButItIsNotASharedPool
ClassUsesPoolInNamespaceButNamespaceIsNotDefined
ClassUsesPoolProblem
ExtensionMethodListedButDoesNotExist
ExtensionMethodListedButInDifferentPackage
ExtensionMethodNotListed
ExtensionMethodsClassDoesNotExist
InconsistentProjectDefinition
InvalidPackageName
MethodCompilabilityIssue1
MethodCompilabilityIssue2
MethodInNoPackage
MethodListedInOtherPackage
MethodProblem
MethodSourceCorrupted
MethodSourceNotAvailable
ProjectDefinitionDoesNotExist
|