Revision 66c95313
Added by Katja Luther about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenTaxonNodeWizardHandlerE4.java | ||
---|---|---|
15 | 15 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
16 | 16 |
import org.eclipse.jface.dialogs.MessageDialog; |
17 | 17 |
import org.eclipse.jface.viewers.IStructuredSelection; |
18 |
import org.eclipse.jface.window.Window; |
|
18 | 19 |
import org.eclipse.jface.wizard.WizardDialog; |
19 | 20 |
import org.eclipse.swt.widgets.Shell; |
20 | 21 |
|
... | ... | |
64 | 65 |
taxonNodeWizard.init(null, null); |
65 | 66 |
taxonNodeWizard.setEntity(CdmStore.getService(ITaxonNodeService.class).load(entity.getUuid())); |
66 | 67 |
WizardDialog dialog = new WizardDialog(shell, taxonNodeWizard); |
67 |
dialog.open(); |
|
68 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAVIGATOR, entity); |
|
69 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, entity.getTaxonUuid()); |
|
68 |
int result = dialog.open(); |
|
69 |
if (result == Window.OK){ |
|
70 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAVIGATOR, entity); |
|
71 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, entity.getTaxonUuid()); |
|
72 |
} |
|
70 | 73 |
|
71 | 74 |
} |
72 | 75 |
|
Also available in: Unified diff
do not refresh navigator when node wizard was canceled