From: Marko Luukkainen Date: Tue, 13 Aug 2019 15:45:24 +0000 (+0300) Subject: Show components in connected order in outline with debug mode X-Git-Tag: v1.43.0~226^2~1 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F3098%2F1;p=simantics%2F3d.git Show components in connected order in outline with debug mode gitlab #19 Change-Id: I9a82db4e4a91ea3fb2b3279431c3867e6b0ddd57 --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java b/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java index 160188e6..0c5ab5df 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java @@ -1,5 +1,8 @@ package org.simantics.plant3d.editor; +import java.util.ArrayList; +import java.util.List; + import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; @@ -56,11 +59,16 @@ public class P3DContentOutlinePage extends VTKContentOutlinePage list = new ArrayList(); + list.addAll(((PipeRun)parentElement).getControlPoints()); + list.addAll(((PipeRun)parentElement).getSortedChild()); + return list.toArray(); + } + return ((PipeRun)parentElement).getSortedChild().toArray(); + } + if (DEBUG) { if (parentElement instanceof PipelineComponent) { return new Object[]{((PipelineComponent) parentElement).getControlPoint()}; } else if (parentElement instanceof PipeControlPoint) {