com.bbn.swede.ui.wizards
Class NewOWLProjectWizard

java.lang.Object
  extended byWizard
      extended bycom.bbn.swede.ui.wizards.NewOWLProjectWizard

public class NewOWLProjectWizard
extends Wizard

Wizard for creating a new semantic web project.

Author:
tself
See Also:
Serialized Form

Constructor Summary
NewOWLProjectWizard()
           
 
Method Summary
 void addPages()
          Add the one page to the wizard, the reused page WizardNewProjectCreationPage.
 IProject createNewProject()
          Creates a new project resource with the name selected in the wizard page.
 void createProject(IProjectDescription description, IProject projectHandle, IProgressMonitor monitor)
          Creates a project resource given the project handle and description.
 IProject getNewProject()
          Returns the newly created project.
 void init(IWorkbench workbench, IStructuredSelection selection)
          Initializes this creation wizard using the passed workbench and object selection.
 boolean performFinish()
          Creates a project with a CustomNature association.
protected  void resultError(String title, String msg)
          Used to show action results.
protected  void resultInformation(String title, String msg)
          Used to show action results.
 void setInitializationData(IConfigurationElement config, String propertyName, Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewOWLProjectWizard

public NewOWLProjectWizard()
Method Detail

addPages

public void addPages()
Add the one page to the wizard, the reused page WizardNewProjectCreationPage. This page provides basic project name validation and allows for

See Also:
Wizard

getNewProject

public IProject getNewProject()
Returns the newly created project.

Returns:
the created project, or null if project not created

init

public void init(IWorkbench workbench,
                 IStructuredSelection selection)
Initializes this creation wizard using the passed workbench and object selection.

This method is called after the no argument constructor and before other methods are called.

Parameters:
workbench - the current workbench
selection - the current object selection
See Also:
IWorkbenchWizard

performFinish

public boolean performFinish()
Creates a project with a CustomNature association.

Returns:
true to indicate the finish request was accepted, and false to indicate that the finish request was refused
See Also:
IWizard

createNewProject

public IProject createNewProject()
Creates a new project resource with the name selected in the wizard page. Project creation is wrapped in a WorkspaceModifyOperation.

Returns:
the created project resource, or null if the project was not created
See Also:
WorkspaceModifyOperation

createProject

public void createProject(IProjectDescription description,
                          IProject projectHandle,
                          IProgressMonitor monitor)
                   throws CoreException
Creates a project resource given the project handle and description.

Parameters:
description - the project description to create a project resource for
projectHandle - the project handle to create a project resource for
monitor - the progress monitor to show visual progress with
Throws:
CoreException - if the operation fails

resultInformation

protected void resultInformation(String title,
                                 String msg)
Used to show action results.

See Also:
MessageDialog

resultError

protected void resultError(String title,
                           String msg)
Used to show action results.

See Also:
MessageDialog

setInitializationData

public void setInitializationData(IConfigurationElement config,
                                  String propertyName,
                                  Object data)
                           throws CoreException
Throws:
CoreException


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.