mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Feature/bdc create (#4012)
* initial checkin * rename * wizard pages * target cluster radio button group * resource strings * existing cluster picker * revert changes to unwanted file * revert unwanted changes-2 * update cluster icon * settings page * fix group container * hyperlink component * address review comments * comments part 2
This commit is contained in:
30
extensions/big-data-cluster/src/wizards/wizardPageBase.ts
Normal file
30
extensions/big-data-cluster/src/wizards/wizardPageBase.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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 { WizardBase } from './wizardBase';
|
||||
|
||||
export abstract class WizardPageBase<T> {
|
||||
private _page: sqlops.window.modelviewdialog.WizardPage;
|
||||
|
||||
public get page(): sqlops.window.modelviewdialog.WizardPage {
|
||||
return this._page;
|
||||
}
|
||||
|
||||
public get wizard(): WizardBase<T> {
|
||||
return this._wizard;
|
||||
}
|
||||
|
||||
constructor(title: string, description: string, protected model: T, private _wizard: WizardBase<T>) {
|
||||
this._page = sqlops.window.modelviewdialog.createWizardPage(title);
|
||||
this._page.description = description;
|
||||
this._page.registerContent((view: sqlops.ModelView) => {
|
||||
return this.initialize(view);
|
||||
});
|
||||
}
|
||||
|
||||
protected abstract initialize(view: sqlops.ModelView): Thenable<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user