Eclipse Platform
Release 3.6

org.eclipse.equinox.p2.ui
Class AcceptLicensesWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.equinox.p2.ui.AcceptLicensesWizardPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class AcceptLicensesWizardPage
extends WizardPage

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
AcceptLicensesWizardPage(LicenseManager manager, IInstallableUnit[] ius, ProfileChangeOperation operation)
          Create a license acceptance page for showing licenses to the user.
 
Method Summary
 void createControl(Composite parent)
          Creates the top level control for this dialog page under the given parent composite.
 boolean hasLicensesToAccept()
          Return a boolean indicating whether there are licenses that must be accepted by the user.
 boolean performFinish()
          The wizard is finishing.
 void saveBoundsRelatedSettings()
          Save any settings related to the current size and location of the wizard page.
 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, setVisible
 
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, setVisible
 

Constructor Detail

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 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 Detail

createControl

public void createControl(Composite parent)
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, and false if there are no licenses that must be accepted.

updateForPlan

public 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. Clients using this page in conjunction with a ProfileChangeOperation should instead use update(IInstallableUnit[], ProfileChangeOperation). This method is intended for clients who are working with a low-level provisioning plan rather than an InstallOperation or UpdateOperation.

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:
update(IInstallableUnit[], ProfileChangeOperation)

update

public void update(IInstallableUnit[] theIUs,
                   ProfileChangeOperation operation)
Update 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

saveBoundsRelatedSettings

public void saveBoundsRelatedSettings()
Save any settings related to the current size and location of the wizard page.


Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.