From 00013d9d6aae7f4fe7de2972aa2b69371211960f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Blizni=C4=8Denko?= Date: Fri, 15 Nov 2024 23:21:12 +0100 Subject: [PATCH] Ensure creation of source and target only after validation --- .../OPDirectionalRelationshipController.class.st | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/repository/OpenPonk-Core/OPDirectionalRelationshipController.class.st b/repository/OpenPonk-Core/OPDirectionalRelationshipController.class.st index 7bd991d5..93925ef8 100644 --- a/repository/OpenPonk-Core/OPDirectionalRelationshipController.class.st +++ b/repository/OpenPonk-Core/OPDirectionalRelationshipController.class.st @@ -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 [ @@ -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 [