Revision 2108e10f
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/TypeDesignationWorkingsetEditorAction.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
private int registrationId; |
32 | 32 |
|
33 |
private int typifiedNameId; |
|
34 |
|
|
33 | 35 |
private TypedEntityReference<IdentifiableEntity<?>> baseEntityRef; |
34 | 36 |
|
35 | 37 |
/** |
... | ... | |
42 | 44 |
* @param sourceView |
43 | 45 |
*/ |
44 | 46 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypedEntityReference<IdentifiableEntity<?>> baseEntityRef, |
45 |
TypeDesignationWorkingSetType workingSetType, int registrationId, Component source, AbstractView sourceView, Stack<EditorActionContext> context) { |
|
47 |
TypeDesignationWorkingSetType workingSetType, |
|
48 |
int registrationId, int typifiedNameId, |
|
49 |
Component source, AbstractView sourceView, Stack<EditorActionContext> context) { |
|
46 | 50 |
super(action, null, source, sourceView); |
47 | 51 |
this.baseEntityRef = baseEntityRef; |
48 | 52 |
this.registrationId = registrationId; |
53 |
this.typifiedNameId = typifiedNameId; |
|
49 | 54 |
this.workingSetType = workingSetType; |
50 | 55 |
this.context = context; |
51 | 56 |
|
... | ... | |
59 | 64 |
* @param source |
60 | 65 |
* @param sourceView |
61 | 66 |
*/ |
62 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypeDesignationWorkingSetType workingSetType, int registrationId, |
|
67 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypeDesignationWorkingSetType workingSetType, |
|
68 |
int registrationId, int typifiedNameId, |
|
63 | 69 |
Component source, AbstractView sourceView) { |
64 | 70 |
super(action, null, source, sourceView); |
65 | 71 |
this.workingSetType = workingSetType; |
66 | 72 |
this.registrationId = registrationId; |
73 |
this.typifiedNameId = typifiedNameId; |
|
67 | 74 |
this.context = new Stack<>(); |
68 | 75 |
this.context.push(new EditorActionContext(new TypedEntityReference<Registration>(Registration.class, registrationId), sourceView)); |
69 | 76 |
} |
... | ... | |
96 | 103 |
return baseEntityRef; |
97 | 104 |
} |
98 | 105 |
|
106 |
/** |
|
107 |
* @return the typifiedNameId |
|
108 |
*/ |
|
109 |
public int getTypifiedNameId() { |
|
110 |
return typifiedNameId; |
|
111 |
} |
|
112 |
|
|
99 | 113 |
|
100 | 114 |
} |
Also available in: Unified diff
fix #7337 adding typifiedName reference to TypeDesignationWorkingsetEditorAction