Migration wizard skeleton setup (#11758)

This commit is contained in:
Amir Omidi
2020-08-11 14:54:40 -07:00
committed by GitHub
parent 3432743f63
commit acd9fc8fd6
5 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as azdata from 'azdata';
import { MigrationWizardPage } from '../models/migrationWizardPage';
import { SOURCE_CONFIGURATION_PAGE_TITLE } from '../models/strings';
import { MigrationStateModel } from '../models/stateMachine';
export class SourceConfigurationPage extends MigrationWizardPage {
constructor(migrationStateModel: MigrationStateModel) {
super(azdata.window.createWizardPage(SOURCE_CONFIGURATION_PAGE_TITLE), migrationStateModel);
}
public async registerWizardContent(): Promise<void> {
return new Promise<void>(async (resolve, reject) => {
this.wizardPage.registerContent(async (view) => {
try {
await this.registerContent(view);
resolve();
} catch (ex) {
reject(ex);
} finally {
reject(new Error());
}
});
});
}
private async registerContent(view: azdata.ModelView) {
}
}