Revision 3bf355d6
Added by Andreas Müller almost 9 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/BulkEditorInputType.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor.bulkeditor.input; |
2 | 2 |
|
3 | 3 |
import java.util.HashMap; |
4 |
import java.util.Locale; |
|
4 | 5 |
import java.util.Map; |
6 |
import java.util.ResourceBundle; |
|
5 | 7 |
|
6 | 8 |
import org.eclipse.jface.action.IContributionItem; |
7 | 9 |
import org.eclipse.swt.SWT; |
... | ... | |
26 | 28 |
import eu.etaxonomy.cdm.model.reference.Reference; |
27 | 29 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
28 | 30 |
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorConstants; |
31 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
|
32 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
29 | 33 |
|
30 | 34 |
public enum BulkEditorInputType { |
31 |
AGENT("Authors and Author Teams", AgentEditorInput.ID),
|
|
32 |
REFERENCE("Reference", ReferenceEditorInput.ID),
|
|
33 |
NAME("Name", NameEditorInput.ID),
|
|
34 |
NAME_RELATIONSHIP("Name Relationship", NameRelationshipEditorInput.ID),
|
|
35 |
OCCURRENCE("Specimens and Observations", OccurrenceEditorInput.ID),
|
|
36 |
USER("User", UserEditorInput.ID),
|
|
37 |
GROUP("Group", GroupEditorInput.ID),
|
|
38 |
TAXON("Taxon", TaxonEditorInput.ID);
|
|
35 |
AGENT(Messages.BulkEditorInputType_0, AgentEditorInput.ID),
|
|
36 |
REFERENCE(Messages.BulkEditorInputType_1, ReferenceEditorInput.ID),
|
|
37 |
NAME(Messages.BulkEditorInputType_2, NameEditorInput.ID),
|
|
38 |
NAME_RELATIONSHIP(Messages.BulkEditorInputType_3, NameRelationshipEditorInput.ID),
|
|
39 |
OCCURRENCE(Messages.BulkEditorInputType_4, OccurrenceEditorInput.ID),
|
|
40 |
USER(Messages.BulkEditorInputType_5, UserEditorInput.ID),
|
|
41 |
GROUP(Messages.BulkEditorInputType_6, GroupEditorInput.ID),
|
|
42 |
TAXON(Messages.BulkEditorInputType_7, TaxonEditorInput.ID);
|
|
39 | 43 |
|
40 | 44 |
public String id; |
41 | 45 |
public String label; |
46 |
public ResourceBundle resourceBundle; |
|
42 | 47 |
|
43 | 48 |
BulkEditorInputType(String label, String id) { |
44 | 49 |
this.id = id; |
... | ... | |
143 | 148 |
return new TaxonEditorInput(); |
144 | 149 |
default: |
145 | 150 |
throw new IllegalStateException( |
146 |
"No input class for the given input type defined."); |
|
151 |
"No input class for the given input type defined."); //$NON-NLS-1$
|
|
147 | 152 |
} |
148 | 153 |
} |
149 | 154 |
|
... | ... | |
168 | 173 |
return ITaxonService.class; |
169 | 174 |
default: |
170 | 175 |
throw new IllegalStateException( |
171 |
"No input class for the given input type defined."); |
|
176 |
"No input class for the given input type defined."); //$NON-NLS-1$
|
|
172 | 177 |
} |
173 | 178 |
} |
174 | 179 |
} |
Also available in: Unified diff
I18n for bulkeditor type #4553