Esempio n. 1
0
        public void GenerateElementCodeTask(IElement element)
        {
            string taskName = nameof(GenerateElementCodeTask) + " " + element.ToString();

            TaskManager.Self.Add(() => CodeGeneratorIElement.GenerateElementAndDerivedCode(element),
                                 taskName,
                                 TaskExecutionPreference.AddOrMoveToEnd);
        }
Esempio n. 2
0
        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...
            }
        }
Esempio n. 3
0
        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...
            }
        }
Esempio n. 4
0
 public void GenerateElementCode(IElement element)
 {
     CodeGeneratorIElement.GenerateElementAndDerivedCode(element);
 }