Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-04 21:22:00 -0500
committermkersten2005-11-04 21:22:00 -0500
commit22245caccfe1d0f690a28cabf2ad32c4a0843460 (patch)
treef716c71f4432c1099f052a4e397b7f696b6d45cc /org.eclipse.mylyn.tasks.ui
parent96e95cd856753d331854e045397cb15fc48b1468 (diff)
downloadorg.eclipse.mylyn.tasks-22245caccfe1d0f690a28cabf2ad32c4a0843460.tar.gz
org.eclipse.mylyn.tasks-22245caccfe1d0f690a28cabf2ad32c4a0843460.tar.xz
org.eclipse.mylyn.tasks-22245caccfe1d0f690a28cabf2ad32c4a0843460.zip
Fixed Bugzilla Bug 114561: restructure and fix up documentation
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java9
1 files changed, 6 insertions, 3 deletions
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 b526046e3..5dbd9577f 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
@@ -52,8 +52,9 @@ public class ToolTipHandler {
protected Point widgetPosition; // the position hovered over in the Widget;
public ToolTipHandler(Shell parentShell) {
- if (parentShell == null || parentShell.getDisplay() == null) return;
- tipShell = createTipShell(parentShell);
+ if (parentShell != null) {
+ tipShell = createTipShell(parentShell);
+ }
}
private Shell createTipShell(Shell parent){
@@ -199,7 +200,9 @@ public class ToolTipHandler {
return;
}
- if (tipShell.getShell().getParent() != Display.getCurrent().getActiveShell()){
+ if (tipShell.getShell() != null
+ && tipShell.getShell().getParent() != null
+ && tipShell.getShell().getParent() != Display.getCurrent().getActiveShell()){
tipShell = createTipShell(Display.getCurrent().getActiveShell());
}

Back to the top