Revision ca4ad1c9
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java | ||
---|---|---|
74 | 74 |
"eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardHandler"); |
75 | 75 |
|
76 | 76 |
button_openFeatureTree.setText("Open Distribution Selection Wizard"); |
77 |
final Button showIdInVocabulary = new Button(child, SWT.CHECK); |
|
78 |
boolean isShowIdInVocabulary = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.CHECKLIST_ID_IN_VOCABULARY); |
|
79 |
showIdInVocabulary.setText("Show Id in Vocabulary instead of full title of the areas"); |
|
80 |
showIdInVocabulary.setSelection(isShowIdInVocabulary); |
|
81 |
showIdInVocabulary.addSelectionListener(new SelectionAdapter(){ |
|
82 |
@Override |
|
83 |
public void widgetSelected(SelectionEvent e) { |
|
84 |
boolean isShowIdInVocabulary = showIdInVocabulary.getSelection(); |
|
85 |
PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.CHECKLIST_ID_IN_VOCABULARY, isShowIdInVocabulary); |
|
86 |
} |
|
87 |
}); |
|
77 | 88 |
PreferencesUtil.recursiveSetEnabled(button_openFeatureTree, CdmStore.isActive()); |
78 | 89 |
|
79 | 90 |
if(isEditorActivated){ |
Also available in: Unified diff
add the preference show only ID in Vocabulary in checklist e