1 package eu
.etaxonomy
.taxeditor
.handler
.defaultHandler
.e4
;
5 import org
.eclipse
.jface
.wizard
.WizardDialog
;
6 import org
.eclipse
.swt
.widgets
.Shell
;
8 import eu
.etaxonomy
.cdm
.api
.service
.ITaxonNodeService
;
9 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
10 import eu
.etaxonomy
.taxeditor
.newWizard
.NewClassificationWizard
;
11 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
13 public class DefaultOpenClassificationWizardHandlerE4
extends DefaultOpenHandlerBaseE4
<TaxonNode
> {
16 protected TaxonNode
getEntity(UUID uuid
) {
17 return CdmStore
.getService(ITaxonNodeService
.class).load(uuid
);
21 protected void open(TaxonNode entity
, Shell shell
) {
22 NewClassificationWizard classificationWizard
= new NewClassificationWizard();
23 classificationWizard
.init(null, null);
24 classificationWizard
.setEntity(entity
.getClassification());
25 WizardDialog dialog
= new WizardDialog(shell
, classificationWizard
);
33 protected boolean canExecute(TaxonNode entity
) {
34 return entity
.getClassification().getRootNode().equals(entity
);