public abstract class BasicNewResourceWizard extends Wizard implements INewWizard
This class is not intended to be subclassed outside this package.
Modifier and Type | Field and Description |
---|---|
protected IStructuredSelection |
selection
The current selection.
|
DEFAULT_IMAGE
Modifier | Constructor and Description |
---|---|
protected |
BasicNewResourceWizard()
Creates an empty wizard for creating a new resource in the workspace.
|
Modifier and Type | Method and Description |
---|---|
IStructuredSelection |
getSelection()
Returns the selection which was passed to
init . |
IWorkbench |
getWorkbench()
Returns the workbench which was passed to
init . |
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.
|
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.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, performFinish, setContainer
protected IStructuredSelection selection
protected BasicNewResourceWizard()
public IStructuredSelection getSelection()
init
.public IWorkbench getWorkbench()
init
.public void init(IWorkbench workbench, IStructuredSelection currentSelection)
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.init
in interface IWorkbenchWizard
workbench
- the current workbenchcurrentSelection
- the current object selectionprotected void initializeDefaultPageImageDescriptor()
setDefaultPageImageDescriptor
.
The default implementation of this method uses a generic new wizard image.
Subclasses may reimplement.
protected void selectAndReveal(IResource newResource)
ISetSelectionTarget
public static void selectAndReveal(IResource resource, IWorkbenchWindow window)
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.
resource
- the resource to be selected and revealedwindow
- the workbench window to select and reveal the resourceISetSelectionTarget
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.