git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@8810
ac1ea38d-2e2b-0410-8846-
a27921b304fc
\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