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;
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;
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$
}
}
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