Skip to content

Commit

Permalink
Ensure creation of source and target only after validation
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 15, 2024
1 parent 99434f8 commit 00013d9
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ OPDirectionalRelationshipController >> edgeBuilder [
'Depracated without replacement - use Roassal directly or define own figures'
]

{ #category : 'construction' }
OPDirectionalRelationshipController >> ensureShownDependenciesInDiagram: aDiagramController [

self ensureSourceIn: aDiagramController.
self ensureTargetIn: aDiagramController.
^ super ensureShownDependenciesInDiagram: aDiagramController
]

{ #category : 'accessing' }
OPDirectionalRelationshipController >> ensureSourceIn: aDiagramController [

Expand Down Expand Up @@ -117,14 +125,6 @@ OPDirectionalRelationshipController >> renderSimplified [
(self diagramElementClass renderSimplifiedForController: self)
]

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

self ensureSourceIn: aDiagramController.
self ensureTargetIn: aDiagramController.
^ super showWithoutDependentInDiagram: aDiagramController
]

{ #category : 'accessing' }
OPDirectionalRelationshipController >> source [

Expand Down

0 comments on commit 00013d9

Please sign in to comment.