com.pvx.ooadide.wizards
Class NewNomadsNmdWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
          extended by org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard
              extended by com.pvx.ooadide.wizards.NewNomadsNmdWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class NewNomadsNmdWizard
extends org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard
implements org.eclipse.ui.INewWizard


Field Summary
static java.lang.String ID
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewNomadsNmdWizard()
           
 
Method Summary
 void addPages()
          Adding the page to the wizard.
 void addTestPage(PvxNewProgramPropertiesWizardPage testpage)
           
 PvxNewProgramPropertiesWizardPage getPvxWizPage()
           
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          We will accept the selection in the workbench to see if we can initialize from it.
 boolean performFinish()
          This method is called when 'Finish' button is pressed in the wizard.
static void selectAndReveal(org.eclipse.core.resources.IResource resource, org.eclipse.ui.IWorkbenchWindow window)
          Attempts to select and reveal the specified resource in all parts within the supplied workbench window's active page.
 
Methods inherited from class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
getSelection, getWorkbench
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, 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
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

NewNomadsNmdWizard

public NewNomadsNmdWizard()
Method Detail

getPvxWizPage

public PvxNewProgramPropertiesWizardPage getPvxWizPage()

addPages

public void addPages()
Adding the page to the wizard.

Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard

addTestPage

public void addTestPage(PvxNewProgramPropertiesWizardPage testpage)

performFinish

public boolean performFinish()
This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.

Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
performFinish in class org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
Overrides:
init in class org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard
See Also:
IWorkbenchWizard.init(IWorkbench, IStructuredSelection)

selectAndReveal

public static void selectAndReveal(org.eclipse.core.resources.IResource resource,
                                   org.eclipse.ui.IWorkbenchWindow window)
Attempts to select and reveal the specified resource in all parts within the supplied workbench window's active page.

Checks all parts in the active page to see if they implement ISetSelectionTarget, either directly or as an adapter. If so, tells the part to select and reveal the specified resource.

Parameters:
resource - the resource to be selected and revealed
window - the workbench window to select and reveal the resource
See Also:
ISetSelectionTarget