mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Deprecate the modelviewdialog namespace (#4075)
* Deprecate the modelviewdialog namespace * use @deprecated tag
This commit is contained in:
@@ -9,13 +9,13 @@ import { ExtensionContext } from 'vscode';
|
||||
|
||||
export abstract class WizardBase<T> {
|
||||
|
||||
protected wizard: sqlops.window.modelviewdialog.Wizard;
|
||||
protected wizard: sqlops.window.Wizard;
|
||||
|
||||
constructor(public model: T, public context: ExtensionContext, private title: string) {
|
||||
}
|
||||
|
||||
public open(): Thenable<void> {
|
||||
this.wizard = sqlops.window.modelviewdialog.createWizard(this.title);
|
||||
this.wizard = sqlops.window.createWizard(this.title);
|
||||
this.initialize();
|
||||
return this.wizard.open();
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ import * as sqlops from 'sqlops';
|
||||
import { WizardBase } from './wizardBase';
|
||||
|
||||
export abstract class WizardPageBase<T> {
|
||||
private _page: sqlops.window.modelviewdialog.WizardPage;
|
||||
private _page: sqlops.window.WizardPage;
|
||||
|
||||
public get page(): sqlops.window.modelviewdialog.WizardPage {
|
||||
public get page(): sqlops.window.WizardPage {
|
||||
return this._page;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export abstract class WizardPageBase<T> {
|
||||
}
|
||||
|
||||
constructor(title: string, description: string, protected model: T, private _wizard: WizardBase<T>) {
|
||||
this._page = sqlops.window.modelviewdialog.createWizardPage(title);
|
||||
this._page = sqlops.window.createWizardPage(title);
|
||||
this._page.description = description;
|
||||
this._page.registerContent((view: sqlops.ModelView) => {
|
||||
return this.initialize(view);
|
||||
|
||||
Reference in New Issue
Block a user