]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Selection events coming from other editors/views should be fixed.
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 22 Jan 2009 15:27:54 +0000 (15:27 +0000)
committerluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 22 Jan 2009 15:27:54 +0000 (15:27 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@8810 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java

index a53463e470dd3cbf20671410f6209f1a1adc47c3..09bdb3168c71f275b3f3ed360e27d3f78a5b2263 100644 (file)
@@ -102,14 +102,11 @@ public class ProcessEditor extends ThreeDimensionalEditorBase {
 \r
     @Override\r
     protected void pageSelectionChanged(IWorkbenchPart part, ISelection selection) {\r
-        if (!(selection instanceof StructuredResourceSelection)) {\r
-            return;\r
-        }\r
-        \r
-        StructuredResourceSelection s = (StructuredResourceSelection) selection;\r
+       StructuredResourceSelection s = SelectionAdapter.transformSelection(selection);\r
+\r
         selectionAdapter.setCurrentSelection(s);\r
         viewChanged = true;\r
-        \r
+\r
         /*\r
         if (part instanceof ProcessEditor) {\r
                ProcessEditor sender = (ProcessEditor)part;\r