org.ocleditor.internal.ui.wizards.create
Class OclCreationPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.wizard.WizardPage
          extended byorg.eclipse.ui.dialogs.WizardNewFileCreationPage
              extended byorg.ocleditor.internal.ui.wizards.create.OclCreationPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.widgets.Listener

public class OclCreationPage
extends org.eclipse.ui.dialogs.WizardNewFileCreationPage

This class is the only page of the OCL file resource creation wizard. It subclasses the standard file resource creation page class, and consequently inherits the file resource creation functionality.

An option to open the file immediately for editing after creation is created.


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
OclCreationPage(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Default constructor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 boolean finish()
          Creates a new file resource as requested by the user.
 
Methods inherited from class org.eclipse.ui.dialogs.WizardNewFileCreationPage
createNewFile, getContainerFullPath, getFileName, handleEvent, setContainerFullPath, setFileName, setVisible
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage
 
Methods inherited from class java.lang.Object
equals, 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

OclCreationPage

public OclCreationPage(org.eclipse.ui.IWorkbench workbench,
                       org.eclipse.jface.viewers.IStructuredSelection selection)
Default constructor.

Parameters:
workbench -
selection -
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

finish

public boolean finish()
Creates a new file resource as requested by the user. If everything is OK then return true. If not, false will cause the dialog to stay open.

Returns:
whether creation was successful
See Also:
OclCreationWizard.performFinish()