mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Alanren/bdc (#4161)
* wip * target cluster type page * finish target cluster type page * remove commented line
This commit is contained in:
@@ -5,20 +5,19 @@
|
||||
'use strict';
|
||||
|
||||
import * as sqlops from 'sqlops';
|
||||
import { WizardBase } from './wizardBase';
|
||||
|
||||
export abstract class WizardPageBase<T> {
|
||||
private _page: sqlops.window.WizardPage;
|
||||
|
||||
public get page(): sqlops.window.WizardPage {
|
||||
public get pageObject(): sqlops.window.WizardPage {
|
||||
return this._page;
|
||||
}
|
||||
|
||||
public get wizard(): WizardBase<T> {
|
||||
public get wizard(): T {
|
||||
return this._wizard;
|
||||
}
|
||||
|
||||
constructor(title: string, description: string, protected model: T, private _wizard: WizardBase<T>) {
|
||||
constructor(title: string, description: string, private _wizard: T) {
|
||||
this._page = sqlops.window.createWizardPage(title);
|
||||
this._page.description = description;
|
||||
this._page.registerContent((view: sqlops.ModelView) => {
|
||||
@@ -27,4 +26,8 @@ export abstract class WizardPageBase<T> {
|
||||
}
|
||||
|
||||
protected abstract initialize(view: sqlops.ModelView): Thenable<void>;
|
||||
|
||||
public onEnter(): void { }
|
||||
|
||||
public onLeave(): void { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user