|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.dialogs.DialogPage | +--org.eclipse.jface.wizard.WizardPage | +--org.eclipse.ui.dialogs.WizardNewFolderMainPage
Standard main page for a wizard that creates a folder resource.
This page may be used by clients as-is; it may be also be subclassed to suit.
Subclasses may extend
handleEvent
Field Summary |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
WizardNewFolderMainPage(String pageName,
IStructuredSelection selection)
Creates a new folder creation wizard page. |
Method Summary | |
void |
createControl(Composite parent)
(non-Javadoc) Method declared on IDialogPage. |
protected void |
createFolder(IFolder folderHandle,
IProgressMonitor monitor)
Creates a folder resource given the folder handle. |
protected IFolder |
createFolderHandle(IPath folderPath)
Creates a folder resource handle for the folder with the given workspace path. |
IFolder |
createNewFolder()
Creates a new folder resource in the selected container and with the selected name. |
void |
handleEvent(Event ev)
The WizardNewFolderCreationPage implementation of this
Listener method handles all events and enablements for controls
on this page. |
protected void |
initializePage()
Initializes this page's controls. |
void |
setVisible(boolean visible)
Sets the visibility of this dialog page. |
protected boolean |
validatePage()
Returns whether this page's controls currently all contain valid values. |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setControl, setMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp |
Constructor Detail |
public WizardNewFolderMainPage(String pageName, IStructuredSelection selection)
pageName
- the name of the pageselection
- the current resource selectionMethod Detail |
public void createControl(Composite parent)
createControl
in interface IDialogPage
parent
- the parent compositeprotected void createFolder(IFolder folderHandle, IProgressMonitor monitor) throws CoreException
folderHandle
- the folder handle to create a folder resource formonitor
- the progress monitor to show visual progress with
CoreException
- if the operation fails
OperationCanceledException
- if the operation is canceledprotected IFolder createFolderHandle(IPath folderPath)
createFolder
.
folderPath
- the path of the folder resource to create a handle for
createFolder(org.eclipse.core.resources.IFolder, org.eclipse.core.runtime.IProgressMonitor)
public IFolder createNewFolder()
In normal usage, this method is invoked after the user has pressed Finish on the wizard; the enablement of the Finish button implies that all controls on this page currently contain valid values.
Note that this page caches the new folder once it has been successfully created; subsequent invocations of this method will answer the same folder resource without attempting to create it again.
This method should be called within a workspace modify operation since it creates resources.
null
if the folder
was not createdpublic void handleEvent(Event ev)
WizardNewFolderCreationPage
implementation of this
Listener
method handles all events and enablements for controls
on this page. Subclasses may extend.
handleEvent
in interface Listener
ev
- the event which occurredprotected void initializePage()
protected boolean validatePage()
true
if all controls are valid, and
false
if at least one is invalidpublic void setVisible(boolean visible)
IDialogPage
setVisible
in interface IDialogPage
setVisible
in class DialogPage
visible
- true
to make this page visible,
and false
to hide it
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |