]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java
White space clean-up
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / editor / P3DContentOutlinePage.java
index 0c5ab5df39e0cdf842a953694072a13af4864cb2..24a141e464141f27ba4ff41ed068dee654cea1a3 100644 (file)
@@ -30,7 +30,7 @@ import org.simantics.plant3d.scenegraph.controlpoint.PipeControlPoint;
 
 public class P3DContentOutlinePage extends VTKContentOutlinePage<Resource, Object>{
        
-       private static final boolean DEBUG = false;
+       private static final boolean DEBUG = true;
        protected Menu contextMenu;
        
        private LocalResourceManager manager = new LocalResourceManager(JFaceResources.getResources());
@@ -60,14 +60,14 @@ public class P3DContentOutlinePage extends VTKContentOutlinePage<Resource, Objec
                                        return ((P3DRootNode)parentElement).getChild().toArray();
                                }
                                if (parentElement instanceof PipeRun) {
-                                   if (DEBUG) {
-                                       List<Object> list = new ArrayList<Object>();
-                                       list.addAll(((PipeRun)parentElement).getControlPoints());
-                                       list.addAll(((PipeRun)parentElement).getSortedChild());
-                                       return list.toArray();
-                                   }
-                                   return ((PipeRun)parentElement).getSortedChild().toArray();
-                }
+                                       if (DEBUG) {
+                                               List<Object> list = new ArrayList<Object>();
+                                               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()};
@@ -124,14 +124,14 @@ public class P3DContentOutlinePage extends VTKContentOutlinePage<Resource, Objec
        }
        
        protected void hookContextMenu(TreeViewer viewer) {
-        MenuManager menuMgr = new MenuManager("#PopupMenu");
-        menuMgr.setRemoveAllWhenShown(true);
-        menuMgr.addMenuListener(new IMenuListener() {
-            public void menuAboutToShow(IMenuManager manager) {
-               createContextMenu(manager);
-            }
-        });
-        contextMenu = menuMgr.createContextMenu(viewer.getTree());
+               MenuManager menuMgr = new MenuManager("#PopupMenu");
+               menuMgr.setRemoveAllWhenShown(true);
+               menuMgr.addMenuListener(new IMenuListener() {
+                       public void menuAboutToShow(IMenuManager manager) {
+                               createContextMenu(manager);
+                       }
+               });
+               contextMenu = menuMgr.createContextMenu(viewer.getTree());
        }
        
        protected void createContextMenu(IMenuManager manager) {