UNPKG

814 BTypeScriptView Raw
1import { Emitter, Event } from '../common/event';
2/**
3 * `SelectionProvider` is implemented by services to notify listeners about selection changes.
4 */
5export interface SelectionProvider<T> {
6 onSelectionChanged: Event<T | undefined>;
7}
8/**
9 * Singleton service that is used to share the current selection globally in a Theia application.
10 * On each change of selection, subscribers are notified and receive the updated selection object.
11 */
12export declare class SelectionService implements SelectionProvider<Object | undefined> {
13 private currentSelection;
14 protected readonly onSelectionChangedEmitter: Emitter<any>;
15 readonly onSelectionChanged: Event<any>;
16 get selection(): Object | undefined;
17 set selection(selection: Object | undefined);
18}
19//# sourceMappingURL=selection-service.d.ts.map
\No newline at end of file