From cacfc78a2799e32ad4fbf8d96fad657665fd35cb Mon Sep 17 00:00:00 2001 From: crunsk Date: Sun, 24 May 2020 17:53:18 +0300 Subject: [PATCH] Related to https://github.com/OpenPonk/openponk/issues/29 Show models from all opened projects in the submodel dropdown list. --- .../OPBormProcessNodeController.class.st | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repository/OpenPonk-BormEditor/OPBormProcessNodeController.class.st b/repository/OpenPonk-BormEditor/OPBormProcessNodeController.class.st index bf7664b..5a90093 100644 --- a/repository/OpenPonk-BormEditor/OPBormProcessNodeController.class.st +++ b/repository/OpenPonk-BormEditor/OPBormProcessNodeController.class.st @@ -18,8 +18,10 @@ OPBormProcessNodeController >> addAsTargetFor: aController [ { #category : #adding } OPBormProcessNodeController >> bormModels [ - ^ self diagramController editor workbench projectController project models - select: [ :each | each isKindOf: self diagramController modelClass ] +|allModels| +allModels := OrderedCollection new. + OPBormDiagramController allInstances do: [ :each | each editor workbench projectController project models do: [ :each2 | allModels add: each2 ] ]. + ^ allModels ] { #category : #'ui hooks' }