public class AbstractFileNewWizardPage
extends WizardPage
Constructor and Description |
---|
AbstractFileNewWizardPage(AbstractFileNewWizard wizard,
IResource initialSelection)
Creates a new complete OCL file creation wizard page.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent)
(non-Javadoc) Method declared on IDialogPage.
|
IFile |
createNewFile()
Creates a new complete OCL file resource in the selected container and
with the selected name.
|
InputStream |
getInitialContents()
Returns a stream containing the initial contents to be given to new
complete OCL file resource instances.
|
void |
handleEvent(Event event)
The
WizardNewFileCreationPage implementation of this
Listener method handles all events and enablements for
controls on this page. |
AbstractFileDialog |
initDialog(IResource initialSelection) |
void |
setVisible(boolean visible) |
public AbstractFileNewWizardPage(AbstractFileNewWizard wizard, IResource initialSelection)
public void createControl(Composite parent)
public IFile createNewFile()
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 on this page currently contain valid values.
Note that this page caches the new complete OCL file once it has been successfully created; subsequent invocations of this method will answer the same file resource without attempting to create it again.
This method should be called within a workspace modify operation since it creates resources.
null
if the file was
not createdpublic InputStream getInitialContents()
public void handleEvent(Event event)
WizardNewFileCreationPage
implementation of this
Listener
method handles all events and enablements for
controls on this page. Subclasses may extend.public AbstractFileDialog initDialog(IResource initialSelection)
public void setVisible(boolean visible)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.