|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.ocl.examples.xtext.base.ui.wizards.AbstractFileNewWizardPage
public class AbstractFileNewWizardPage
Wizard page allowing creation of OCL rule files in the workspace.
Field Summary | |
---|---|
protected org.eclipse.core.resources.IResource |
initialSelection
|
protected AbstractFileNewWizard |
wizard
|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
AbstractFileNewWizardPage(AbstractFileNewWizard wizard,
org.eclipse.core.resources.IResource initialSelection)
Creates a new complete OCL file creation wizard page. |
Method Summary | |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
(non-Javadoc) Method declared on IDialogPage. |
org.eclipse.core.resources.IFile |
createNewFile()
Creates a new complete OCL file resource in the selected container and with the selected name. |
java.io.InputStream |
getInitialContents()
Returns a stream containing the initial contents to be given to new complete OCL file resource instances. |
void |
handleEvent(org.eclipse.swt.widgets.Event event)
The WizardNewFileCreationPage implementation of this
Listener method handles all events and enablements for
controls on this page. |
AbstractFileDialog |
initDialog(org.eclipse.core.resources.IResource initialSelection)
|
void |
setVisible(boolean visible)
|
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, setButtonLayoutData, 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 |
Field Detail |
---|
@NonNull protected final AbstractFileNewWizard wizard
@Nullable protected final org.eclipse.core.resources.IResource initialSelection
Constructor Detail |
---|
public AbstractFileNewWizardPage(@NonNull AbstractFileNewWizard wizard, @Nullable org.eclipse.core.resources.IResource initialSelection)
selection
- the current resource selectionMethod Detail |
---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in interface org.eclipse.jface.dialogs.IDialogPage
public org.eclipse.core.resources.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 java.io.InputStream getInitialContents()
public void handleEvent(org.eclipse.swt.widgets.Event event)
WizardNewFileCreationPage
implementation of this
Listener
method handles all events and enablements for
controls on this page. Subclasses may extend.
handleEvent
in interface org.eclipse.swt.widgets.Listener
@NonNull public AbstractFileDialog initDialog(@Nullable org.eclipse.core.resources.IResource initialSelection)
public void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
setVisible
in class org.eclipse.jface.dialogs.DialogPage
protected boolean validatePage()
true
if all controls are valid, and
false
if at least one is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |