View Javadoc

1   /*
2    * $Id: NewOWLOntologyWizardAction.java,v 1.1 2005/03/29 18:53:33 aperezlo Exp $
3    * Created on May 20, 2004
4    *
5    * Copyright (c) 1999-2004, BBN Technologies, LLC.
6    * All rights reserved.
7    * http://www.daml.org/legal/opensource/bbn_license.html
8    */
9   
10  package com.bbn.swede.ui.wizards.action;
11  
12  import org.eclipse.core.runtime.CoreException;
13  import org.eclipse.jface.wizard.Wizard;
14  
15  import com.bbn.swede.ui.wizards.NewOWLOntologyWizard;
16  
17  /***
18   * Action for launching the New Ontology wizard.
19   * @author tself
20   */
21  public class NewOWLOntologyWizardAction extends AbstractOpenWizardAction
22  {
23  
24     /***
25      * Creates a NewOWLOntologyWizardAction.
26      * @param label The display name for the action
27      * @param acceptEmptySelection <code>true</code> to allow the action to be
28      *                             run when nothing is selected, otherwise
29      *                             <code>false</code>.
30      */
31     public NewOWLOntologyWizardAction(
32        String label,
33        boolean acceptEmptySelection)
34     {
35        super(label, acceptEmptySelection);
36     }
37  
38     /***
39      * Creates a NewOWLOntologyWizardAction.
40      * @param label The display name for the action
41      * @param activatedOnTypes An array of types the action may be run against
42      * @param acceptEmptySelection <code>true</code> to allow the action to be
43      *                             run when nothing is selected, otherwise
44      *                             <code>false</code>.
45      */
46     public NewOWLOntologyWizardAction(
47        String label,
48        Class[] activatedOnTypes,
49        boolean acceptEmptySelection)
50     {
51        super(label, activatedOnTypes, acceptEmptySelection);
52     }
53  
54     /***
55      * Creates a NewOWLOntologyWizardAction.
56      */
57     public NewOWLOntologyWizardAction()
58     {
59        this("New Ontology", false);
60     }
61  
62     /* (non-Javadoc)
63      * @see com.bbn.swede.ui.wizards.action.AbstractOpenWizardAction#createWizard()
64      */
65     protected Wizard createWizard() throws CoreException
66     {
67        return new NewOWLOntologyWizard();
68     }
69  
70  }