Revision 3e26f902
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/EditTaxonNodeWizard.java | ||
---|---|---|
13 | 13 |
import java.util.List; |
14 | 14 |
import java.util.Map; |
15 | 15 |
|
16 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
17 |
import org.eclipse.swt.widgets.Shell; |
|
18 |
import org.eclipse.ui.IWorkbench; |
|
19 |
|
|
16 | 20 |
import eu.etaxonomy.cdm.api.service.ITaxonNodeService; |
17 | 21 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
18 | 22 |
import eu.etaxonomy.cdm.persistence.dto.MergeResult; |
23 |
import eu.etaxonomy.taxeditor.event.EventUtility; |
|
24 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
|
19 | 25 |
import eu.etaxonomy.taxeditor.newWizard.IWizardPageListener; |
20 | 26 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySession; |
21 | 27 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled; |
22 | 28 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
29 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
|
23 | 30 |
|
24 | 31 |
/** |
25 | 32 |
* @author k.luther |
... | ... | |
33 | 40 |
private ICdmEntitySession cdmEntitySession; |
34 | 41 |
|
35 | 42 |
|
43 |
@Override |
|
44 |
public void init(IWorkbench workbench, IStructuredSelection selection) { |
|
45 |
formFactory = new CdmFormFactory(getContext().get(Shell.class).getDisplay()); |
|
46 |
conversation = CdmStore.createConversation(); |
|
47 |
} |
|
48 |
|
|
36 | 49 |
/* (non-Javadoc) |
37 | 50 |
* @see eu.etaxonomy.taxeditor.ui.section.classification.AbstractEditWizard#getEntityName() |
38 | 51 |
*/ |
... | ... | |
50 | 63 |
TaxonNode node = getEntity(); |
51 | 64 |
|
52 | 65 |
MergeResult result = CdmStore.getService(ITaxonNodeService.class).merge(node, true); |
66 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, node.getTaxon().getUuid()); |
|
53 | 67 |
|
54 | 68 |
} |
55 | 69 |
@Override |
Also available in: Unified diff
ref #9172: send event to update name editor after changing taxon node