Skip to content

Commit

Permalink
Update project tree when model removed
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jul 7, 2024
1 parent 7e56d46 commit fce6c47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ OPPetriNetArcController >> isHideable [
^ true
]

{ #category : 'removing' }
{ #category : 'destruction' }
OPPetriNetArcController >> removeModel [

self model announcer unsubscribe: self.
self diagramController model remove: self model
self diagramController model remove: self model.
super removeModel
]
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ OPPetriNetNodeController >> isHideable [
^ true
]

{ #category : 'removing' }
{ #category : 'destruction' }
OPPetriNetNodeController >> removeModel [

self model announcer unsubscribe: self.
self diagramController model remove: self model
self diagramController model remove: self model.
super removeModel
]

0 comments on commit fce6c47

Please sign in to comment.