public interface ITriggerPointAdvisor
ITriggerPoint
Modifier and Type | Method and Description |
---|---|
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.
|
Set allow(ITriggerPoint triggerPoint, IIdentifier identifier)
triggerPoint
- the trigger point to testidentifier
- the identifier to test against the trigger pointnull
, 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()
.boolean computeEnablement(IActivityManager activityManager, IIdentifier identifier)
activityManager
- the activity manageridentifier
- the identifier to updatetrue
if this identifier should be enabled,
false
otherwise
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.