mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-06-15 08:25:07 -04:00
25 lines
804 B
TypeScript
25 lines
804 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
import * as sqlops from 'sqlops';
|
|
import { ExtensionContext } from 'vscode';
|
|
|
|
export abstract class WizardBase<T> {
|
|
|
|
protected wizard: sqlops.window.Wizard;
|
|
|
|
constructor(public model: T, public context: ExtensionContext, private title: string) {
|
|
}
|
|
|
|
public open(): Thenable<void> {
|
|
this.wizard = sqlops.window.createWizard(this.title);
|
|
this.initialize();
|
|
return this.wizard.open();
|
|
}
|
|
|
|
protected abstract initialize(): void;
|
|
}
|