Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-08-17 15:30:06 -0400
committermkersten2005-08-17 15:30:06 -0400
commit3e66dfb1b3d51bcb49405a1dd3c6f1771d85732c (patch)
tree3b97ab086aace470cc62e542ef8c425b0b580e3e
parent843c619067afd16ebeca40d9f66162c5b3f714e3 (diff)
downloadorg.eclipse.mylyn.tasks-3e66dfb1b3d51bcb49405a1dd3c6f1771d85732c.tar.gz
org.eclipse.mylyn.tasks-3e66dfb1b3d51bcb49405a1dd3c6f1771d85732c.tar.xz
org.eclipse.mylyn.tasks-3e66dfb1b3d51bcb49405a1dd3c6f1771d85732c.zip
Tooltip fix
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java3
2 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java
index 3d22fc64d..c4942765d 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java
@@ -82,9 +82,10 @@ public class BugzillaTask extends Task {
* TODO: Move
*/
public static String getLastRefreshTime(Date lastRefresh) {
- String toolTip = "\n-------------------\n"
+ String toolTip = "\n---------------\n"
+ "Last synchronized: ";
Date timeNow = new Date();
+ if (lastRefresh == null) lastRefresh = new Date();
long timeDifference = (timeNow.getTime() - lastRefresh.getTime())/60000;
long minutes = timeDifference % 60;
timeDifference /= 60;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java
index af37cdbf4..21d64d358 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java
@@ -37,6 +37,9 @@ import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.Widget;
+/**
+ * @author Mik Kersten and Eric Booth
+ */
public class ToolTipHandler {
private Shell parentShell;

Back to the top