Class InstallationPage

  • All Implemented Interfaces:
    IDialogPage, IMessageProvider
    Direct Known Subclasses:
    InstalledSoftwarePage, RevertProfilePage

    public abstract class InstallationPage
    extends DialogPage
    Abstract base implementation for an installation dialog page.

    Clients should extend this class and include the name of the subclass in an extension contributed to the workbench's installation pages extension point (named "org.eclipse.ui.installationPages"). For example, the plug-in's XML markup might contain:

     <extension point="org.eclipse.ui.installationPages">
          <page id="com.example.myplugin.installInfo"
             name="Example Details"
             class="com.example.myplugin.MyInstallationPage" />
     </extension>
     
    Since:
    3.5
    • Constructor Detail

      • InstallationPage

        public InstallationPage()
    • Method Detail

      • setMessage

        public void setMessage​(String newMessage)
        Sets or clears the message for this page.

        This message has no effect when the receiver is used in an IInstallationPageContainer.

        Overrides:
        setMessage in class DialogPage
        Parameters:
        newMessage - the message, or null to clear the message
      • setMessage

        public void setMessage​(String newMessage,
                               int newType)
        Sets the message for this page with an indication of what type of message it is.

        The valid message types are one of NONE, INFORMATION,WARNING, or ERROR.

        This message has no effect when the receiver is used in an IInstallationPageContainer.

        Overrides:
        setMessage in class DialogPage
        Parameters:
        newMessage - the message, or null to clear the message
        newType - the message type
      • createButton

        protected Button createButton​(Composite parent,
                                      int id,
                                      String label)
        Creates a new button with the given id.

        This method creates a standard push button, registers it for selection events, and registers it as a button belonging to this page. Subclasses should not make any assumptions about the visibility, layout, or presentation of this button inside the dialog.

        Parameters:
        parent - the parent composite
        id - the id of the button (see IDialogConstants.*_ID constants for standard dialog button ids)
        label - the label from the button
        Returns:
        the new button
        See Also:
        createPageButtons(Composite), buttonPressed(int)
      • buttonPressed

        protected void buttonPressed​(int buttonId)
        Notifies that this page's button with the given id has been pressed. Subclasses should extend this method to handle the buttons created in createButton(Composite, int, String)
        Parameters:
        buttonId - the id of the button that was pressed (see IDialogConstants.*_ID constants)