org.radrails.rails.ui.wizards
Class NewProjectBasedResourceWizard

java.lang.Object
  extended byorg.eclipse.jface.wizard.Wizard
      extended byorg.radrails.rails.ui.wizards.NewProjectBasedResourceWizard
All Implemented Interfaces:
org.eclipse.ui.INewWizard, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.IWorkbenchWizard
Direct Known Subclasses:
NewWEBrickServerWizard

public abstract class NewProjectBasedResourceWizard
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard

Helper class to provide convenient access to the currently selected project in the workspace. Subclasses will use these methods to perform operations on the selected project.

Author:
mkent

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewProjectBasedResourceWizard()
           
 
Method Summary
 org.eclipse.core.resources.IProject getProjectForName(java.lang.String name)
           
 java.lang.String getSelectedProjectName()
           
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, performFinish, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.wizard.IWizard
addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, performFinish, setContainer
 

Constructor Detail

NewProjectBasedResourceWizard

public NewProjectBasedResourceWizard()
Method Detail

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
See Also:
IWorkbenchWizard.init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)

getProjectForName

public org.eclipse.core.resources.IProject getProjectForName(java.lang.String name)
Returns:
the parent project of the current selected resource, null if no resource selected

getSelectedProjectName

public java.lang.String getSelectedProjectName()
Returns:
the name of the selected project, "" if no project is selected