View Javadoc

1   /*
2    * $Id: NewOWLClassWizardAction.java,v 1.1 2005/03/29 18:53:33 aperezlo Exp $
3    *
4    * Copyright (c) 1999-2004, BBN Technologies, LLC.
5    * All rights reserved.
6    * http://www.daml.org/legal/opensource/bbn_license.html
7    */
8   
9   package com.bbn.swede.ui.wizards.action;
10  
11  import org.eclipse.core.runtime.CoreException;
12  import org.eclipse.jface.wizard.Wizard;
13  
14  import com.bbn.swede.ui.wizards.NewOWLClassWizard;
15  
16  
17  /***
18   * Action for launching the New OWL Class wizard.
19   * @author tself
20   */
21  public class NewOWLClassWizardAction extends AbstractOpenWizardAction
22  {
23     /***
24      * Creates a NewOWLClassWizardAction.
25      */
26     public NewOWLClassWizardAction()
27     {
28        this("New OWL Class", null);
29     }
30     
31     /***
32      * Creates a NewOWLClassWizardAction.
33      * @param label The display name for the action
34      * @param acceptedTypes An array of types the action may be run against
35      */
36     public NewOWLClassWizardAction(String label, Class[] acceptedTypes)
37     {
38        super(label, acceptedTypes, false);
39     }
40     /* (non-Javadoc)
41      * @see com.bbn.swede.ui.action.AbstractOpenWizardAction#createWizard()
42      */
43     protected Wizard createWizard() throws CoreException
44     {
45        return new NewOWLClassWizard();
46     }
47  }