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 SummaryFields inherited from interface org.eclipse.jface.dialogs.IMessageProviderERROR, INFORMATION, NONE, WARNING
- 
Constructor SummaryConstructorsConstructorDescriptionAcceptLicensesWizardPage(LicenseManager manager, IInstallableUnit[] ius, ProfileChangeOperation operation) Create a license acceptance page for showing licenses to the user.
- 
Method SummaryModifier 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.WizardPagecanFlipToNextPage, 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.DialogPageconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPagedispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelpMethods inherited from interface org.eclipse.jface.wizard.IWizardPagegetMinimumPageSize
- 
Constructor Details- 
AcceptLicensesWizardPagepublic 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 be- null.
- ius- the IInstallableUnits for which licenses should be checked
- operation- the provisioning operation describing what changes are to take place on the profile
 
 
- 
- 
Method Details- 
createControlDescription 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
 
- 
performFinishpublic boolean performFinish()The wizard is finishing. Perform any necessary processing.- Returns:
- trueif the finish can proceed,- falseif it should not.
 
- 
hasLicensesToAcceptpublic 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, and- falseif there are no licenses that must be accepted.
 
- 
updateForPlanUpdate 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 checked
- plan- the provisioning plan that describes a resolved install operation
- See Also:
 
- 
updateUpdate the page for the specified IInstallableUnits and operation.- Parameters:
- theIUs- the IInstallableUnits for which licenses should be checked
- operation- the operation describing the pending profile change
 
- 
saveBoundsRelatedSettingspublic void saveBoundsRelatedSettings()Save any settings related to the current size and location of the wizard page.
- 
setVisiblepublic 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 interface- IDialogPage
- Overrides:
- setVisiblein class- DialogPage
- Parameters:
- visible-- trueto make this page visible, and- falseto hide it
 
 
-