From ca4ad1c93bf4492d23878faa061664039171d1cb Mon Sep 17 00:00:00 2001 From: Katja Luther Date: Wed, 8 Jun 2016 16:22:25 +0200 Subject: [PATCH] add the preference show only ID in Vocabulary in checklist e --- .../preference/ChecklistEditorGeneralPreference.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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){ -- 2.34.1