Revision 591821c4
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/AbstractEditorAction.java | ||
---|---|---|
36 | 36 |
|
37 | 37 |
public AbstractEditorAction(EditorActionType action, Component source, AbstractView sourceView) { |
38 | 38 |
this(action, null, source, sourceView); |
39 |
if (!action.equals(EditorActionType.ADD)) { |
|
40 |
throw new RuntimeException("This constructor must only be used for EditorActionType.ADD"); |
|
41 |
} |
|
42 | 39 |
} |
43 | 40 |
|
44 | 41 |
public AbstractEditorAction(EditorActionType action, Integer entityId, Component source, AbstractView sourceView) { |
Also available in: Unified diff
removng restriction from AbstractEditorAction