public interface INavigatorActivationService
INavigatorContentService for more detail on what states are
associated with a content extension.| Modifier and Type | Method and Description |
|---|---|
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.
|
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-isINavigatorContentDescriptor[] 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-isboolean isNavigatorExtensionActive(String aNavigatorExtensionId)
aNavigatorExtensionId - The unique identifier associated with a given extension.void persistExtensionActivations()
activateExtensions(String[], boolean) or
deactivateExtensions(String[], boolean).void addExtensionActivationListener(IExtensionActivationListener aListener)
aListener - An implementation of IExtensionActivationListenervoid removeExtensionActivationListener(IExtensionActivationListener aListener)
aListener - An implementation of IExtensionActivationListenerGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.