I18n for bulkeditor type #4553
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / input / BulkEditorInputType.java
index dd3df61989234c1c41db2cc9c26a9df296affc39..cb7020b31117300c060f6101c4e07fecb1344f01 100644 (file)
@@ -1,7 +1,9 @@
 package eu.etaxonomy.taxeditor.bulkeditor.input;
 
 import java.util.HashMap;
+import java.util.Locale;
 import java.util.Map;
+import java.util.ResourceBundle;
 
 import org.eclipse.jface.action.IContributionItem;
 import org.eclipse.swt.SWT;
@@ -26,19 +28,22 @@ import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
 import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorConstants;
+import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
+import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 
 public enum BulkEditorInputType {
-       AGENT("Authors and Author Teams", AgentEditorInput.ID), 
-       REFERENCE("Reference", ReferenceEditorInput.ID), 
-       NAME("Name", NameEditorInput.ID), 
-       NAME_RELATIONSHIP("Name Relationship", NameRelationshipEditorInput.ID), 
-       OCCURRENCE("Specimens and Observations", OccurrenceEditorInput.ID), 
-       USER("User", UserEditorInput.ID), 
-       GROUP("Group", GroupEditorInput.ID),
-       TAXON("Taxon", TaxonEditorInput.ID);
+       AGENT(Messages.BulkEditorInputType_0, AgentEditorInput.ID), 
+       REFERENCE(Messages.BulkEditorInputType_1, ReferenceEditorInput.ID), 
+       NAME(Messages.BulkEditorInputType_2, NameEditorInput.ID), 
+       NAME_RELATIONSHIP(Messages.BulkEditorInputType_3, NameRelationshipEditorInput.ID), 
+       OCCURRENCE(Messages.BulkEditorInputType_4, OccurrenceEditorInput.ID), 
+       USER(Messages.BulkEditorInputType_5, UserEditorInput.ID), 
+       GROUP(Messages.BulkEditorInputType_6, GroupEditorInput.ID),
+       TAXON(Messages.BulkEditorInputType_7, TaxonEditorInput.ID);
 
        public String id;
        public String label;
+       public ResourceBundle resourceBundle; 
 
        BulkEditorInputType(String label, String id) {
                this.id = id;
@@ -143,7 +148,7 @@ public enum BulkEditorInputType {
                        return new TaxonEditorInput();
                default:
                        throw new IllegalStateException(
-                                       "No input class for the given input type defined.");
+                                       "No input class for the given input type defined."); //$NON-NLS-1$
                }
        }
        
@@ -168,7 +173,7 @@ public enum BulkEditorInputType {
                        return ITaxonService.class;
                default:
                        throw new IllegalStateException(
-                                       "No input class for the given input type defined.");
+                                       "No input class for the given input type defined."); //$NON-NLS-1$
                }
        }
 }
\ No newline at end of file