public override void Initialize(QFrameworkContainer container) { EditorUtility.ClearProgressBar(); // TODO 2.0: Obviously fix undo //Undo.undoRedoPerformed = delegate //{ // var ps = container.Resolve<WorkspaceService>(); // ps.RefreshProjects(); // InvertGraphEditor.DesignerWindow.RefreshContent(); //}; container.RegisterInstance <IPlatformDrawer>(InvertGraphEditor.PlatformDrawer); container.RegisterInstance <IStyleProvider>(new UnityStyleProvider()); #if DOCS container.RegisterToolbarCommand <GenerateDocsCommand>(); container.RegisterToolbarCommand <DocsModeCommand>(); #endif // container.RegisterInstance<IToolbarCommand>(new Test(), "Test"); //container.RegisterInstance<IAssetManager>(new UnityAssetManager()); // Command Drawers container.RegisterInstance <ToolbarUI>(new UnityToolbar() { }); container.Register <ContextMenuUI, UnityContextMenu>(); container.RegisterInstance <IGraphEditorSettings>(new UFrameSettings()); // Where the generated code files are placed container.Register <ICodePathStrategy, DefaultCodePathStrategy>("Default"); container.RegisterInstance <IWindowManager>(new UnityWindowManager()); }