#include <berryExtensionTracker.h>
Implementation of the IExtensionTracker.
- See also
- IExtensionTracker
Definition at line 30 of file berryExtensionTracker.h.
◆ ExtensionTracker() [1/2]
berry::ExtensionTracker::ExtensionTracker |
( |
| ) |
|
◆ ~ExtensionTracker()
berry::ExtensionTracker::~ExtensionTracker |
( |
| ) |
|
|
override |
◆ ExtensionTracker() [2/2]
Construct a new instance of the extension tracker using the given registry containing tracked extensions and extension points.
- Parameters
-
theRegistry | the extension registry to track |
◆ ApplyAdd()
◆ ApplyRemove()
◆ Close()
void berry::ExtensionTracker::Close |
( |
| ) |
|
|
overridevirtual |
Close the tracker. All registered objects are freed and all handlers are being automatically removed.
Implements berry::IExtensionTracker.
◆ CreateExtensionPointFilter() [1/2]
Return an instance of filter matching all changes for the given extension points.
- Parameters
-
xpts | the extension points used to filter |
- Returns
- a filter
◆ CreateExtensionPointFilter() [2/2]
Return an instance of filter matching all changes for the given extension point.
- Parameters
-
- Returns
- a filter
◆ CreateNamespaceFilter()
Return an instance of filter matching all changes from a given plugin.
- Parameters
-
- Returns
- a filter
◆ GetObjects()
Return all the objects that have been associated with the given extension. All objects registered strongly will be return unless they have been unregistered. The objects registered softly or weakly may not be returned if they have been garbage collected. Return an empty array if no associations exist.
- Parameters
-
extension | the extension for which the object must be returned |
- Returns
- the array of associated objects
Implements berry::IExtensionTracker.
◆ RegisterHandler() [1/2]
Register an extension change handler with this tracker using the given filter.
- Parameters
-
handler | the handler to be registered |
filter | the filter to use to choose interesting changes |
Implements berry::IExtensionTracker.
◆ RegisterHandler() [2/2]
void berry::ExtensionTracker::RegisterHandler |
( |
IExtensionChangeHandler * |
handler, |
|
|
const QString & |
extensionPointId |
|
) |
| |
|
overridevirtual |
Register an extension change handler with this tracker for the given extension point id.
- Parameters
-
handler | the handler to be registered |
extensionPointId | the extension point id to track |
Implements berry::IExtensionTracker.
◆ RegisterObject()
Create an association between the given extension and the given object. The referenceType indicates how strongly the object is being kept in memory. There are 2 possible values: REF_STRONG and REF_WEAK.
- Parameters
-
extension | the extension |
object | the object to associate with the extension |
referenceType | one of REF_STRONG, REF_WEAK |
Implements berry::IExtensionTracker.
◆ UnregisterHandler()
Unregister the given extension change handler previously registered with this tracker.
- Parameters
-
handler | the handler to be unregistered |
Implements berry::IExtensionTracker.
◆ UnregisterObject() [1/2]
Remove all the objects associated with the given extension. Return the removed objects.
- Parameters
-
extension | the extension for which the objects are removed |
- Returns
- the objects that were associated with the extension
Implements berry::IExtensionTracker.
◆ UnregisterObject() [2/2]
Remove an association between the given extension and the given object.
- Parameters
-
extension | the extension under which the object has been registered |
object | the object to unregister |
Implements berry::IExtensionTracker.
The documentation for this class was generated from the following file: