org.eclipse.gmt.umlx.editor.wizards
Class NewDiagramPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
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).
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. |
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 |
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 typediagramExtension
- file name extension of the diagram typeselection
- selection context to support deduction of parent project
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()