mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
Add support for model view editor (#1442)
* Add proposed API for model view editors * Initial working model view editor * Add extension demo * Revert "Add extension demo" This reverts commit 10d3b720ad347919dd5668a339da8e96e26b2b82. * view model editor and add the support for register content * clean up the code * fix editor issues where you register more than one content * formating * remove unused imports * addressed comments * address comments2 * address comment3
This commit is contained in:
37
src/sql/parts/modelComponents/modelEditor/modelViewInput.ts
Normal file
37
src/sql/parts/modelComponents/modelEditor/modelViewInput.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { IEditorModel } from 'vs/platform/editor/common/editor';
|
||||
import { EditorInput } from 'vs/workbench/common/editor';
|
||||
|
||||
export class ModelViewInput extends EditorInput {
|
||||
|
||||
public static ID: string = 'workbench.editorinputs.ModelViewEditorInput';
|
||||
|
||||
constructor(private _title: string, private _modelViewId: string) {
|
||||
super();
|
||||
}
|
||||
|
||||
public get title(): string {
|
||||
return this._title;
|
||||
}
|
||||
|
||||
public get modelViewId(): string {
|
||||
return this._modelViewId;
|
||||
}
|
||||
|
||||
public getTypeId(): string {
|
||||
return 'ModelViewEditorInput';
|
||||
}
|
||||
|
||||
public resolve(refresh?: boolean): TPromise<IEditorModel> {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
public getName(): string {
|
||||
return this._title;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user