org.eclipse.gmt.umlx.editor.wizards
Class NewDiagramPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.gmt.umlx.editor.wizards.NewDiagramPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class NewDiagramPage
extends org.eclipse.jface.wizard.WizardPage

The "New" wizard page allows setting the container for the new file as well as the file name. The page will only accept file name without the extension OR with the extension that matches the expected one (diagram).


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
NewDiagramPage(java.lang.String diagramType, java.lang.String diagramExtension, org.eclipse.jface.viewers.ISelection selection)
          Construct a NewDiagramPage.
 
Method Summary
 void createBanner(org.eclipse.swt.widgets.Composite parent)
           
 org.eclipse.swt.widgets.Text createContainerText(org.eclipse.swt.widgets.Composite container)
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 org.eclipse.swt.widgets.Text createFileText(org.eclipse.swt.widgets.Composite container)
           
 java.lang.String getContainerName()
           
 java.util.Collection<EcoreURI> getEcoreURIs()
           
 java.lang.String getFileName()
           
 
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, setVisible
 
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, setVisible
 

Constructor Detail

NewDiagramPage

public NewDiagramPage(java.lang.String diagramType,
                      java.lang.String diagramExtension,
                      org.eclipse.jface.viewers.ISelection selection)
Construct a NewDiagramPage.

Parameters:
diagramType - name of the diagram type
diagramExtension - file name extension of the diagram type
selection - selection context to support deduction of parent project
Method Detail

createControl

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

createBanner

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

createContainerText

public org.eclipse.swt.widgets.Text createContainerText(org.eclipse.swt.widgets.Composite container)

createFileText

public org.eclipse.swt.widgets.Text createFileText(org.eclipse.swt.widgets.Composite container)

getContainerName

public java.lang.String getContainerName()

getFileName

public java.lang.String getFileName()

getEcoreURIs

public java.util.Collection<EcoreURI> getEcoreURIs()