From 1af2798bc03f3e69108f1cfd4f54c9d5f16af1ab Mon Sep 17 00:00:00 2001 From: Ludovic Apvrille <ludovic.apvrille@telecom-paristech.fr> Date: Wed, 20 Mar 2019 20:37:54 +0100 Subject: [PATCH] Update on clone function --- src/main/java/ui/TDiagramPanel.java | 4 ++-- ttool/src/test/java/ui/TDiagramPanelCloneTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ui/TDiagramPanel.java b/src/main/java/ui/TDiagramPanel.java index a701d376ae..0d78e6bf51 100644 --- a/src/main/java/ui/TDiagramPanel.java +++ b/src/main/java/ui/TDiagramPanel.java @@ -1380,7 +1380,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree { public Vector<TMLCPrimitiveComponent> selectedCPrimitiveComponent() { Vector<TMLCPrimitiveComponent> v = null; - for (TGComponent tgc : this.getAllComponent()){ + for (TGComponent tgc : this.getAllComponentList()){ if (tgc.isSelected()) { if (tgc instanceof TMLCPrimitiveComponent) { if (v == null) @@ -2561,7 +2561,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree { public int getMaxIdSelected() { int ret = 0; //issue 186 - for (TGComponent tgc : this.getAllComponent()) + for (TGComponent tgc : this.getAllComponentList()) if (tgc.isSelected()) ret = Math.max(ret, tgc.getMaxId()); return ret; diff --git a/ttool/src/test/java/ui/TDiagramPanelCloneTest.java b/ttool/src/test/java/ui/TDiagramPanelCloneTest.java index 9c45c4de51..18b15d556c 100644 --- a/ttool/src/test/java/ui/TDiagramPanelCloneTest.java +++ b/ttool/src/test/java/ui/TDiagramPanelCloneTest.java @@ -49,7 +49,7 @@ public class TDiagramPanelCloneTest extends AbstractUITest { } } - for (TGComponent tgc : diagramPanel.getAllComponent()) { + for (TGComponent tgc : diagramPanel.getAllComponentList()) { if (tgc.getValue().equals("CompositeComp1")) { tgComponent1 = tgc; } -- GitLab