From eca4b77e481a78da57ceb201453c61362e4bdba2 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Tue, 13 Aug 2019 18:45:24 +0300 Subject: [PATCH] Show components in connected order in outline with debug mode gitlab #19 Change-Id: I9a82db4e4a91ea3fb2b3279431c3867e6b0ddd57 --- .../plant3d/editor/P3DContentOutlinePage.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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) { -- 2.47.1