be.ac.vub.cocompose.eclipse.wizards
Class ModelWizardPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.wizard.WizardPage
          extended byorg.eclipse.ui.dialogs.WizardNewFileCreationPage
              extended bybe.ac.vub.cocompose.eclipse.wizards.ModelWizardPage
All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IWizardPage, Listener, SelectionListener, SWTEventListener

public class ModelWizardPage
extends WizardNewFileCreationPage
implements SelectionListener

Page for the NewModelWizard.

Since:
0.2.0
Version:
0.2.0, 08/12/2003
Author:
Dennis Wagelaar
See Also:
NewModelWizard

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ModelWizardPage(IWorkbench workbench, IStructuredSelection selection)
          Creates a ModelWizardPage.
 
Method Summary
 void createControl(Composite parent)
           
 boolean finish()
          Finishes this wizard page.
 void widgetDefaultSelected(SelectionEvent e)
           
 void widgetSelected(SelectionEvent e)
           
 
Methods inherited from class org.eclipse.ui.dialogs.WizardNewFileCreationPage
createAdvancedControls, createFile, createFileHandle, createLinkTarget, createNewFile, getContainerFullPath, getFileName, getInitialContents, getNewFileLabel, handleAdvancedButtonSelect, handleEvent, initialPopulateContainerNameField, setContainerFullPath, setFileName, setVisible, validateLinkedResource, validatePage
 
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
 

Constructor Detail

ModelWizardPage

public ModelWizardPage(IWorkbench workbench,
                       IStructuredSelection selection)
Creates a ModelWizardPage.

Parameters:
workbench - - The Eclipse workbench.
selection - - The selection to listen for.
Method Detail

createControl

public void createControl(Composite parent)
Specified by:
createControl in interface IDialogPage
See Also:
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)

widgetSelected

public void widgetSelected(SelectionEvent e)
Specified by:
widgetSelected in interface SelectionListener
See Also:
SelectionListener.widgetSelected(org.eclipse.swt.events.SelectionEvent)

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)
Specified by:
widgetDefaultSelected in interface SelectionListener
See Also:
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)

finish

public boolean finish()
Finishes this wizard page.

Returns:
true if and only if this page finished succesfully.