Skip to content

Commit

Permalink
fix #175
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Jul 25, 2019
1 parent be0fac6 commit 137a08c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/uml/UMLClassDefinitionListComposite.cls
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ showImplementationsOf: anUMLClass

implementationsPresenter model: (ListModel on: (anUMLClass implementations asSortedCollection: [:a :b | a name <= b name])).

instVarPresenter model: (ListModel on: (anUMLClass basicVariables asSortedCollection: [:a :b | a name <= b name])).
instVarPresenter model: (ListModel on: (anUMLClass basicAndObjectVariables asSortedCollection: [:a :b | a name <= b name])).

relationsPresenter model: (ListModel on: (anUMLClass relations asSortedCollection: [:a :b | a printName <= b printName])).! !
!UMLClassDefinitionListComposite categoriesFor: #classes!public! !
Expand Down
7 changes: 6 additions & 1 deletion sources/uml/UMLObjectBehavior.cls
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@ atVariableName: stringName
atVariableName: stringName ifAbsent: aBlock
^instancesVariables at: stringName asSymbol ifAbsent: [instancesVariables at: stringName asString ifAbsent: aBlock]!

basicAndObjectVariables

^instancesVariables reject: [:each | each hasMultipleInstances]!

basicImplementationNamed: aSymbol

^implementations at: aSymbol ifAbsent: [nil]!

basicVariables

^instancesVariables reject: [:each | each hasMultipleInstances]!
^instancesVariables select: [:each | each isBasic]!

belongToVirtualMachine

Expand Down Expand Up @@ -317,6 +321,7 @@ vmPerform: aSymbol withArguments: anArray parentSnapshot: anUMLExecutionSnapsho
!UMLObjectBehavior categoriesFor: #attributes!instance variables!public! !
!UMLObjectBehavior categoriesFor: #atVariableName:!instance variables!public! !
!UMLObjectBehavior categoriesFor: #atVariableName:ifAbsent:!instance variables!public! !
!UMLObjectBehavior categoriesFor: #basicAndObjectVariables!instance variables!public! !
!UMLObjectBehavior categoriesFor: #basicImplementationNamed:!behavior!public! !
!UMLObjectBehavior categoriesFor: #basicVariables!instance variables!public! !
!UMLObjectBehavior categoriesFor: #belongToVirtualMachine!public! !
Expand Down
2 changes: 1 addition & 1 deletion sources/uml/UMLSmalltalkMapper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ getAspectsForStClass: aidaWebClass aspect: aspectSymbol
ifFalse: [(aspectObject smalltalkObject first umlClass getImplementationsFor: UMLGUICollectionAspectsCategory current) collect: [:each | each name]].
aspectsArray := '#('.
aspectsNames isEmpty "ifNone: display basicVariables. ifNone then the collection aspects has not been configured"
ifTrue: [aspectsNames := aspectObject umlClass basicVariables collect: [:each | each name]].
ifTrue: [aspectsNames := aspectObject umlClass basicAndObjectVariables collect: [:each | each name]].
aspectsNames do: [:each | aspectsArray := aspectsArray, each, ' '].
aspectsArray := aspectsArray, ')'.
^aspectsArray .
Expand Down

0 comments on commit 137a08c

Please sign in to comment.