ref #6429: adapt admin preferences to other preferences
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / TypeDesignationPreferences.java
index e35e1438a8dd0d397c967443a0f576d296668ac5..f96d0c1ef46dda282e9fa236122e5fe9d3186584 100644 (file)
@@ -1,18 +1,16 @@
-/// $Id$
 /**
  * Copyright (C) 2007 EDIT
 /**
  * Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy 
+ * European Distributed Institute of Taxonomy
  * http://www.e-taxonomy.eu
  * 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;
  * 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.preference.menu.FieldEditorPreferencePageE4;
 
 /**
  * @author n.hoffmann
 
 /**
  * @author n.hoffmann
@@ -20,20 +18,8 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
  * @created Oct 12, 2011
  * @version 1.0
  */
  * @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,
        @Override
        protected void createFieldEditors() {
                addField(new BooleanFieldEditor(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES,