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);
+ boolean isShowIdInVocabulary = PreferencesUtil.isShowIdInVocabularyInChecklistEditor();
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.setShowIdInVocabularyInChecklistEditor(isShowIdInVocabulary);
}
});
PreferencesUtil.recursiveSetEnabled(button_openFeatureTree, CdmStore.isActive());
+ boolean isShowRank = PreferencesUtil.isShowRankInChecklistEditor();
+ final Button activateRankButton = new Button(child, SWT.CHECK);
+ activateRankButton.setText("Show Rank in Checklist Editor");
+ activateRankButton.setSelection(isShowRank);
+ activateRankButton.addSelectionListener(new SelectionAdapter(){
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ boolean isShowRank = activateRankButton.getSelection();
+ PreferencesUtil.setShowRankInChecklistEditor(isEditorActivated);
+ }
+ });
+
if(isEditorActivated){
child.setEnabled(true);