Commit 1af2798b authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Update on clone function

parent 8d4c414d
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment