void CreateControlFromInfo () { this.vc = info.Item.Repository; this.filepath = info.Item.Path; var lw = new LogWidget (info); revertButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert changes from this revision")); revertButton.IsImportant = true; // revertButton.Sensitive = false; revertButton.Clicked += new EventHandler (RevertRevisionClicked); lw.CommandBar.Insert (revertButton, -1); revertToButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert to this revision")); revertToButton.IsImportant = true; // revertToButton.Sensitive = false; revertToButton.Clicked += new EventHandler (RevertToRevisionClicked); lw.CommandBar.Insert (revertToButton, -1); lw.CommandBar.ShowAll (); widget = lw; info.Updated += delegate { lw.History = this.info.History; vinfo = this.info.VersionInfo; }; lw.History = this.info.History; vinfo = this.info.VersionInfo; }
public LogView(string filepath, bool isDirectory, Revision [] history, Repository vc) : base(Path.GetFileName(filepath) + " Log") { this.vc = vc; this.filepath = filepath; try { this.vinfo = vc.GetVersionInfo(filepath, false); } catch (Exception ex) { MessageService.ShowException(ex, GettextCatalog.GetString("Version control command failed.")); } // Widget setup VersionControlDocumentInfo info = new VersionControlDocumentInfo(null, null, vc); info.History = history; info.VersionInfo = vinfo; var lw = new LogWidget(info); widget = lw; lw.History = history; }
void CreateControlFromInfo() { var lw = new LogWidget(info); widget = lw; info.Updated += OnInfoUpdated; lw.History = this.info.History; vinfo = this.info.Item.VersionInfo; Init(); }
void CreateControlFromInfo () { var lw = new LogWidget (info); widget = lw; info.Updated += OnInfoUpdated; lw.History = this.info.History; vinfo = this.info.Item.VersionInfo; if (WorkbenchWindow != null) widget.SetToolbar (WorkbenchWindow.GetToolbar (this)); }
public override void Dispose() { if (widget != null) { widget.Destroy(); widget = null; } if (changedpathstore != null) { changedpathstore.Dispose(); changedpathstore = null; } base.Dispose(); }
void CreateControlFromInfo() { var lw = new LogWidget(info); widget = lw; info.Updated += OnInfoUpdated; lw.History = this.info.History; vinfo = this.info.Item.VersionInfo; if (WorkbenchWindow != null) { widget.SetToolbar(WorkbenchWindow.GetToolbar(this)); } }
public override void Dispose() { if (widget != null) { widget.Destroy(); widget = null; } if (info != null) { info.Updated -= OnInfoUpdated; info = null; } base.Dispose(); }
void CreateControlFromInfo() { this.vc = info.Item.Repository; this.filepath = info.Item.Path; var lw = new LogWidget(info); widget = lw; info.Updated += delegate { lw.History = this.info.History; vinfo = this.info.VersionInfo; }; lw.History = this.info.History; vinfo = this.info.VersionInfo; }
protected override void OnDispose() { if (widget != null) { widget.Destroy(); widget = null; } if (info != null) { info.Updated -= OnInfoUpdated; info = null; } base.OnDispose(); }
void CreateControlFromInfo () { this.vc = info.Item.Repository; this.filepath = info.Item.Path; var lw = new LogWidget (info); widget = lw; info.Updated += delegate { lw.History = this.info.History; vinfo = this.info.VersionInfo; }; lw.History = this.info.History; vinfo = this.info.VersionInfo; }
async void CreateControlFromInfo() { var lw = new LogWidget(info); try { widget = lw; info.Updated += OnInfoUpdated; lw.History = this.info.History; vinfo = await this.info.Item.GetVersionInfoAsync(); Init(); } catch (Exception e) { LoggingService.LogInternalError(e); } }
public LogView (string filepath, bool isDirectory, Revision [] history, Repository vc) : base (Path.GetFileName (filepath) + " Log") { try { this.vinfo = vc.GetVersionInfo (filepath, VersionInfoQueryFlags.IgnoreCache); } catch (Exception ex) { MessageService.ShowError (GettextCatalog.GetString ("Version control command failed."), ex); } // Widget setup VersionControlDocumentInfo info =new VersionControlDocumentInfo (null, null, vc); info.History = history; info.Item.VersionInfo = vinfo; var lw = new LogWidget (info); widget = lw; lw.History = history; }
public override void Dispose () { if (widget != null) { widget.Destroy (); widget = null; } if (changedpathstore != null) { changedpathstore.Dispose (); changedpathstore = null; } if (info != null) { info.Updated -= OnInfoUpdated; info = null; } base.Dispose (); }
public override void Dispose () { if (widget != null) { widget.Destroy (); widget = null; } if (changedpathstore != null) { changedpathstore.Dispose (); changedpathstore = null; } base.Dispose (); }
public LogView (string filepath, bool isDirectory, Revision [] history, Repository vc) : base (Path.GetFileName (filepath) + " Log") { this.vc = vc; this.filepath = filepath; try { this.vinfo = vc.GetVersionInfo (filepath, false); } catch (Exception ex) { MessageService.ShowException (ex, GettextCatalog.GetString ("Version control command failed.")); } // Widget setup VersionControlDocumentInfo info =new VersionControlDocumentInfo (null, null, vc); info.History = history; info.VersionInfo = vinfo; var lw = new LogWidget (info); revertButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert changes from this revision")); revertButton.IsImportant = true; // revertButton.Sensitive = false; revertButton.Clicked += new EventHandler (RevertRevisionClicked); lw.CommandBar.Insert (revertButton, -1); revertToButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert to this revision")); revertToButton.IsImportant = true; // revertToButton.Sensitive = false; revertToButton.Clicked += new EventHandler (RevertToRevisionClicked); lw.CommandBar.Insert (revertToButton, -1); lw.CommandBar.ShowAll (); widget = lw; lw.History = history; }