#4389
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / media / MediaViewPart.java
index 8c6eecf5d0914a2e79890fb617f4fe9864158753..43bf658bf86934c03bdaa488ba26a20200a924f2 100644 (file)
@@ -32,6 +32,7 @@ import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
 import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
 import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
+import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
 import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
 import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
 
@@ -104,7 +105,7 @@ public class MediaViewPart extends AbstractCdmEditorViewPart implements IPartCon
                        showViewer(part, new StructuredSelection(input));
                }
 
-               if(part instanceof BulkEditor && selection instanceof IStructuredSelection){
+               else if(part instanceof IPartContentHasMedia && selection instanceof IStructuredSelection){
                        showViewer(part, (IStructuredSelection) selection);
                }
        }