Skip to content

Commit

Permalink
improved inspectors on associations
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Dec 17, 2023
1 parent 867f60c commit 0a1b101
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions repository/OP-UML-Metamodel/OPUMLMetaElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ OPUMLMetaElement >> inspectionAllProperties [
<inspectorPresentationOrder: 6 title: 'Properties (All)'>
^ SpTablePresenter new
beResizable;
items: self inspectorProperties sorted;
items: (self inspectorProperties sorted collect: [ :e |
StInspectorAssociationNode hostObject: e ]);
addColumn: (SpStringTableColumn new
title: 'Name';
evaluated: #key;
Expand All @@ -125,7 +126,8 @@ OPUMLMetaElement >> inspectionGeneralizations [
<inspectorPresentationOrder: 8 title: 'Generalizations'>
^ SpTablePresenter new
beResizable;
items: sharedGeneralizations associations;
items: (sharedGeneralizations associations sorted collect: [ :e |
StInspectorAssociationNode hostObject: e ]);
addColumn: (SpStringTableColumn new
title: 'Name';
evaluated: #key;
Expand All @@ -143,7 +145,8 @@ OPUMLMetaElement >> inspectionProperties [
<inspectorPresentationOrder: 5 title: 'Properties'>
^ SpTablePresenter new
beResizable;
items: self nonEmptyinspectorProperties sorted;
items: (self nonEmptyinspectorProperties sorted collect: [ :e |
StInspectorAssociationNode hostObject: e ]);
addColumn: (SpStringTableColumn new
title: 'Name';
evaluated: #key;
Expand Down Expand Up @@ -194,7 +197,8 @@ OPUMLMetaElement >> inspectionTags [
<inspectorPresentationOrder: 7 title: 'Tags'>
^ SpTablePresenter new
beResizable;
items: self tags associations;
items: (self tags associations sorted collect: [ :e |
StInspectorAssociationNode hostObject: e ]);
addColumn: (SpStringTableColumn new
title: 'Name';
evaluated: #key;
Expand Down

0 comments on commit 0a1b101

Please sign in to comment.