> ## 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 AbstractVariableBasedBuilderUI<RUNNER, MODEL>

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

This class provides a common UI for a variable based HarnessBuilderUI component.

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

```

#### Type Parameters

`RUNNER`

The type of IHarnessRunner that this builder edits.

`MODEL`

A type that extends VariableBasedBuilderModel to use as the Model for this instance.

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
AbstractDisposable ←
[AbstractBuilderUI\<RUNNER>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1) ←
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2) ←
[AbstractVariableBasedBuilderUI\<RUNNER, MODEL>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractVariableBasedBuilderUI-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/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.LoadFromPaczAsync.md#loadfrompaczasync-iextractedpacz),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.SaveToPaczAsync(IExtractedPacz)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.SaveToPaczAsync.md#savetopaczasync-iextractedpacz),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.Model](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.Model.md),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.ConstructAsync(IHarnessBuilderUIHost\<RUNNER>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.ConstructAsync.md),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.\_saveAsync(IBuilderUIModel)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2._saveAsync.md#saveasync-ibuilderuimodel),
[AbstractModelBasedBuilderUI\<RUNNER, MODEL>.Dispose(bool)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractModelBasedBuilderUI-2.Dispose.md),
[AbstractBuilderUI\<RUNNER>.\_window](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1._window.md),
[AbstractBuilderUI\<RUNNER>.Dispose(bool)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.Dispose.md),
[AbstractBuilderUI\<RUNNER>.ComponentName](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ComponentName.md),
[AbstractBuilderUI\<RUNNER>.ComponentIcon](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ComponentIcon.md),
[AbstractBuilderUI\<RUNNER>.CreateWindow()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.CreateWindow.md),
[AbstractBuilderUI\<RUNNER>.AddMenuItem(ItemsControl, string, RoutedEventHandler)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/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/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/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/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/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/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/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.SelectVariables.md),
[AbstractBuilderUI\<RUNNER>.SelectVariables(AbstractVariableProvider, IPlugInViewModel, string)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.SelectVariables.md),
[AbstractBuilderUI\<RUNNER>.SetPaczIcon(Uri, string)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.SetPaczIcon.md#setpaczicon-uri-string),
[AbstractBuilderUI\<RUNNER>.HarnessType](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.HarnessType.md),
[AbstractBuilderUI\<RUNNER>.WindowClosed](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.WindowClosed.md),
[AbstractBuilderUI\<RUNNER>.Host](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.Host.md),
[AbstractBuilderUI\<RUNNER>.ConstructAsync(IHarnessBuilderUIHost\<RUNNER>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ConstructAsync.md),
[AbstractBuilderUI\<RUNNER>.ShowAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.ShowAsync.md),
[AbstractBuilderUI\<RUNNER>.TrySaveAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractBuilderUI-1.TrySaveAsync.md),
[AbstractBuilderUI\<RUNNER>.DisplayException(Exception)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/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)

## Methods

[CreateWindow()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractVariableBasedBuilderUI-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.

[GetFileLoadProperties()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractVariableBasedBuilderUI-2.GetFileLoadProperties.md)

Gets the properties for file loading.
This included the function to call to load a file, and the file filter.

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

Gets the properties for configuring the VariableTree.

[SetupView(IExtractedPacz, VariableBasedBuilderViewModel, Menu)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.AbstractVariableBasedBuilderUI-2.SetupView.md#setupview-iextractedpacz-variablebasedbuilderviewmodel-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.
The mainMenu is visible by default, and already has an apply button that saves the builder.
