Class NewInterfaceWizardPage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.wizard.IWizardPage, IFieldChangedListener, IListenablePage

    public class NewInterfaceWizardPage
    extends NewScopedElementWizardPage
    implements org.eclipse.jface.viewers.ISelectionChangedListener
    Interface creation page.
    • Constructor Detail

      • NewInterfaceWizardPage

        public NewInterfaceWizardPage​(java.lang.String pPageName,
                                      IUnoidlProject pUnoProject)
        Constructor.
        Parameters:
        pPageName - the page name
        pUnoProject - the project for which to create the interface.
      • NewInterfaceWizardPage

        public NewInterfaceWizardPage​(java.lang.String pPageName,
                                      IUnoidlProject pProject,
                                      java.lang.String pRootName,
                                      java.lang.String pElementName)
        Constructor.
        Parameters:
        pPageName - the page name
        pProject - the project for which to create the interface.
        pRootName - scoped name of the module containing the type
        pElementName - name of the type, without any '.' or '::'
    • Method Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        dispose in class NewScopedElementWizardPage
      • createSpecificControl

        protected void createSpecificControl​(org.eclipse.swt.widgets.Composite pParent)
        Implement this method to add specific controls for the subclassing wizard page.
        Specified by:
        createSpecificControl in class NewScopedElementWizardPage
        Parameters:
        pParent - the composite parent where to put the controls
      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        getTitle in class org.eclipse.jface.dialogs.DialogPage
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        getDescription in class org.eclipse.jface.dialogs.DialogPage
      • getTypeLabel

        protected java.lang.String getTypeLabel()
        Specified by:
        getTypeLabel in class NewScopedElementWizardPage
        Returns:
        the string corresponding to the type name, e.g. "interface".
      • getImageDescriptor

        protected org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
        Specified by:
        getImageDescriptor in class NewScopedElementWizardPage
        Returns:
        the image descriptor to put on the top-right of the page
      • selectionChanged

        public void selectionChanged​(org.eclipse.jface.viewers.SelectionChangedEvent pEvent)
        Specified by:
        selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener