Project

General

Profile

« Previous | Next » 

Revision 3f8e87ed

Added by Katja Luther almost 10 years ago

adding a taxon bulk editor and changes because the delete methods does not throw exceptions anymore

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/BulkEditorInputType.java
17 17
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
18 18
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
19 19
import eu.etaxonomy.cdm.model.reference.Reference;
20
import eu.etaxonomy.cdm.model.taxon.Taxon;
20 21
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorConstants;
21 22

  
22 23
public enum BulkEditorInputType {
......
26 27
	NAME_RELATIONSHIP("Name Relationship", NameRelationshipEditorInput.ID), 
27 28
	OCCURRENCE("Specimens and Observations", OccurrenceEditorInput.ID), 
28 29
	USER("User", UserEditorInput.ID), 
29
	GROUP("Group", GroupEditorInput.ID);
30
	GROUP("Group", GroupEditorInput.ID),
31
	TAXON("Taxon", TaxonEditorInput.ID);
30 32

  
31 33
	public String id;
32 34
	public String label;
......
86 88
			return GROUP;
87 89
		} else if (User.class.isAssignableFrom(clazz)) {
88 90
			return USER;
91
		} else if (Taxon.class.isAssignableFrom(clazz)){
92
			return TAXON;
89 93
		}
90 94
		return null;
91 95
	}
......
105 109
			return USER;
106 110
		} else if (input instanceof GroupEditorInput) {
107 111
			return GROUP;
112
		} else if (input instanceof TaxonEditorInput){
113
			return TAXON;
108 114
		}
109 115
		return null;
110 116
	}
......
126 132
			return new UserEditorInput();
127 133
		case GROUP:
128 134
			return new GroupEditorInput();
135
		case TAXON:
136
			return new TaxonEditorInput();
129 137
		default:
130 138
			throw new IllegalStateException(
131 139
					"No input class for the given input type defined.");

Also available in: Unified diff