| org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
All known Subclasses: org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard, org.eclipse.ui.wizards.newresource.BasicNewFolderResourceWizard, org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard,
BasicNewResourceWizard | abstract public class BasicNewResourceWizard extends Wizard implements INewWizard(Code) | | 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.
|
Field Summary | |
protected IStructuredSelection | selection The current selection. |
Constructor Summary | |
protected | BasicNewResourceWizard() Creates an empty wizard for creating a new resource in the workspace. |
Method Summary | |
public IStructuredSelection | getSelection() Returns the selection which was passed to init . | public IWorkbench | getWorkbench() Returns the workbench which was passed to init . | public void | init(IWorkbench workbench, IStructuredSelection currentSelection) The BasicNewResourceWizard implementation of this
IWorkbenchWizard method records the given workbench and
selection, and initializes the default banner image for the pages
by calling initializeDefaultPageImageDescriptor . | protected void | initializeDefaultPageImageDescriptor() Initializes the default page image descriptor to an appropriate banner. | protected void | selectAndReveal(IResource newResource) Selects and reveals the newly added resource in all parts
of the active workbench window's active page. | public static void | selectAndReveal(IResource resource, 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. |
selection | protected IStructuredSelection selection(Code) | | The current selection.
|
BasicNewResourceWizard | protected BasicNewResourceWizard()(Code) | | Creates an empty wizard for creating a new resource in the workspace.
|
getSelection | public IStructuredSelection getSelection()(Code) | | Returns the selection which was passed to init .
the selection |
getWorkbench | public IWorkbench getWorkbench()(Code) | | Returns the workbench which was passed to init .
the workbench |
init | public void init(IWorkbench workbench, IStructuredSelection currentSelection)(Code) | | The BasicNewResourceWizard implementation of this
IWorkbenchWizard method records the given workbench and
selection, and initializes the default banner image for the pages
by calling initializeDefaultPageImageDescriptor .
Subclasses may extend.
|
initializeDefaultPageImageDescriptor | protected void initializeDefaultPageImageDescriptor()(Code) | | Initializes the default page image descriptor to an appropriate banner.
By calling setDefaultPageImageDescriptor .
The default implementation of this method uses a generic new wizard image.
Subclasses may reimplement.
|
selectAndReveal | protected void selectAndReveal(IResource newResource)(Code) | | Selects and reveals the newly added resource in all parts
of the active workbench window's active page.
See Also: ISetSelectionTarget |
selectAndReveal | public static void selectAndReveal(IResource resource, IWorkbenchWindow window)(Code) | | 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 Parameters: window - the workbench window to select and reveal the resource See Also: ISetSelectionTarget |
|
|