Revision d898479a
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/SetSecReferenceForSubtreeHandler.java | ||
---|---|---|
18 | 18 |
import org.eclipse.core.runtime.IStatus; |
19 | 19 |
import org.eclipse.core.runtime.Status; |
20 | 20 |
import org.eclipse.jface.viewers.TreeSelection; |
21 |
import org.eclipse.jface.window.Window; |
|
22 |
import org.eclipse.jface.wizard.WizardDialog; |
|
21 | 23 |
import org.eclipse.ui.handlers.HandlerUtil; |
22 | 24 |
|
23 | 25 |
import eu.etaxonomy.cdm.api.service.config.SetSecundumForSubtreeConfigurator; |
24 | 26 |
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode; |
25 | 27 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
26 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
27 | 28 |
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigatorLabels; |
28 | 29 |
import eu.etaxonomy.taxeditor.navigation.navigator.operation.SetSecundumForSubtreeOperation; |
29 | 30 |
import eu.etaxonomy.taxeditor.operation.RemotingCdmHandler; |
30 |
import eu.etaxonomy.taxeditor.ui.dialog.configurator.SetSecundumForSubtreeConfigurationDialog; |
|
31 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
32 |
import eu.etaxonomy.taxeditor.ui.dialog.configurator.SetSecundumForSubtreeConfigurationWizard; |
|
31 | 33 |
|
32 | 34 |
/** |
33 | 35 |
* @author k.luther |
... | ... | |
85 | 87 |
} |
86 | 88 |
|
87 | 89 |
configurator = new SetSecundumForSubtreeConfigurator(taxonNode.getUuid()); |
88 |
if(!SetSecundumForSubtreeConfigurationDialog.openConfirmWithConfigurator(configurator, HandlerUtil.getActiveShell(event), Messages.SetSecundumHandler_confirm, Messages.SetSecundumHandler_configureSettings)){
|
|
90 |
SetSecundumForSubtreeConfigurationWizard wizard = new SetSecundumForSubtreeConfigurationWizard(configurator);
|
|
89 | 91 |
|
92 |
WizardDialog dialog = new WizardDialog(StoreUtil.getShell(), wizard); |
|
93 |
|
|
94 |
if (dialog.open() == Window.OK) { |
|
95 |
return Status.OK_STATUS; |
|
96 |
}else{ |
|
90 | 97 |
return Status.CANCEL_STATUS; |
91 | 98 |
} |
92 | 99 |
|
93 |
|
|
94 |
return Status.OK_STATUS; |
|
100 |
// if(!SetSecundumForSubtreeConfigurationWizard.openConfirmWithConfigurator(configurator)){ |
|
101 |
// |
|
102 |
// return Status.CANCEL_STATUS; |
|
103 |
// } |
|
104 |
// |
|
105 |
// |
|
106 |
// return Status.OK_STATUS; |
|
95 | 107 |
} |
96 | 108 |
/* (non-Javadoc) |
97 | 109 |
* @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#doOperations(org.eclipse.core.commands.ExecutionEvent) |
Also available in: Unified diff
fix #6315: adapt the setSecundum for subtree functionality in editor