further development of the checklist editor
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / ChecklistEditorGeneralPreference.java
index b8f4ae17a24f6ed975a3c1521f113a87d167ac1b..d7a342c6237b4b8e81b9d89206f865c39c79e8b3 100644 (file)
@@ -75,17 +75,29 @@ public class ChecklistEditorGeneralPreference extends PreferencePage implements
 
         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);