|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.update.operations.OperationsManager
Entry point for update manager operations. Use this class to obtain the factory that creates update manager operations, or to get the operation validator.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Method Summary | |
static void | addPendingOperation(IOperation operation)
Register a pending operation. |
static void | addUpdateModelChangedListener(IUpdateModelChangedListener listener)
Adds a model changed listener. |
static void | applyChangesNow()
Applies the changes made to the current configuration. |
static IFeatureOperation | findPendingOperation(IFeature feature)
Check if the feature is the subject of an update operation such as install, configure, etc. and return it. |
static void | fireObjectChanged(Object object,
String property)
Notifies model changed listeners when features/sites/etc. have changed. |
static void | fireObjectsAdded(Object parent,
Object[] children)
Notifies model changed listeners when features/sites/etc. are added. |
static void | fireObjectsRemoved(Object parent,
Object[] children)
Notifies model changed listeners when features/sites/etc are removed. |
static IOperationFactory | getOperationFactory()
Each update operations must be created by the operation factory. |
static IInstallFeatureOperation[] | getSelectedJobsWithLicenses(IInstallFeatureOperation[] jobs)
Returns the list of operations that need a license agreement. |
static IInstallFeatureOperation[] | getSelectedJobsWithOptionalFeatures(IInstallFeatureOperation[] jobs)
Returns the list of operations that have optional features to install. |
static IOperationValidator | getValidator()
Returns the operations validator. |
static boolean | hasSelectedJobsWithLicenses(IInstallFeatureOperation[] jobs)
Returns true when any of the install operations requires a license agreement. |
static boolean | hasSelectedJobsWithOptionalFeatures(IInstallFeatureOperation[] jobs)
Returns true when any of the features to install has optional features. |
static boolean | isInProgress()
Returns true when some operation is being executed, false otherwise. |
static void | removePendingOperation(IOperation operation)
Unregister a pending operation. |
static void | removeUpdateModelChangedListener(IUpdateModelChangedListener listener)
Removes an model changed listener. |
static void | setInProgress(boolean inProgress)
Sets whether any operations is in progress. |
static void | setValidator(IOperationValidator validator)
Sets a custom operation validator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IOperationFactory getOperationFactory()
public static IFeatureOperation findPendingOperation(IFeature feature)
public static void addPendingOperation(IOperation operation)
public static void removePendingOperation(IOperation operation)
public static void addUpdateModelChangedListener(IUpdateModelChangedListener listener)
public static void removeUpdateModelChangedListener(IUpdateModelChangedListener listener)
public static void fireObjectsAdded(Object parent, Object[] children)
public static void fireObjectsRemoved(Object parent, Object[] children)
public static void fireObjectChanged(Object object, String property)
public static boolean hasSelectedJobsWithLicenses(IInstallFeatureOperation[] jobs)
public static boolean hasSelectedJobsWithOptionalFeatures(IInstallFeatureOperation[] jobs)
public static IInstallFeatureOperation[] getSelectedJobsWithLicenses(IInstallFeatureOperation[] jobs)
public static IInstallFeatureOperation[] getSelectedJobsWithOptionalFeatures(IInstallFeatureOperation[] jobs)
public static void setInProgress(boolean inProgress)
public static boolean isInProgress()
public static IOperationValidator getValidator()
public static void setValidator(IOperationValidator validator)
public static void applyChangesNow()
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.