]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@8803 ac1ea38d...
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 22 Jan 2009 14:30:00 +0000 (14:30 +0000)
committerluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 22 Jan 2009 14:30:00 +0000 (14:30 +0000)
org.simantics.proconf.processeditor/src/org/simantics/processeditor/adapters/ProcessEditorSelectionAdapter.java
org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java

index cffd0730e375818e7f98f7dc2830dd41388ac0b2..07f9186ee25298eb3ae4e0a9975c8ea7121de7d0 100644 (file)
@@ -26,19 +26,7 @@ public class ProcessEditorSelectionAdapter extends SelectionAdapter {
                        }\r
                        }\r
            }\r
-           \r
-           public void setEditorSelection(boolean addShapes) {\r
 \r
-               List<IGraphicsNode> sel = getSelectedObjects();\r
-               for (IGraphicsNode o : adapter.getNodes())\r
-                       if (o instanceof ISelectableNode) {\r
-                               if (sel.contains(o)) {\r
-                               ((ISelectableNode)o).setSelected(true);\r
-                       } else {\r
-                               ((ISelectableNode)o).setSelected(false);\r
-                       }\r
-                       }\r
-           }\r
 \r
            @Override\r
            protected void setEditorHighlightSelection() {\r
index 699bd1e345fbed861786e9af95bfb8a069bbb3ec..a53463e470dd3cbf20671410f6209f1a1adc47c3 100644 (file)
@@ -110,21 +110,17 @@ public class ProcessEditor extends ThreeDimensionalEditorBase {
         selectionAdapter.setCurrentSelection(s);\r
         viewChanged = true;\r
         \r
-        //if (s.getRootSelection() == null) {\r
-        if (!(part instanceof ProcessEditor)) {\r
-            //System.out.println("ShapeEditorView.pageSelectionChanged() no root selection");\r
-               ((ProcessEditorSelectionAdapter)selectionAdapter).setEditorSelection(true);\r
-            return;\r
+        /*\r
+        if (part instanceof ProcessEditor) {\r
+               ProcessEditor sender = (ProcessEditor)part;\r
+            if (!sender.getPlantResource().equals(plantResource)) {\r
+               selectionAdapter.setCurrentSelection(new StructuredResourceSelection());\r
+               selectionAdapter.setEditorSelection();\r
+              return;\r
+            }\r
         } \r
-        //if (!s.getRootSelection().getResource().getId().equals(plant.getResource().getId())) {\r
-        ProcessEditor sender = (ProcessEditor)part;\r
-        if (!sender.getPlantResource().equals(plantResource)) {\r
-//          System.out.println("ShapeEditorView.pageSelectionChanged() not right group "\r
-//                  + s.getRootSelection().getResource().getId() + " != " + model.getResource().getId());\r
-               selectionAdapter.setCurrentSelection(new StructuredResourceSelection());\r
-               ((ProcessEditorSelectionAdapter)selectionAdapter).setEditorSelection(false);\r
-          return;\r
-      }\r
+               */\r
+        \r
         selectionAdapter.setEditorSelection();\r
         \r
     }\r