public void GenerateElementCodeTask(IElement element) { string taskName = nameof(GenerateElementCodeTask) + " " + element.ToString(); TaskManager.Self.Add(() => CodeGeneratorIElement.GenerateElementAndDerivedCode(element), taskName, TaskExecutionPreference.AddOrMoveToEnd); }
public static void GenerateSelectedElementAndDerivedCode() { if (GlueState.Self.CurrentElement != null) { CodeGeneratorIElement.GenerateElementAndDerivedCode(GlueState.Self.CurrentElement); } else if (EditorLogic.CurrentReferencedFile != null) { GlobalContentCodeGenerator.UpdateLoadGlobalContentCode(); // Vic asks - do we have to do anything else here? I don't think so... } }
public static void GenerateSelectedElementAndDerivedCode() { if (EditorLogic.CurrentScreenTreeNode != null) { CodeGeneratorIElement.GenerateElementAndDerivedCode(EditorLogic.CurrentScreenSave); } else if (EditorLogic.CurrentEntityTreeNode != null) { CodeGeneratorIElement.GenerateElementAndDerivedCode(EditorLogic.CurrentEntitySave); } else if (EditorLogic.CurrentReferencedFile != null) { ContentLoadWriter.UpdateLoadGlobalContentCode(); // Vic asks - do we have to do anything else here? I don't think so... } }
public void GenerateElementCode(IElement element) { CodeGeneratorIElement.GenerateElementAndDerivedCode(element); }