Skip to content

Commit

Permalink
moved few methods to OP core, removed few unused ones
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jun 24, 2024
1 parent f5206fb commit 3cec466
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
Class {
#name : 'OPBormProcessNodeController',
#superclass : 'OPBormElementController',
#instVars : [
'ownerParticipant'
],
#category : 'OpenPonk-BormEditor-Controllers',
#package : 'OpenPonk-BormEditor',
#tag : 'Controllers'
Expand Down Expand Up @@ -66,39 +63,7 @@ OPBormProcessNodeController >> hookDiagramElement [
self model submodel ]
]

{ #category : 'accessing' }
OPBormProcessNodeController >> ownerParticipant [
^ ownerParticipant
]

{ #category : 'accessing' }
OPBormProcessNodeController >> ownerParticipant: aParticipantController [
ownerParticipant := aParticipantController
]

{ #category : 'destruction' }
OPBormProcessNodeController >> removeModel [
self model owner remove: self model
]

{ #category : 'construction' }
OPBormProcessNodeController >> setOwnerParticipant [

self ownerParticipant: (self diagramController controllerForModel:
(self diagramController model participants detect: [ :any |
any elements includes: model ]))
]

{ #category : 'construction' }
OPBormProcessNodeController >> showInDiagram: aDiagramController [

super showInDiagram: aDiagramController.
self setOwnerParticipant
]

{ #category : 'construction' }
OPBormProcessNodeController >> showWithoutDependentInDiagram: aDiagramController [

super showWithoutDependentInDiagram: aDiagramController.
self setOwnerParticipant
]
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,3 @@ OPBormRelationshipController >> elementsToShowInside [
OPBormRelationshipController >> isHideable [
^ true
]

{ #category : 'construction' }
OPBormRelationshipController >> showInDiagram: aDiagramController [
"protocol: #construction"

aDiagramController
controllerForModel: model target
ifNone: [ ^ aDiagramController
controllerForModel: model source
ifNone: [ self
error:
'Trying to create controller for relationship that depends on elements, but none of them is shown in diagram before' ] ].
aDiagramController
controllerForModel: model source
ifNone: [ ^ self ].
^ super showInDiagram: aDiagramController
]

{ #category : 'construction' }
OPBormRelationshipController >> showWithoutDependentInDiagram: aDiagramController [
aDiagramController showWithoutDependentInDiagramModel: model target.
aDiagramController showWithoutDependentInDiagramModel: model source.
^ super showWithoutDependentInDiagram: aDiagramController
]

0 comments on commit 3cec466

Please sign in to comment.