Class BasicNewResourceWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
- All Implemented Interfaces:
- IShellProvider,- IWizard,- INewWizard,- IWorkbenchWizard
- Direct Known Subclasses:
- BasicNewFileResourceWizard,- BasicNewFolderResourceWizard,- BasicNewProjectResourceWizard
Abstract base implementation of the standard workbench wizards
 that create new resources in the workspace.
 
This class is not intended to be subclassed outside this package.
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Field SummaryFieldsFields inherited from class org.eclipse.jface.wizard.WizardDEFAULT_IMAGE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates an empty wizard for creating a new resource in the workspace.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the selection which was passed toinit.Returns the workbench which was passed toinit.voidinit(IWorkbench theWorkbench, IStructuredSelection currentSelection) TheBasicNewResourceWizardimplementation of thisIWorkbenchWizardmethod records the given workbench and selection, and initializes the default banner image for the pages by callinginitializeDefaultPageImageDescriptor.protected voidInitializes the default page image descriptor to an appropriate banner.protected voidselectAndReveal(IResource newResource) Selects and reveals the newly added resource in all parts of the active workbench window's active page.static voidselectAndReveal(IResource resource, 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.jface.wizard.WizardaddPage, addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, performFinish, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.wizard.IWizardaddPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, performFinish, setContainer
- 
Field Details- 
selectionThe current selection.
 
- 
- 
Constructor Details- 
BasicNewResourceWizardprotected BasicNewResourceWizard()Creates an empty wizard for creating a new resource in the workspace.
 
- 
- 
Method Details- 
getSelectionReturns the selection which was passed toinit.- Returns:
- the selection
 
- 
getWorkbenchReturns the workbench which was passed toinit.- Returns:
- the workbench
 
- 
initTheBasicNewResourceWizardimplementation of thisIWorkbenchWizardmethod records the given workbench and selection, and initializes the default banner image for the pages by callinginitializeDefaultPageImageDescriptor. Subclasses may extend.- Specified by:
- initin interface- IWorkbenchWizard
- Parameters:
- theWorkbench- the current workbench
- currentSelection- the current object selection
 
- 
initializeDefaultPageImageDescriptorprotected void initializeDefaultPageImageDescriptor()Initializes the default page image descriptor to an appropriate banner. By callingsetDefaultPageImageDescriptor. The default implementation of this method uses a generic new wizard image.Subclasses may reimplement. 
- 
selectAndRevealSelects and reveals the newly added resource in all parts of the active workbench window's active page.- See Also:
 
- 
selectAndRevealAttempts 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:
 
 
-