|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The trigger point advisor is a mechanism provided by the workbench that is consulted whenever code that is considered a trigger point is hit. It is the role of the advisor to determine what, if any, activities should be enabled as a consequence of this action. The advisor also has the option of vetoing the operation.
ITriggerPoint
Method Summary | |
Set |
allow(ITriggerPoint triggerPoint,
IIdentifier identifier)
Answer whether the activities bound to the identifier should be enabled when triggered by the provided trigger point. |
boolean |
computeEnablement(IActivityManager activityManager,
IIdentifier identifier)
Calculate the identifier's enabled state for a combination of activities with and without enabled when core expressions. |
Method Detail |
public Set allow(ITriggerPoint triggerPoint, IIdentifier identifier)
triggerPoint
- the trigger point to testidentifier
- the identifier to test against the trigger point
null
, the caller can proceed with
usage of the contribution provided that the collection of
activities is enabled. If this is null
, the
caller should assume that the operation involving the
contribution should be aborted. If this method returns the empty
set then the operation can proceed without any changes to
activity enablement state. Please note that it is the callers
responsibility to ensure that the Set returned by this method is
actually enabled - after setting the enabled state of the
required activities the change should be verified by consulting
IActivityManager.getEnabledActivityIds()
.public boolean computeEnablement(IActivityManager activityManager, IIdentifier identifier)
activityManager
- the activity manageridentifier
- the identifier to update
true
if this identifier should be enabled,
false
otherwise
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.