Revision 2a4b0092
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java | ||
---|---|---|
77 | 77 |
import eu.etaxonomy.taxeditor.editor.view.checklist.listener.ChecklistModifyListener; |
78 | 78 |
import eu.etaxonomy.taxeditor.model.IDirtyMarkable; |
79 | 79 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
80 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
|
80 | 81 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
81 | 82 |
import eu.etaxonomy.taxeditor.preference.Resources; |
82 | 83 |
import eu.etaxonomy.taxeditor.preference.wizard.AvailableDistributionWizard; |
... | ... | |
90 | 91 |
* |
91 | 92 |
*/ |
92 | 93 |
public class ChecklistEditorE4 implements IConversationEnabled, |
93 |
IDirtyMarkable, IPartContentHasDetails, IE4SavablePart, IDistributionEditor{ |
|
94 |
IDirtyMarkable, IPartContentHasDetails, IE4SavablePart, IDistributionEditor, IPartContentHasSupplementalData{
|
|
94 | 95 |
|
95 | 96 |
private static final String DISTRIBUTION_EDITOR = "Distribution Editor"; |
96 | 97 |
private static final String LOADING_TAXA = Messages.ChecklistEditor_LOAD_TAXA; |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/ChecklistEditorGeneralPreference.java | ||
---|---|---|
282 | 282 |
PreferencesUtil.setShowSymbolInChecklistEditor(isShowSymbol); |
283 | 283 |
|
284 | 284 |
if (isShowIdInVocabulary){ |
285 |
displayString = IPreferenceKeys.CHECKLIST_AREA_DISPLAY_TITLE;
|
|
285 |
displayString = IPreferenceKeys.CHECKLIST_AREA_DISPLAY_ID_IN_VOCABULARY;
|
|
286 | 286 |
}else if (isShowSymbol1){ |
287 | 287 |
displayString = IPreferenceKeys.CHECKLIST_AREA_DISPLAY_SYMBOL1; |
288 | 288 |
}else if (isShowSymbol2){ |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java | ||
---|---|---|
29 | 29 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
30 | 30 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse; |
31 | 31 |
import eu.etaxonomy.cdm.model.common.ICdmBase; |
32 |
import eu.etaxonomy.cdm.model.description.DescriptionElementBase; |
|
32 | 33 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
33 | 34 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
34 | 35 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
... | ... | |
112 | 113 |
} |
113 | 114 |
else if(structuredSelection.getFirstElement() instanceof GbifResponse){ |
114 | 115 |
structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit()); |
115 |
} |
|
116 |
} else if(structuredSelection.getFirstElement() instanceof DescriptionElementBase ){ |
|
117 |
structuredSelection = new StructuredSelection((structuredSelection.getFirstElement())); |
|
118 |
} |
|
119 |
|
|
116 | 120 |
|
117 | 121 |
if(!(structuredSelection.getFirstElement() instanceof ICdmBase)){ |
118 | 122 |
showEmptyPage(); |
Also available in: Unified diff
ref #7793: show supplemental data for distribution editor and smaller bugfix for distribution editor preferences