Revision 6d1c29e8
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/e4/handler/NewObjectHandlerE4.java | ||
---|---|---|
83 | 83 |
} |
84 | 84 |
bulkEditor.getEditorInput().getModel().add(createdEntity); |
85 | 85 |
if (createdEntity instanceof CdmBase){ |
86 |
bulkEditor.getEditorInput().addSaveCandidate((CdmBase)createdEntity); |
|
86 |
if (!((CdmBase)createdEntity).isPersited()){ |
|
87 |
bulkEditor.getEditorInput().addSaveCandidate((CdmBase)createdEntity); |
|
88 |
bulkEditor.setDirty(); |
|
89 |
} |
|
90 |
|
|
87 | 91 |
} |
88 | 92 |
IStructuredSelection selection = new StructuredSelection(createdEntity); |
89 | 93 |
|
90 | 94 |
bulkEditor.refresh(); |
91 |
bulkEditor.setDirty(); |
|
95 |
|
|
96 |
|
|
92 | 97 |
bulkEditor.setFocus(); |
93 | 98 |
|
94 | 99 |
bulkEditor.setSelection(selection); |
Also available in: Unified diff
ref #8470: user/group editor should not be dirty after creating new entity