Revision e8674a36
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/TypeDesignationWorkingsetEditorAction.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.vaadin.event; |
10 | 10 |
|
11 |
import java.util.Stack; |
|
12 |
|
|
11 | 13 |
import com.vaadin.ui.Component; |
12 | 14 |
|
13 | 15 |
import eu.etaxonomy.cdm.model.common.IdentifiableEntity; |
16 |
import eu.etaxonomy.cdm.model.name.Registration; |
|
14 | 17 |
import eu.etaxonomy.cdm.vaadin.model.TypedEntityReference; |
15 | 18 |
import eu.etaxonomy.cdm.vaadin.util.converter.TypeDesignationSetManager.TypeDesignationWorkingSetType; |
16 | 19 |
import eu.etaxonomy.vaadin.event.EditorActionType; |
... | ... | |
38 | 41 |
* @param source |
39 | 42 |
* @param sourceView |
40 | 43 |
*/ |
41 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypedEntityReference<IdentifiableEntity<?>> baseEntityRef, TypeDesignationWorkingSetType workingSetType, int registrationId,
|
|
42 |
Component source, AbstractView sourceView) {
|
|
44 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypedEntityReference<IdentifiableEntity<?>> baseEntityRef, |
|
45 |
TypeDesignationWorkingSetType workingSetType, int registrationId, Component source, AbstractView sourceView, Stack<EditorActionContext> context) {
|
|
43 | 46 |
super(action, null, source, sourceView); |
44 | 47 |
this.baseEntityRef = baseEntityRef; |
45 | 48 |
this.registrationId = registrationId; |
46 | 49 |
this.workingSetType = workingSetType; |
50 |
this.context.addAll(context); |
|
47 | 51 |
} |
48 | 52 |
|
49 | 53 |
/** |
... | ... | |
59 | 63 |
super(action, null, source, sourceView); |
60 | 64 |
this.workingSetType = workingSetType; |
61 | 65 |
this.registrationId = registrationId; |
66 |
this.context.push(new EditorActionContext(new TypedEntityReference<Registration>(Registration.class, registrationId), sourceView)); |
|
62 | 67 |
} |
63 | 68 |
|
69 |
|
|
70 |
|
|
64 | 71 |
/** |
65 | 72 |
* |
66 | 73 |
* @return |
Also available in: Unified diff
ref #7195 introducing the concept of EditorActionContext stacks to facilitate creating blocking relations