ref #6596 Enable supplemental data view for specimen editor
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 21 Jun 2017 08:59:30 +0000 (10:59 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 21 Jun 2017 08:59:30 +0000 (10:59 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewPart.java

index 6df401482ebe8bf1f842ccbd39a09920576c51b3..b651e31bc5bcb04362b6c384c4ce99b5c561e123 100644 (file)
@@ -54,7 +54,12 @@ public class SupplementalDataViewPart extends AbstractCdmEditorViewPart {
 
        /** {@inheritDoc} */
        @Override
-       protected void selectionChanged_internal(IWorkbenchPart part, ISelection selection) {
+       protected void selectionChanged_internal(IWorkbenchPart workbenchPart, ISelection selection) {
+           Object part = workbenchPart;
+        Object wrappedPart = AbstractUtility.getE4WrappedPart(part);
+        if(wrappedPart!=null){
+            part = wrappedPart;
+        }
                if(AbstractUtility.getActiveE4Editor() == null){
                        showEmptyPage();
                        return;