Class SelectEClassWizardPage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
    Direct Known Subclasses:
    SelectEClassForViewWizardPage

    public class SelectEClassWizardPage
    extends org.eclipse.jface.wizard.WizardPage
    Wizard page allowing the selection of an EClass from a given container.
    • Field Summary

      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectEClassWizardPage()
      Creates a new EClass selection wizard page.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createControl​(org.eclipse.swt.widgets.Composite parent)  
      java.util.List<org.eclipse.emf.ecore.EClass> getSelectedEClasses()
      Returns the EClasses selected by the user in the wizard page.
      org.eclipse.emf.ecore.EPackage getSelectedEPackage()
      Returns the EPackage container providing the EClasses displayed in the wizard page.
      protected boolean isMultiSelect()
      Returns whether multiple EClasses can be selected in the tree.
      boolean isPageComplete()  
      void setSelectedEClasses​(java.util.List<org.eclipse.emf.ecore.EClass> selectedEClasses)
      Sets the EClasses selected by this wizard page.
      void setSelectedEPackage​(org.eclipse.emf.ecore.EPackage selectedEPackage)
      Sets the EPackage container from which the EClasses will be selected in the wizard page.
      void setVisible​(boolean visible)  
      • Methods inherited from class org.eclipse.jface.wizard.WizardPage

        canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, 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

      • SelectEClassWizardPage

        public SelectEClassWizardPage()
        Creates a new EClass selection wizard page.
    • Method Detail

      • createControl

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

        protected boolean isMultiSelect()
        Returns whether multiple EClasses can be selected in the tree.
        Returns:
        true if multi selection is allowed, false otherwise
      • setVisible

        public void setVisible​(boolean visible)
        Specified by:
        setVisible in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        setVisible in class org.eclipse.jface.dialogs.DialogPage
      • getSelectedEPackage

        public org.eclipse.emf.ecore.EPackage getSelectedEPackage()
        Returns the EPackage container providing the EClasses displayed in the wizard page.
        Returns:
        the EPackage
      • setSelectedEPackage

        public void setSelectedEPackage​(org.eclipse.emf.ecore.EPackage selectedEPackage)
        Sets the EPackage container from which the EClasses will be selected in the wizard page.
        Parameters:
        selectedEPackage - the ePackage to set
      • setSelectedEClasses

        public void setSelectedEClasses​(java.util.List<org.eclipse.emf.ecore.EClass> selectedEClasses)
        Sets the EClasses selected by this wizard page.
        Parameters:
        selectedEClasses - the selectedEClasses to set
      • getSelectedEClasses

        public java.util.List<org.eclipse.emf.ecore.EClass> getSelectedEClasses()
        Returns the EClasses selected by the user in the wizard page.
        Returns:
        the selected EClasses as a list
      • isPageComplete

        public boolean isPageComplete()
        Specified by:
        isPageComplete in interface org.eclipse.jface.wizard.IWizardPage
        Overrides:
        isPageComplete in class org.eclipse.jface.wizard.WizardPage