From: Katja Luther Date: Wed, 8 Jun 2016 14:22:25 +0000 (+0200) Subject: add the preference show only ID in Vocabulary in checklist e X-Git-Tag: 4.2.0^2~71 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/ca4ad1c93bf4492d23878faa061664039171d1cb add the preference show only ID in Vocabulary in checklist e --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java index 7dc0a900b..b8f4ae17a 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java @@ -74,6 +74,17 @@ public class ChecklistEditorGeneralPreference extends PreferencePage implements "eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardHandler"); button_openFeatureTree.setText("Open Distribution Selection Wizard"); + final Button showIdInVocabulary = new Button(child, SWT.CHECK); + boolean isShowIdInVocabulary = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.CHECKLIST_ID_IN_VOCABULARY); + showIdInVocabulary.setText("Show Id in Vocabulary instead of full title of the areas"); + showIdInVocabulary.setSelection(isShowIdInVocabulary); + showIdInVocabulary.addSelectionListener(new SelectionAdapter(){ + @Override + public void widgetSelected(SelectionEvent e) { + boolean isShowIdInVocabulary = showIdInVocabulary.getSelection(); + PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.CHECKLIST_ID_IN_VOCABULARY, isShowIdInVocabulary); + } + }); PreferencesUtil.recursiveSetEnabled(button_openFeatureTree, CdmStore.isActive()); if(isEditorActivated){