ref #8058: fix common name language preference and save emtpy string if all terms...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / menu / PreservationMethodMenuPreferences.java
index 9459ed7a60884e0cdb6b8ab32e7dc99506b08b49..f10f61d79ba1e08d313ab9c9bfd78f7ed6e8afc1 100644 (file)
@@ -1,16 +1,17 @@
-// $Id$
 /**
 * 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.menu;
 
-import eu.etaxonomy.cdm.model.occurrence.PreservationMethod;
+import eu.etaxonomy.cdm.model.term.DefinedTerm;
+import eu.etaxonomy.cdm.model.term.TermType;
+import eu.etaxonomy.taxeditor.l10n.Messages;
 
 /**
  * <p>PreservationMethodMenuPreferences class.</p>
@@ -19,14 +20,17 @@ import eu.etaxonomy.cdm.model.occurrence.PreservationMethod;
  * @created Jun 25, 2010
  * @version 1.0
  */
-public class PreservationMethodMenuPreferences extends AbstractMenuPreferences<PreservationMethod> {
-       
+public class PreservationMethodMenuPreferences extends AbstractMenuPreferences<DefinedTerm>  {
+//FIXME:3.3MC---- see Ticket #3732
+//extends AbstractMenuPreferences<PreservationMethod> {
+  //FIXME:3.3MC----
+
        /**
         * <p>Constructor for PreservationMethodMenuPreferences.</p>
         */
        public PreservationMethodMenuPreferences() {
-               super("Preservation Method Preferences", 
-                               "Select preservation methods to be shown in selections", 
+               super("Preservation Method Preferences", //$NON-NLS-1$
+                               Messages.PreservationMethodMenuPreferences_select,
                                false);
        }
 
@@ -35,7 +39,7 @@ public class PreservationMethodMenuPreferences extends AbstractMenuPreferences<P
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<PreservationMethod> getTermClass() {
-               return PreservationMethod.class;
+       protected TermType getTermType() {
+               return TermType.MaterialOrMethod;
        }
 }