]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java
Set copyright texts for java files in the latest development branches.
[simantics/3d.git] / org.simantics.proconf.processeditor / src / org / simantics / processeditor / views / ProcessEditor.java
index a53463e470dd3cbf20671410f6209f1a1adc47c3..67c1982cf443f9be832c2bf28591fba4def35f62 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************\r
- * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
+ * Copyright (c) 2007- VTT Technical Research Centre of Finland.\r
  * All rights reserved. This program and the accompanying materials\r
  * are made available under the terms of the Eclipse Public License v1.0\r
  * which accompanies this distribution, and is available at\r
@@ -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