public void OnUpdate(CommandUpdateEventArgs e) { if (_ctrl == null) { _ctrl = e.GetService <LogToolWindowControl>(); } if (_ctrl == null) { e.Enabled = e.Visible = false; return; } IList <SvnOrigin> origins = _ctrl.Origins; if (origins == null || origins.Count == 0) { e.Enabled = e.Visible = false; return; } // Enable something like this? /*if (e.Command == AnkhCommand.SvnLogComboBox * && origins.Count == 1) * { * e.Enabled = false; * }*/ }
public LogToolWindow() { Caption = Resources.LogToolWindowTitle; Control = new LogToolWindowControl(); AnkhToolWindow = AnkhToolWindow.Log; ToolBarId = AnkhToolBar.LogViewer; ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP; }
public void OnUpdate(CommandUpdateEventArgs e) { if (_ctrl == null) { _ctrl = e.GetService <LogToolWindowControl>(); } if (_ctrl == null) { e.Enabled = false; } }
static void PerformLog(IAnkhServiceProvider context, ICollection <SvnOrigin> targets, SvnRevision start, SvnRevision end) { IAnkhPackage package = context.GetService <IAnkhPackage>(); package.ShowToolWindow(AnkhToolWindow.Log); LogToolWindowControl logToolControl = context.GetService <ISelectionContext>().ActiveFrameControl as LogToolWindowControl; if (logToolControl != null) { logToolControl.StartLog(targets, start, end); } }
public LogToolWindow() { // I'n not really sure what I am doing here. // I have placed this in the constructor of AnkhToolWindowPane instead. //var prev = NativeImports.SetThreadDpiAwarenessContext ( NativeImports.DPI_AWARENESS_CONTEXT.SystemAware ) ; Caption = Resources.LogToolWindowTitle; Control = new LogToolWindowControl(); AnkhToolWindow = AnkhToolWindow.Log; ToolBarId = AnkhToolBar.LogViewer; ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP; }
public void OnUpdate(CommandUpdateEventArgs e) { if (_ctrl == null) { _ctrl = e.GetService <LogToolWindowControl>(); } if (_ctrl == null) { e.Enabled = false; return; } e.Checked = _ctrl.IncludeMergedRevisions; }
public void OnUpdate(CommandUpdateEventArgs e) { if (_ctrl == null) { _ctrl = e.GetService <LogToolWindowControl>(); } if (_ctrl == null) { e.Enabled = false; return; } e.Checked = _ctrl.ShowLogMessage; }
public void OnUpdate(CommandUpdateEventArgs e) { if (_ctrl == null) { _ctrl = e.GetService <LogToolWindowControl>(); } if (_ctrl == null) { e.Enabled = false; return; } if (UpdateForChangedFiles(e)) { return; } UpdateForRevChanges(_ctrl, e); }