Revision e78c8323
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/e4/handler/NewObjectHandlerE4.java | ||
---|---|---|
20 | 20 |
import org.eclipse.jface.window.Window; |
21 | 21 |
import org.eclipse.swt.widgets.Shell; |
22 | 22 |
|
23 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator; |
24 | 25 |
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorConstants; |
25 | 26 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4; |
... | ... | |
73 | 74 |
IEntityCreator entityCreator = bulkEditor.getEditorInput().getEntityCreator(); |
74 | 75 |
Object createdEntity = entityCreator.createEntity(key, dialog.getValue()); |
75 | 76 |
bulkEditor.getEditorInput().getModel().add(createdEntity); |
77 |
if (createdEntity instanceof CdmBase){ |
|
78 |
bulkEditor.getEditorInput().addSaveCandidate((CdmBase)createdEntity); |
|
79 |
} |
|
76 | 80 |
bulkEditor.refresh(true); |
77 | 81 |
bulkEditor.setDirty(); |
78 | 82 |
} |
Also available in: Unified diff
ref #7136: reload objects after deduplication