Project

General

Profile

« Previous | Next » 

Revision c30cf437

Added by Patrick Plitzner over 6 years ago

ref #6905 enable supplemental view for bulk editor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditor.java
54 54
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
55 55
import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData;
56 56
import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
57
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
57 58
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
58 59
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
59 60
import eu.etaxonomy.taxeditor.store.CdmStore;
......
63 64
 * @created 07.07.2009
64 65
 * @version 1.0
65 66
 */
66
public class BulkEditor extends AnnotatedLineEditor implements IPartContentHasDetails,
67
public class BulkEditor extends AnnotatedLineEditor implements IPartContentHasDetails, IPartContentHasSupplementalData,
67 68
        IDirtyMarkable, IDerivedUnitFacadePart, IPartContentHasFactualData, IPartContentHasMedia {
68 69

  
69 70
	/** Constant <code>ID="bulkeditor.editor"</code> */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java
22 22

  
23 23
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
24 24
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
25
import eu.etaxonomy.cdm.model.common.ICdmBase;
25 26
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
26 27
import eu.etaxonomy.cdm.model.taxon.Taxon;
27 28
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
......
98 99
	            structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit());
99 100
	        }
100 101

  
102
	        if(!(structuredSelection.getFirstElement() instanceof ICdmBase)){
103
	            showEmptyPage();
104
	            return;
105
	        }
101 106
	        showViewer(structuredSelection, activePart, viewer);
102 107
	        return;
103 108
	    }

Also available in: Unified diff