}\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
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