public static void Initialize(EnumEditorIDE editorType, string themeName) { Starter.SetCurrentIDE(editorType); Platform.Initialize(); try { GLibLogging.Log.SetLogHandler("", GLibLogging.LogLevelFlags.All, delegate(string log_domain, GLibLogging.LogLevelFlags log_level, string message) { LogConfig.Logger.Error(message); }); } catch (Exception exception) { LogConfig.Logger.Error("Error initialising GLib logging.", exception); } Starter.SetupTheme(themeName); Starter.InitApplication(); DispatchService.Initialize(); CocoStudio.Core.Service.Runtime.Initialize(Option.AddinConfigFolder, Option.AddinLocationFolder); Services.IntinalizeCompleted += new Action <EventArgs>(Starter.Services_IntinalizeCompleted); Starter.InitApplication(); }
public static void SetCurrentIDE(EnumEditorIDE editorIDE) { Option.CurrentEditorIDE = editorIDE; }
private static void SetCurrentIDE(EnumEditorIDE editorType) { Option.SetCurrentIDE(editorType); }