git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer.

From
RSRoger C. Soares <rogersoares@intelinet.com.br>
Date
Feb 24, 2008, 23:18 UTC
Message-ID
<1203895097-3742-1-git-send-email-rogersoares@intelinet.com.br>
---
 .../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
Next: Robin Rosenberg
Message 1 of 4 in “Refresh history when "Refresh" is clicked in the history viewer.”
  1. Refresh history when "Refresh" is clicked in the history viewer.Roger C. Soares, Feb 24, 2008
  2. Robin RosenbergFeb 24, 2008
  3. Roger C. SoaresFeb 25, 2008
  4. Robin RosenbergFeb 25, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.