Package org.eclipse.equinox.p2.ui
Class AcceptLicensesWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.equinox.p2.ui.AcceptLicensesWizardPage
- All Implemented Interfaces:
IDialogPage,IMessageProvider,IWizardPage
AcceptLicensesWizardPage shows a list of the IU's that have
licenses that have not been approved by the user, and allows the
user to approve them.
- Since:
- 2.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionAcceptLicensesWizardPage(LicenseManager manager, IInstallableUnit[] ius, ProfileChangeOperation operation) Create a license acceptance page for showing licenses to the user. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(Composite parent) Creates the top level control for this dialog page under the given parent composite.booleanReturn a boolean indicating whether there are licenses that must be accepted by the user.booleanThe wizard is finishing.voidSave any settings related to the current size and location of the wizard page.voidsetVisible(boolean visible) TheDialogPageimplementation of thisIDialogPagemethod sets the control to the given visibility state.voidupdate(IInstallableUnit[] theIUs, ProfileChangeOperation operation) Update the page for the specified IInstallableUnits and operation.voidupdateForPlan(IInstallableUnit[] theIUs, IProvisioningPlan plan) Update the current page to show the licenses that must be approved for the selected IUs and the provisioning plan.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods 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, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelpMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
AcceptLicensesWizardPage
public AcceptLicensesWizardPage(LicenseManager manager, IInstallableUnit[] ius, ProfileChangeOperation operation) Create a license acceptance page for showing licenses to the user.- Parameters:
manager- the license manager that should be used to check for already accepted licenses. May benull.ius- the IInstallableUnits for which licenses should be checkedoperation- the provisioning operation describing what changes are to take place on the profile
-
-
Method Details
-
createControl
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- Parameters:
parent- the parent composite
-
performFinish
public boolean performFinish()The wizard is finishing. Perform any necessary processing.- Returns:
trueif the finish can proceed,falseif it should not.
-
hasLicensesToAccept
public boolean hasLicensesToAccept()Return a boolean indicating whether there are licenses that must be accepted by the user.- Returns:
trueif there are licenses that must be accepted, andfalseif there are no licenses that must be accepted.
-
updateForPlan
Update the current page to show the licenses that must be approved for the selected IUs and the provisioning plan. Clients using this page in conjunction with aProfileChangeOperationshould instead useupdate(IInstallableUnit[], ProfileChangeOperation). This method is intended for clients who are working with a low-level provisioning plan rather than anInstallOperationorUpdateOperation.- Parameters:
theIUs- the installable units to be installed for which licenses must be checkedplan- the provisioning plan that describes a resolved install operation- See Also:
-
update
Update the page for the specified IInstallableUnits and operation.- Parameters:
theIUs- the IInstallableUnits for which licenses should be checkedoperation- the operation describing the pending profile change
-
saveBoundsRelatedSettings
public void saveBoundsRelatedSettings()Save any settings related to the current size and location of the wizard page. -
setVisible
public void setVisible(boolean visible) Description copied from class:DialogPageTheDialogPageimplementation of thisIDialogPagemethod sets the control to the given visibility state. Subclasses may extend.- Specified by:
setVisiblein interfaceIDialogPage- Overrides:
setVisiblein classDialogPage- Parameters:
visible-trueto make this page visible, andfalseto hide it
-