use preferencePredicate.EditMapServiceAccessPoint in featureDistribution detailsview
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / TypeDesignationPreferences.java
index 438eca2adb4b3494f8f9aefa185f871683bfbb79..bce07a4bb6cb1d78d19a667c2739707b17573c44 100644 (file)
@@ -1,17 +1,17 @@
 /**
  * Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy 
+ * European Distributed Institute of Taxonomy
  * http://www.e-taxonomy.eu
- * 
+ *
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
 package eu.etaxonomy.taxeditor.preference;
 
 import org.eclipse.jface.preference.BooleanFieldEditor;
-import org.eclipse.jface.preference.FieldEditorPreferencePage;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
+
+import eu.etaxonomy.taxeditor.l10n.Messages;
+import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
 
 /**
  * @author n.hoffmann
@@ -19,24 +19,12 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
  * @created Oct 12, 2011
  * @version 1.0
  */
-public class TypeDesignationPreferences extends FieldEditorPreferencePage
-               implements IWorkbenchPreferencePage {
-
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
-        */
-       @Override
-       public void init(IWorkbench workbench) {
-               setPreferenceStore(PreferencesUtil.getPreferenceStore());
-       }
+public class TypeDesignationPreferences extends FieldEditorPreferencePageE4 {
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
-        */
        @Override
        protected void createFieldEditors() {
-               addField(new BooleanFieldEditor(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES,
-                               "Add type designations to all names in a homotypical group.",
+               addField(new BooleanFieldEditor(PreferencesUtil.createPreferenceString(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES),
+                               Messages.TypeDesignationPreferences_typeDesignationsToAllNames,
                                getFieldEditorParent()));
        }