/*******************************************************************************\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
\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