|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Determines if an extension is active within the context of a given
viewer and manages the persistence of this information. If an extension is
active then the extension will contribute functionality to the
viewer. If an extension is not active, then the extension will not be
given opportunities to contribute functionality to the given viewer. See
INavigatorContentService
for more detail on what states are
associated with a content extension.
Method Summary | |
---|---|
INavigatorContentDescriptor[] |
activateExtensions(String[] extensionIds,
boolean toDeactivateAllOthers)
Activate the extensions specified by the extensionIds array. |
void |
addExtensionActivationListener(IExtensionActivationListener aListener)
Request notification when the activation state changes. |
INavigatorContentDescriptor[] |
deactivateExtensions(String[] extensionIds,
boolean toActivateAllOthers)
Deactivate the extensions specified by the extensionIds. |
boolean |
isNavigatorExtensionActive(String aNavigatorExtensionId)
Checks the known activation state for the given viewer id to determine if the given navigator extension is 'active'. |
void |
persistExtensionActivations()
Save the activation state of each content extension for the associated content service. |
void |
removeExtensionActivationListener(IExtensionActivationListener aListener)
No longer receive notification when activation state changes. |
Method Detail |
public INavigatorContentDescriptor[] activateExtensions(String[] extensionIds, boolean toDeactivateAllOthers)
Clients must call persistExtensionActivations()
to save the the
activation state after activating or deactivating extensions.
extensionIds
- The list of extensions to activatetoDeactivateAllOthers
- True will deactivate all other extensions; False will leave
the other activations as-is
public INavigatorContentDescriptor[] deactivateExtensions(String[] extensionIds, boolean toActivateAllOthers)
Clients must call persistExtensionActivations()
to save the the
activation state after activating or deactivating extensions.
extensionIds
- The list of extensions to activatetoActivateAllOthers
- True will activate all other extensions; False will leave the
other activations as-is
public boolean isNavigatorExtensionActive(String aNavigatorExtensionId)
aNavigatorExtensionId
- The unique identifier associated with a given extension.
public void persistExtensionActivations()
activateExtensions(String[], boolean)
or
deactivateExtensions(String[], boolean)
.
public void addExtensionActivationListener(IExtensionActivationListener aListener)
aListener
- An implementation of IExtensionActivationListener
public void removeExtensionActivationListener(IExtensionActivationListener aListener)
aListener
- An implementation of IExtensionActivationListener
|
Eclipse Platform Release 3.3 |
|||||||||||
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, 2007. All rights reserved.