2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.actions
.ui
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.eclipse
.jface
.action
.Action
;
14 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
15 import org
.eclipse
.jface
.wizard
.Wizard
;
16 import org
.eclipse
.jface
.wizard
.WizardDialog
;
18 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
19 import eu
.etaxonomy
.taxeditor
.ITaxEditorConstants
;
20 import eu
.etaxonomy
.taxeditor
.TaxEditorPlugin
;
21 import eu
.etaxonomy
.taxeditor
.controller
.GlobalController
;
22 import eu
.etaxonomy
.taxeditor
.propertysheet
.namerelationswizard
.NameRelationsListWizard
;
29 public class OpenNameRelationsListWizardAction
extends Action
{
30 private static final Logger logger
= Logger
31 .getLogger(OpenNameRelationsListWizardAction
.class);
33 private static String text
= "Create name relation ...";
34 private ImageDescriptor image
= TaxEditorPlugin
.getDefault()
35 .getImageDescriptor(ITaxEditorConstants
.ACTIVE_DELETE_ICON
);
36 // private ImageDescriptor image = null;
37 public static final String ID
= "eu.etaxonomy.taxeditor.actions.opennamerelationswizard"; //$NON-NLS-1$
39 private TaxonNameBase name
;
41 private OpenNameRelationsListWizardAction() {
43 setImageDescriptor(image
);
47 public OpenNameRelationsListWizardAction(TaxonNameBase name
) {
57 Wizard wizard
= new NameRelationsListWizard(name
);
59 // Instantiates the wizard container with the wizard and opens it
60 WizardDialog dialog
= new WizardDialog(GlobalController
.getShell(), wizard
);