void DisplayStepValues(TracingStep step, Dictionary <IGraphElementModel, GraphElement> modelsToNodeUiMapping) { switch (step.Type) { case TracingStepType.ExecutedNode: // Do Nothing, already handled in HighlightTrace() break; case TracingStepType.TriggeredPort: var p = (step.PortModel as IGTFPortModel).GetUI <Port>(m_GraphView); p.ExecutionPortActive = true; break; case TracingStepType.WrittenValue: AddValueToPort(modelsToNodeUiMapping, step.PortModel, step.ValueString); break; case TracingStepType.ReadValue: AddValueToPort(modelsToNodeUiMapping, step.PortModel, step.ValueString); break; } if (step.NodeModel.HasProgress && modelsToNodeUiMapping.TryGetValue(step.NodeModel, out var node) && node is Node vsNode) { vsNode.Progress = step.Progress; } }
void AddStyleClassToModel(TracingStep step, IReadOnlyDictionary <IGraphElementModel, GraphElement> modelsToNodeUiMapping, string highlightStyle) { if (step.NodeModel != null && modelsToNodeUiMapping.TryGetValue(step.NodeModel, out GraphElement ui)) { // TODO TRACING errors // if (step.type == DebuggerTracer.EntityFrameTrace.StepType.Exception) // { // ui.AddToClassList(k_ExceptionHighlight); // // if (m_PauseState == PauseState.Paused || m_PlayState == PlayModeStateChange.EnteredEditMode) // { // ((VseGraphView)m_GraphView).UIController.AttachErrorBadge(ui, step.errorMessage, SpriteAlignment.TopLeft); // } // } // else { ui.AddToClassList(highlightStyle); } } }
private static string GetName(TracingStep step) { return($"{step.Type} {step.NodeModel} {step.PortModel}"); }
public StepSearcherItem(TracingStep step, int i) : base(GetName(step), "asdasd") { Step = step; Index = i; }