Class ViewModelWizardNewFileCreationPage

  • 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 ViewModelWizardNewFileCreationPage
    extends org.eclipse.ui.dialogs.WizardNewFileCreationPage
    This is the first page of the wizard.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.List<java.lang.String> FILE_EXTENSIONS
      The supported extensions for created files.
      static java.lang.String FORMATTED_FILE_EXTENSIONS
      A formatted list of supported file extensions, suitable for display.
      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewModelWizardNewFileCreationPage​(java.lang.String pageId, org.eclipse.jface.viewers.IStructuredSelection selection)
      Pass in the selection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createControl​(org.eclipse.swt.widgets.Composite parent)
      org.eclipse.emf.ecore.EClass getEClass()  
      org.eclipse.core.resources.IFile getModelFile()
      void setEClass​(org.eclipse.emf.ecore.EClass eClass)  
      void setVisible​(boolean visible)
      protected boolean validatePage()
      The framework calls this to see if the file is correct.
      • Methods inherited from class org.eclipse.ui.dialogs.WizardNewFileCreationPage

        createAdvancedControls, createFile, createFileHandle, createLinkTarget, createNewFile, createRule, getContainerFullPath, getFileExtension, getFileName, getInitialContents, getNewFileLabel, handleAdvancedButtonSelect, handleEvent, initialPopulateContainerNameField, setAllowExistingResources, setContainerFullPath, setFileExtension, setFileName, validateLinkedResource
      • 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

      • FILE_EXTENSIONS

        public static final java.util.List<java.lang.String> FILE_EXTENSIONS
        The supported extensions for created files.
      • FORMATTED_FILE_EXTENSIONS

        public static final java.lang.String FORMATTED_FILE_EXTENSIONS
        A formatted list of supported file extensions, suitable for display.
    • Constructor Detail

      • ViewModelWizardNewFileCreationPage

        public ViewModelWizardNewFileCreationPage​(java.lang.String pageId,
                                                  org.eclipse.jface.viewers.IStructuredSelection selection)
        Pass in the selection.
    • Method Detail

      • getEClass

        public org.eclipse.emf.ecore.EClass getEClass()
        Returns:
        the eClass
      • setEClass

        public void setEClass​(org.eclipse.emf.ecore.EClass eClass)
        Parameters:
        eClass - the eClass to set
      • setVisible

        public void setVisible​(boolean visible)
        Specified by:
        setVisible in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        setVisible in class org.eclipse.ui.dialogs.WizardNewFileCreationPage
        See Also:
        WizardNewFileCreationPage.setVisible(boolean)
      • createControl

        public void createControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createControl in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        createControl in class org.eclipse.ui.dialogs.WizardNewFileCreationPage
        See Also:
        WizardNewFileCreationPage.createControl(org.eclipse.swt.widgets.Composite)
      • validatePage

        protected boolean validatePage()
        The framework calls this to see if the file is correct.
        Overrides:
        validatePage in class org.eclipse.ui.dialogs.WizardNewFileCreationPage
      • getModelFile

        public org.eclipse.core.resources.IFile getModelFile()