diff options
Diffstat (limited to 'src/vs/base/parts/tree/browser/tree.ts')
-rw-r--r-- | src/vs/base/parts/tree/browser/tree.ts | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/vs/base/parts/tree/browser/tree.ts b/src/vs/base/parts/tree/browser/tree.ts index 5deb416f417..9ed4d108d35 100644 --- a/src/vs/base/parts/tree/browser/tree.ts +++ b/src/vs/base/parts/tree/browser/tree.ts @@ -6,7 +6,6 @@ import WinJS = require('vs/base/common/winjs.base'); import Touch = require('vs/base/browser/touch'); -import Events = require('vs/base/common/eventEmitter'); import Mouse = require('vs/base/browser/mouseEvent'); import Keyboard = require('vs/base/browser/keyboardEvent'); import { INavigator } from 'vs/base/common/iterator'; @@ -14,15 +13,18 @@ import { ScrollbarVisibility } from 'vs/base/common/scrollable'; import Event from 'vs/base/common/event'; import { IAction, IActionItem } from 'vs/base/common/actions'; import { Color } from 'vs/base/common/color'; - -export interface ITree extends Events.IEventEmitter { - - emit(eventType: string, data?: any): void; - - onDOMFocus: Event<void>; - onDOMBlur: Event<void>; - onHighlightChange: Event<void>; - onDispose: Event<void>; +import { IItemCollapseEvent, IItemExpandEvent } from 'vs/base/parts/tree/browser/treeModel'; + +export interface ITree { + + onDidFocus: Event<void>; + onDidBlur: Event<void>; + onDidChangeFocus: Event<IFocusEvent>; + onDidChangeSelection: Event<ISelectionEvent>; + onDidChangeHighlight: Event<IHighlightEvent>; + onDidExpandItem: Event<IItemExpandEvent>; + onDidCollapseItem: Event<IItemCollapseEvent>; + onDidDispose: Event<void>; /** * Returns the tree's DOM element. |