> ## 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 ScriptEditorViewModel

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

View model for the Script Editor dialog.

```csharp theme={null}
public class ScriptEditorViewModel : AbstractPlugInViewModel<ScriptModel>, IPlugInViewModel, INotifyPropertyChanged

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[AbstractPlugInViewModel\<ScriptModel>](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1) ←
[ScriptEditorViewModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel)

#### Implements

[IPlugInViewModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.IPlugInViewModel),
[INotifyPropertyChanged](https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged)

#### Inherited Members

[AbstractPlugInViewModel\<ScriptModel>.PropertyChanged](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.PropertyChanged.md),
[AbstractPlugInViewModel\<ScriptModel>.OnPropertyChanged(string)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.OnPropertyChanged.md#onpropertychanged-string),
[AbstractPlugInViewModel\<ScriptModel>.\_logger](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1._logger.md),
[AbstractPlugInViewModel\<ScriptModel>.\_showErrorAction](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1._showErrorAction.md),
[AbstractPlugInViewModel\<ScriptModel>.SaveCommand](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.SaveCommand.md),
[AbstractPlugInViewModel\<ScriptModel>.OkCommand](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.OkCommand.md),
[AbstractPlugInViewModel\<ScriptModel>.IsReadOnly](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.IsReadOnly.md),
[AbstractPlugInViewModel\<ScriptModel>.IsNotReadOnly](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.IsNotReadOnly.md),
[AbstractPlugInViewModel\<ScriptModel>.ExternalMetadata](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.ExternalMetadata.md),
[AbstractPlugInViewModel\<ScriptModel>.IsBusy](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.IsBusy.md),
[AbstractPlugInViewModel\<ScriptModel>.IsDirty](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.IsDirty.md),
[AbstractPlugInViewModel\<ScriptModel>.StatusColor](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.StatusColor.md),
[AbstractPlugInViewModel\<ScriptModel>.StatusMessage](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.StatusMessage.md),
[AbstractPlugInViewModel\<ScriptModel>.HasStatus](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.HasStatus.md),
[AbstractPlugInViewModel\<ScriptModel>.SetStatus(string, Color)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.SetStatus.md#setstatus-string-color),
[AbstractPlugInViewModel\<ScriptModel>.InputVariables](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.InputVariables.md),
[AbstractPlugInViewModel\<ScriptModel>.\_onInputsChanged()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1._onInputsChanged.md),
[AbstractPlugInViewModel\<ScriptModel>.MoveInputVariablesFrom(IEnumerable\<IRuntimeVariable>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.MoveInputVariablesFrom.md#moveinputvariablesfrom-ienumerable\<iruntimevariable>),
[AbstractPlugInViewModel\<ScriptModel>.CloneInputVariablesFrom(IEnumerable\<IRuntimeVariable>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.CloneInputVariablesFrom.md#cloneinputvariablesfrom-ienumerable\<iruntimevariable>),
[AbstractPlugInViewModel\<ScriptModel>.OutputVariables](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.OutputVariables.md),
[AbstractPlugInViewModel\<ScriptModel>.\_onOutputsChanged()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1._onOutputsChanged.md),
[AbstractPlugInViewModel\<ScriptModel>.MoveOutputVariablesFrom(IEnumerable\<IRuntimeVariable>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.MoveOutputVariablesFrom.md#moveoutputvariablesfrom-ienumerable\<iruntimevariable>),
[AbstractPlugInViewModel\<ScriptModel>.CloneOutputVariablesFrom(IEnumerable\<IRuntimeVariable>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.CloneOutputVariablesFrom.md#cloneoutputvariablesfrom-ienumerable\<iruntimevariable>),
[AbstractPlugInViewModel\<ScriptModel>.BuilderName](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.BuilderName.md),
[AbstractPlugInViewModel\<ScriptModel>.WindowTitle](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.WindowTitle.md),
[AbstractPlugInViewModel\<ScriptModel>.WindowIcon](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.WindowIcon.md),
[AbstractPlugInViewModel\<ScriptModel>.SaveAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.SaveAsync.md),
[AbstractPlugInViewModel\<ScriptModel>.\_handleError(Exception)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1._handleError.md#handleerror-exception),
[AbstractPlugInViewModel\<ScriptModel>.SetVariablesAsPHXVariable(IEnumerable\<PHXVariable>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.SetVariablesAsPHXVariable.md#setvariablesasphxvariable-ienumerable\<phxvariable>),
[AbstractPlugInViewModel\<ScriptModel>.GetVariablesAsPHXVariable(VariableValueScope)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel-1.GetVariablesAsPHXVariable.md#getvariablesasphxvariable-variablevaluescope),
[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)

## Constructors

[ScriptEditorViewModel(ScriptModel, string, ILogger, Func\<ScriptModel, Task>, Action, Action\<Exception>, Uri)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.-ctor.md#scripteditorviewmodel-scriptmodel-string-ilogger-func\<scriptmodel-task>-action-action\<exception>-uri)

Constructor.

## Fields

[CUSTOM\_OBJECT\_RULE\_NAME](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.CUSTOM_OBJECT_RULE_NAME.md)

The name given to the highlighting color for object highlighting.

[CUSTOM\_VARIABLE\_RULE\_NAME](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.CUSTOM_VARIABLE_RULE_NAME.md)

The name given to the highlighting color for variable highlighting.

## Properties

[Script](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.Script.md)

Underlying script model containing the data currently displayed in the view.

[ScriptDocument](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.ScriptDocument.md)

The object that holds the script text and its properties.

[ScriptText](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.ScriptText.md)

Direct access to the `Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.ScriptDocument`'s Text property.

[SyntaxHighlighting](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.SyntaxHighlighting.md)

The syntax highlighting definition used to highlight keywords in the script.

[Timeout](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel.Timeout.md)

The user-editable script timeout in seconds.

## Methods

[\_onInputsChanged()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel._onInputsChanged.md)

This function will be called when the `Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel`1.InputVariables\` change to allow
derived classes to notify the UI.

[\_onOutputsChanged()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel._onOutputsChanged.md)

This function will be called when the `Phoenix.ComponentPlugInSDK.ViewModels.AbstractPlugInViewModel`1.InputVariables\` change to allow
derived classes to notify the UI.
