git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer.
@ 2008-02-24 23:18 Roger C. Soares
  2008-02-24 22:40 ` Robin Rosenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Roger C. Soares @ 2008-02-24 23:18 UTC (permalink / raw)
  To: git; +Cc: robin.rosenberg, Roger C. Soares

---
 .../src/org/spearce/egit/ui/GitHistoryPage.java    |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java
index 2fc7afa..268a6ba 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java
@@ -1207,8 +1207,12 @@ public class GitHistoryPage extends HistoryPage implements IAdaptable,
 	}
 
 	public void refresh() {
-		// TODO Auto-generated method stub
-
+		if (historyRefreshJob.cancel()) {
+			System.out.println("rescheduling");
+			historyRefreshJob.schedule();
+		} else {
+			System.out.println("failed to cancel?");
+		}
 	}
 
 	public Object getAdapter(Class adapter) {
-- 
1.5.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-25  0:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24 23:18 [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer Roger C. Soares
2008-02-24 22:40 ` Robin Rosenberg
2008-02-25  0:07   ` Roger C. Soares
2008-02-25  0:11     ` Robin Rosenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).