public abstract class InstallationPage extends DialogPage
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>
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
InstallationPage() |
Modifier and Type | Method and Description |
---|---|
protected void |
buttonPressed(int buttonId)
Notifies that this page's button with the given id has been pressed.
|
protected Button |
createButton(Composite parent,
int id,
String label)
Creates a new button with the given id.
|
void |
createPageButtons(Composite parent)
Create the buttons that belong to this page using the specified parent.
|
protected IInstallationPageContainer |
getPageContainer()
Get the page container that is hosting this page.
|
void |
setMessage(String newMessage)
Sets or clears the message for this page.
|
void |
setMessage(String newMessage,
int newType)
Sets the message for this page with an indication of what type of message
it is.
|
void |
setPageContainer(IInstallationPageContainer container)
Set the page container that is hosting this page.
|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setDescription, setErrorMessage, setImageDescriptor, setTitle, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createControl
public void setMessage(String newMessage)
This message has no effect when the receiver is used in an IInstallationPageContainer.
setMessage
in class DialogPage
newMessage
- the message, or null
to clear the messagepublic void setMessage(String newMessage, int newType)
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.
setMessage
in class DialogPage
newMessage
- the message, or null
to clear the messagenewType
- the message typepublic void setPageContainer(IInstallationPageContainer container)
IInstallationPageContainer.registerPageButton(InstallationPage, Button)
or performing other container-related tasks.container
- the container that is hosting the page.public void createPageButtons(Composite parent)
parent
- the parent to use for the buttons.createButton(Composite, int, String)
,
buttonPressed(int)
protected Button createButton(Composite parent, int id, String label)
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.
parent
- the parent compositeid
- the id of the button (see IDialogConstants.*_ID
constants for standard dialog button ids)label
- the label from the buttoncreatePageButtons(Composite)
,
buttonPressed(int)
protected void buttonPressed(int buttonId)
createButton(Composite, int, String)
buttonId
- the id of the button that was pressed (see
IDialogConstants.*_ID
constants)protected IInstallationPageContainer getPageContainer()
IInstallationPageContainer.registerPageButton(InstallationPage, Button)
or performing other container-related tasks.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.