static void RefreshMatchingWindows(IGraphModel graph) { foreach (var window in VseWindow.GetWindowsWithGraph(graph)) { window.RefreshUI(UpdateFlags.All); } }
public static void SetupLogStickyCallback() { ConsoleWindowBridge.SetEntryDoubleClickedDelegate((file, entryInstanceId) => { VseWindow window = VseWindow.OpenVseAssetInWindow(file); window.Store?.Dispatch(new PanToNodeAction(entryInstanceId)); }); }
void OnFieldFocus(FocusEvent evt) { VseWindow window = ((VseGraphView)m_GraphView).window; if (window != null) { window.RefreshUIDisabled = true; } Undo.undoRedoPerformed += UndoRedoPerformed; }
void OnFieldFocusOut() { // ReSharper disable once DelegateSubtraction Undo.undoRedoPerformed -= UndoRedoPerformed; VseWindow window = ((VseGraphView)m_GraphView).window; if (window != null) { window.RefreshUIDisabled = false; } }
public static void SetupLogStickyCallback() { ConsoleWindowBridge.SetEntryDoubleClickedDelegate((file, entryInstanceId) => { string[] pathAndGuid = file.Split('@'); VseWindow window = VseWindow.OpenVseAssetInWindow(pathAndGuid[0]); if (GUID.TryParse(pathAndGuid[1], out GUID guid)) { window.Store?.Dispatch(new PanToNodeAction(guid)); } }); }
public static VseWindow OpenVseAssetInWindow(string path) { var asset = AssetDatabase.LoadAssetAtPath <VSGraphAssetModel>(path); if (asset == null) { return(null); } VseWindow vseWindow = ShowVsEditorWindow(); vseWindow.SetCurrentSelection(asset, OpenMode.OpenAndFocus); return(vseWindow); }
public VSEditorDataModel(VseWindow win) { m_Win = win; }