Skip to content

Commit

Permalink
Roassal3 changes adaptation
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 13, 2023
1 parent 50ced95 commit aa379ce
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions repository/OpenPonk-ClassEditor/OPUmlPackageShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ OPUmlPackageShape >> renderShapeDetails [
model: self;
yourself.
self canvas add: ear.
self roassalShape when: RSShapeRemovedEvent do: [ ear remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [ ear remove ]
for: self.
mainLabel := RSLabel new
color: Color black;
model: self;
Expand All @@ -83,9 +86,12 @@ OPUmlPackageShape >> renderShapeDetails [
yourself.
self canvas add: mainLabel.
self canvas add: stereotypeLabel.
self roassalShape when: RSShapeRemovedEvent do: [
mainLabel remove.
stereotypeLabel remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [
mainLabel remove.
stereotypeLabel remove ]
for: self.
RSLocation new
inner;
left;
Expand All @@ -100,11 +106,14 @@ OPUmlPackageShape >> renderShapeDetails [
outer;
below;
stick: mainLabel on: stereotypeLabel.
mainLabel when: RSExtentChangedEvent do: [ :event |
self roassalShape width: {
self width.
self minWidth.
(mainLabel width + self padding) } max ].
mainLabel
when: RSExtentChangedEvent
do: [ :event |
self roassalShape width: {
self width.
self minWidth.
(mainLabel width + self padding) } max ]
for: self.

self roassalShape
@ OPRSSelectable;
Expand Down

0 comments on commit aa379ce

Please sign in to comment.