View Javadoc

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