> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class AbstractScriptBasedBuilderUI<RUNNER, MODEL>

Namespace: [Phoenix.ComponentPlugInSDK](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK)\
Assembly: Phoenix.ComponentPlugInSDK.dll

This class provides a common script editor UI for a script based HarnessBuilderUI component.

```csharp theme={null}
public abstract class AbstractScriptBasedBuilderUI<RUNNER, MODEL> : AbstractModelBasedBuilderUI<RUNNER, MODEL>, IHarnessBuilderUI<RUNNER>, IHarnessBuilderUIBase, IDisposable where RUNNER : IHarnessRunner where MODEL : ScriptModel, new()

```

#### Type Parameters

`RUNNER`

The type of IHarnessRunner that this builder edits.

`MODEL`

The model type to be used. Usually `Phoenix.ComponentPlugInSDK.Models.ScriptModel`1\`

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
AbstractDisposable ←
[AbstractBuilderUI\<RUNNER>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1) ←
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2) ←
[AbstractScriptBasedBuilderUI\<RUNNER, MODEL>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2)

#### Implements

IHarnessBuilderUI\<RUNNER>,
IHarnessBuilderUIBase,
[IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

#### Inherited Members

[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.LoadFromPaczAsync(IExtractedPacz)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.LoadFromPaczAsync.md#loadfrompaczasync-iextractedpacz),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.SaveToPaczAsync(IExtractedPacz)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.SaveToPaczAsync.md#savetopaczasync-iextractedpacz),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.Model](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.Model.md),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.ConstructAsync(IHarnessBuilderUIHost\<RUNNER>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.ConstructAsync.md),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.\_saveAsync(IBuilderUIModel)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2._saveAsync.md#saveasync-ibuilderuimodel),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.Dispose(bool)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.Dispose.md),
[AbstractBuilderUI\<RUNNER>.\_window](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1._window.md),
[AbstractBuilderUI\<RUNNER>.Dispose(bool)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.Dispose.md),
[AbstractBuilderUI\<RUNNER>.ComponentName](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ComponentName.md),
[AbstractBuilderUI\<RUNNER>.ComponentIcon](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ComponentIcon.md),
[AbstractBuilderUI\<RUNNER>.CreateWindow()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.CreateWindow.md),
[AbstractBuilderUI\<RUNNER>.AddMenuItem(ItemsControl, string, RoutedEventHandler)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.AddMenuItem.md),
[AbstractBuilderUI\<RUNNER>.AddAsyncMenuItem(ItemsControl, string, AbstractBuilderUI\<RUNNER>.RoutedEventHandlerAsync)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.AddAsyncMenuItem.md),
[AbstractBuilderUI\<RUNNER>.AddMenuItem(ItemsControl, string, ImageType, bool, RoutedEventHandler)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.AddMenuItem.md),
[AbstractBuilderUI\<RUNNER>.AddAsyncMenuItem(ItemsControl, string, ImageType, bool, AbstractBuilderUI\<RUNNER>.RoutedEventHandlerAsync)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.AddAsyncMenuItem.md),
[AbstractBuilderUI\<RUNNER>.AddMenuItem(ItemsControl, string, ImageSource, bool, RoutedEventHandler)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.AddMenuItem.md),
[AbstractBuilderUI\<RUNNER>.AddAsyncMenuItem(ItemsControl, string, ImageSource, bool, AbstractBuilderUI\<RUNNER>.RoutedEventHandlerAsync)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.AddAsyncMenuItem.md),
[AbstractBuilderUI\<RUNNER>.SelectVariables(IEnumerable\<IRuntimeVariable>, IEnumerable\<IRuntimeVariable>, IPlugInViewModel, string, string, string)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.SelectVariables.md),
[AbstractBuilderUI\<RUNNER>.SelectVariables(AbstractVariableProvider, IPlugInViewModel, string)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.SelectVariables.md),
[AbstractBuilderUI\<RUNNER>.SetPaczIcon(Uri, string)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.SetPaczIcon.md#setpaczicon-uri-string),
[AbstractBuilderUI\<RUNNER>.HarnessType](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.HarnessType.md),
[AbstractBuilderUI\<RUNNER>.WindowClosed](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.WindowClosed.md),
[AbstractBuilderUI\<RUNNER>.Host](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.Host.md),
[AbstractBuilderUI\<RUNNER>.ConstructAsync(IHarnessBuilderUIHost\<RUNNER>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ConstructAsync.md),
[AbstractBuilderUI\<RUNNER>.ShowAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ShowAsync.md),
[AbstractBuilderUI\<RUNNER>.TrySaveAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.TrySaveAsync.md),
[AbstractBuilderUI\<RUNNER>.DisplayException(Exception)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.DisplayException.md#displayexception-exception),
AbstractDisposable.disposed,
AbstractDisposable.Dispose(),
AbstractDisposable.IsDisposed,
AbstractDisposable.Dispose(bool),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Properties

[ComponentIcon](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2.ComponentIcon.md)

The URI of the icon to use for the builder UI. If null, the default Windows icon will be used.

[ComponentName](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2.ComponentName.md)

The name of the builder to use in the UI.

[ScriptLanguage](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2.ScriptLanguage.md)

The ScriptLanguage that is being used.

## Methods

[CreateWindow()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2.CreateWindow.md)

Creates the Main Window of the Builder UI. It is recommended that all implementations return
a Window that implements `Phoenix.ComponentPlugInSDK.Views.ISaveableWindow`. If the window does not, then requests
from the OEM to save the UI via `Phoenix.ComponentBuilderAPI.IHarnessBuilderUIBase.TrySaveAsync` will silently
return true.

[GetTreeProperties()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2.GetTreeProperties.md)

Gets the properties for configuring the VariableTree.

[SetupView(IExtractedPacz, ScriptEditorViewModel, Menu)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.AbstractScriptBasedBuilderUI-2.SetupView.md#setupview-iextractedpacz-scripteditorviewmodel-menu)

Called before the mainWindow is shown.
This is where the view should be initialized. And Builder options loaded from the Pacz.
Allows setup and customization of the mainMenu for windows that have them.
This should be called by CreateWindow to allow derived classes to customize the menu.
