/// <summary> /// This resets the editor to respond to changes in the script's version. /// </summary> private void SetSupportedCommands() { XmlScriptEditCommands secSupportedCommands = XmlScriptEditCommands.None; if (Script != null) { secSupportedCommands = ScriptType.GetSupportedXmlScriptEditCommands(Script.Version); } IsAddInstallStepCommandSupported = (secSupportedCommands & XmlScriptEditCommands.AddInstallStep) > 0; IsAddOptionGroupCommandSupported = (secSupportedCommands & XmlScriptEditCommands.AddOptionGroup) > 0; IsAddOptionCommandSupported = (secSupportedCommands & XmlScriptEditCommands.AddOption) > 0; IsAddConditionallyInstalledFileSetCommandSupported = (secSupportedCommands & XmlScriptEditCommands.AddConditionallyInstalledFileSet) > 0; }