View Javadoc

1   /*
2    * $Id: NewOWLPropertyWizardAction.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.NewOWLPropertyWizard;
15  
16  /***
17   * Action for launching the New OWL Property wizard.
18   * @author tself
19   */
20  public class NewOWLPropertyWizardAction extends AbstractOpenWizardAction
21  {
22     /***
23      * Creates a NewOWLPropertyWizardAction.
24      */
25     public NewOWLPropertyWizardAction()
26     {
27        this("New Property", null);
28     }
29     /***
30      * Creates a NewOWLPropertyWizardAction.
31      * @param label The display name for the action
32      * @param acceptedTypes An array of types the action may be run against
33      */
34     public NewOWLPropertyWizardAction(String label, Class[] acceptedTypes)
35     {
36        super(label, acceptedTypes, false);
37     }
38     /* (non-Javadoc)
39      * @see com.bbn.swede.ui.action.AbstractOpenWizardAction#createWizard()
40      */
41     protected Wizard createWizard() throws CoreException
42     {
43        return new NewOWLPropertyWizard();
44     }
45  }