From 1bc4cab9ae4f6d2f5101fb9819c59c05f4b439e2 Mon Sep 17 00:00:00 2001 From: luukkainen Date: Thu, 22 Jan 2009 15:27:54 +0000 Subject: [PATCH] Selection events coming from other editors/views should be fixed. git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@8810 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/processeditor/views/ProcessEditor.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java index a53463e4..09bdb316 100644 --- a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java +++ b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/views/ProcessEditor.java @@ -102,14 +102,11 @@ public class ProcessEditor extends ThreeDimensionalEditorBase { @Override protected void pageSelectionChanged(IWorkbenchPart part, ISelection selection) { - if (!(selection instanceof StructuredResourceSelection)) { - return; - } - - StructuredResourceSelection s = (StructuredResourceSelection) selection; + StructuredResourceSelection s = SelectionAdapter.transformSelection(selection); + selectionAdapter.setCurrentSelection(s); viewChanged = true; - + /* if (part instanceof ProcessEditor) { ProcessEditor sender = (ProcessEditor)part; -- 2.47.1