Fired when any of the available tree decorators has changes.
Transforms the decoration data
into an object, so that it can be safely serialized into JSON.
the decoration data
that should be deflated
the decoration data
as serializable JSON object
Dispose this object.
Computes the decorations for the tree based on the actual state of this decorator service.
the tree to decorate
(a promise of) the computed decoration data
Counterpart of the deflateDecorators method. Restores the argument into a Map
of tree node IDs and the corresponding decorations data array (decoration data
).
the deserialized `decoration data
The TreeDecoratorService manages a set of known {link TreeDecorator}s and emits events when any of the known decorators has changes. Typically, a
TreeDecoratorService
provides a contribution point that can be used to register TreeDecorators exclusively for this service.Example usage