import eu.etaxonomy.cdm.model.common.CdmBase;
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
+import eu.etaxonomy.taxeditor.model.AbstractUtility;
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
@Override
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
- if(part instanceof BulkEditor && selection instanceof IStructuredSelection){
- showViewer(part, (IStructuredSelection)selection);
+ if(AbstractUtility.getActiveEditor()==null || !(AbstractUtility.getActiveEditor() instanceof BulkEditor)){
+ showEmptyPage();
return;
}
- else {
- showEmptyPage();
+ else if(part instanceof BulkEditor && selection instanceof IStructuredSelection){
+ showViewer(part, (IStructuredSelection)selection);
return;
}
}