本文整理匯總了TypeScript中vs/base/common/eventEmitter.IEventEmitter類的典型用法代碼示例。如果您正苦於以下問題:TypeScript IEventEmitter類的具體用法?TypeScript IEventEmitter怎麽用?TypeScript IEventEmitter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了IEventEmitter類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: addSchemaFileAssociation
public addSchemaFileAssociation(pattern: string, uri: string): void {
let uris = this.schemaAssociations[pattern];
if (!uris) {
uris = [];
this.schemaAssociations[pattern] = uris;
}
uris.push(uri);
this.eventEmitter.emit('registryChanged', {});
}
示例2: emitMouseDown
public emitMouseDown(e:IEditorMouseEvent): void {
this.convertViewToModelMouseEvent(e);
this.outgoingEventBus.emit(editorCommon.EventType.MouseDown, e);
}
示例3: emitContextMenu
public emitContextMenu(e:IEditorMouseEvent): void {
this.convertViewToModelMouseEvent(e);
this.outgoingEventBus.emit(editorCommon.EventType.ContextMenu, e);
}
示例4: emitKeyUp
public emitKeyUp(e:IKeyboardEvent): void {
this.outgoingEventBus.emit(editorCommon.EventType.KeyUp, e);
}
示例5: registerSchema
public registerSchema(uri: string, unresolvedSchemaContent: IJSONSchema): void {
this.schemasById[normalizeId(uri)] = unresolvedSchemaContent;
this.eventEmitter.emit('registryChanged', {});
}
示例6: addRegistryChangedListener
public addRegistryChangedListener(callback: (e: IJSONContributionRegistryEvent) => void): IDisposable {
return this.eventEmitter.addListener2('registryChanged', callback);
}