import * as path from 'path' ; import { DevToolsExtensionContext } from "../../devToolsExtensionContext" ; import { ALPermissionSetExtensionSyntaxBuilder } from '../syntaxbuilders/alPermissionSetExtensionSyntaxBuilder' ; import { ALObjectWizardSettings } from "./alObjectWizardSettings" ; import { ALPermissionSetExtensionWizardData } from "./alPermissionSetExtensionWizardData" ; import { ALPermissionSetWizardPage } from "./alPermissionSetWizardPage" ; export class ALPermissionSetExtensionWizardPage extends ALPermissionSetWizardPage { private _permissionSetExtensionWizardData : ALPermissionSetExtensionWizardData ; constructor ( toolsExtensionContext , settings , data ) { super ( toolsExtensionContext , "AL Perm. Set Ext. Wizard" , settings , data ) ; this . _permissionSetExtensionWizardData = data ; } protected getHtmlContentPath ( ) { return path . join ( 'htmlresources' , 'alpermissionsetextwizard' , 'alpermissionsetextwizard.html' ) ; } protected getViewType ( ) { return "azALDevTools.ALPermissionSetExtensionWizard" ; } protected async setBuilderData ( data ) { await super . setBuilderData ( data ) ; this . _permissionSetExtensionWizardData . basePermissionSet = data . basePermissionSet ; } protected runBuilder ( ) { var builder = new ALPermissionSetExtensionSyntaxBuilder ( ) ; var source = builder . buildFromPermissionSetExtWizardData ( this . _settings . getDestDirectoryUri ( ) , this . _permissionSetExtensionWizardData ) ; this . createObjectExtensionFile ( 'PermissionSetExtension' , this . _permissionSetExtensionWizardData . objectId , this . _permissionSetExtensionWizardData . objectName , this . _permissionSetExtensionWizardData . basePermissionSet , source ) ; } }