Skip to content

Commit

Permalink
Merge pull request #1027 from moosetechnology/fix-tags-in-architectural
Browse files Browse the repository at this point in the history
Fix display of tags in architectural
  • Loading branch information
jecisc authored Feb 16, 2024
2 parents 941b559 + 0be896b commit 410dd00
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/MooseIDE-Dependency/MiArchitecturalMapBuilder.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,23 @@ MiArchitecturalMapBuilder >> build [
MiArchitecturalMapBuilder >> buildChildrenNodesFrom: anEntity [

^ ((self mapModel childrenFor: anEntity)
collect: [ :e | anEntity == e ifFalse: [ self buildNodeFromEntity: e ] ]
thenSelect: [ :e | e isNotNil ]) sort: [ :c1 :c2 | c1 name < c2 name ]
collect: [ :childEntity | self buildNodeFromEntity: childEntity ]
thenSelect: [ :childNode | childNode isNotNil ]) sort: [ :c1 :c2 | c1 name < c2 name ]
]

{ #category : #building }
MiArchitecturalMapBuilder >> buildChildrenNodesFromTag: aTag [

^ ((aTag taggedEntities collect: [ :e | aTag == e ifFalse: [ self buildNodeFromEntity: e ] ]) reject: [ :e | e isNil or: [ e parent notNil ] ]) sort: [ :a :b |
a name < b name ]
^ ((aTag taggedEntities collect: [ :taggedEntity | self buildNodeFromEntity: taggedEntity ]) reject: [ :childNode |
childNode isNil or: [ childNode parent isNotNil ] ]) sort: [ :a :b | a name < b name ]
]

{ #category : #building }
MiArchitecturalMapBuilder >> buildNodeFrom: aMooseEntity [

^ aMooseEntity isTag
ifTrue: [ self buildNodeFromTag: aMooseEntity ]
ifFalse: [ self buildNodeFromEntity: aMooseEntity ]
]

{ #category : #building }
Expand Down Expand Up @@ -240,7 +248,7 @@ MiArchitecturalMapBuilder >> createMultiTagBoxSized: aSize [
MiArchitecturalMapBuilder >> createRootNodes [

^ (mapModel rootNodes
collect: [ :e | self buildNodeFromEntity: e ]
collect: [ :e | self buildNodeFrom: e ]
thenReject: [ :node | node isNil ]) sort: [ :a :b | a name < b name ]
]

Expand Down

0 comments on commit 410dd00

Please sign in to comment.