From fb10f3d0065ac631747ff531539c75115315e4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Blizni=C4=8Denko?= Date: Sun, 17 Nov 2024 00:23:47 +0100 Subject: [PATCH] Simplified modelChanged code --- repository/OpenPonk-FSM/OPFsmStateController.class.st | 2 +- repository/OpenPonk-FSM/OPFsmStateControllerTest.class.st | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repository/OpenPonk-FSM/OPFsmStateController.class.st b/repository/OpenPonk-FSM/OPFsmStateController.class.st index 6c06e8c..4743e15 100644 --- a/repository/OpenPonk-FSM/OPFsmStateController.class.st +++ b/repository/OpenPonk-FSM/OPFsmStateController.class.st @@ -18,7 +18,7 @@ OPFsmStateController >> buildEditorForm: aForm [ state: self model isFinal; whenChangedDo: [ :newValue | self model isFinal: newValue. - self diagramElement modelChanged ] + self modelChanged ] ] { #category : 'construction' } diff --git a/repository/OpenPonk-FSM/OPFsmStateControllerTest.class.st b/repository/OpenPonk-FSM/OPFsmStateControllerTest.class.st index a8d1df8..4fa483e 100644 --- a/repository/OpenPonk-FSM/OPFsmStateControllerTest.class.st +++ b/repository/OpenPonk-FSM/OPFsmStateControllerTest.class.st @@ -41,8 +41,8 @@ OPFsmStateControllerTest >> testFigureRefresh [ renderDiagramElement. self assert: controller diagramElement modelElement name equals: ''. controller model name: 'new name'. - controller diagramElement modelChanged. + controller modelChanged. self assert: - (controller diagramElement canvas nodes anySatisfy: [ :any | + (controller diagramElement canvas nodes anySatisfy: [ :any | (any isKindOf: RSLabel) and: [ any text = 'new name' ] ]) ]