Package org.eclipse.equinox.p2.ui
Class RevertProfilePage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.ui.about.InstallationPage
-
- org.eclipse.equinox.p2.ui.RevertProfilePage
-
- All Implemented Interfaces:
ICopyable,IDialogPage,IMessageProvider
public class RevertProfilePage extends InstallationPage implements ICopyable
RevertProfilePage displays a profile's configuration history in an Installation Page. Clients can use this class as the implementation class for an installationPages extension.- Since:
- 2.0
- See Also:
InstallationPage- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Constructor Description RevertProfilePage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuttonPressed(int buttonId)Notifies that this page's button with the given id has been pressed.voidcopyToClipboard(Control activeControl)Copy text related to the active control to the clipboard.voidcreateControl(Composite parent)Creates the top level control for this dialog page under the given parent composite.voidcreatePageButtons(Composite parent)Create the buttons that belong to this page using the specified parent.protected IStructuredSelectiongetSelection()protected voidhandleSelectionChanged(IStructuredSelection selection)voidsetProvisioningUI(ProvisioningUI value)Set the provisioning UI to use with this page-
Methods inherited from class org.eclipse.ui.about.InstallationPage
createButton, getPageContainer, setMessage, setMessage, setPageContainer
-
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
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
-
-
-
-
Method Detail
-
createPageButtons
public void createPageButtons(Composite parent)
Description copied from class:InstallationPageCreate the buttons that belong to this page using the specified parent.- Overrides:
createPageButtonsin classInstallationPage- Parameters:
parent- the parent to use for the buttons.- See Also:
InstallationPage.createButton(Composite, int, String),InstallationPage.buttonPressed(int)
-
createControl
public void createControl(Composite parent)
Description copied from interface:IDialogPageCreates the top level control for this dialog page under the given parent composite.Implementors are responsible for ensuring that the created control can be accessed via
getControl- Specified by:
createControlin interfaceIDialogPage- Parameters:
parent- the parent composite
-
buttonPressed
protected void buttonPressed(int buttonId)
Description copied from class:InstallationPageNotifies that this page's button with the given id has been pressed. Subclasses should extend this method to handle the buttons created inInstallationPage.createButton(Composite, int, String)- Overrides:
buttonPressedin classInstallationPage- Parameters:
buttonId- the id of the button that was pressed (seeIDialogConstants.*_IDconstants)
-
handleSelectionChanged
protected void handleSelectionChanged(IStructuredSelection selection)
-
copyToClipboard
public void copyToClipboard(Control activeControl)
Description copied from interface:ICopyableCopy text related to the active control to the clipboard.- Specified by:
copyToClipboardin interfaceICopyable- Parameters:
activeControl- the active control
-
getSelection
protected IStructuredSelection getSelection()
-
setProvisioningUI
public void setProvisioningUI(ProvisioningUI value)
Set the provisioning UI to use with this page- Parameters:
value- the provisioning ui to use- Since:
- 2.1
-
-