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
ConstructorDescriptionAcceptLicensesWizardPage
(LicenseManager manager, IInstallableUnit[] ius, ProfileChangeOperation operation) Create a license acceptance page for showing licenses to the user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(Composite parent) Creates the top level control for this dialog page under the given parent composite.boolean
Return a boolean indicating whether there are licenses that must be accepted by the user.boolean
The wizard is finishing.void
Save any settings related to the current size and location of the wizard page.void
setVisible
(boolean visible) TheDialogPage
implementation of thisIDialogPage
method sets the control to the given visibility state.void
update
(IInstallableUnit[] theIUs, ProfileChangeOperation operation) Update the page for the specified IInstallableUnits and operation.void
updateForPlan
(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, toString
Methods 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, setMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
Methods 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:IDialogPage
Creates 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:
true
if the finish can proceed,false
if it should not.
-
hasLicensesToAccept
public boolean hasLicensesToAccept()Return a boolean indicating whether there are licenses that must be accepted by the user.- Returns:
true
if there are licenses that must be accepted, andfalse
if 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 aProfileChangeOperation
should instead useupdate(IInstallableUnit[], ProfileChangeOperation)
. This method is intended for clients who are working with a low-level provisioning plan rather than anInstallOperation
orUpdateOperation
.- 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:DialogPage
TheDialogPage
implementation of thisIDialogPage
method sets the control to the given visibility state. Subclasses may extend.- Specified by:
setVisible
in interfaceIDialogPage
- Overrides:
setVisible
in classDialogPage
- Parameters:
visible
-true
to make this page visible, andfalse
to hide it
-