Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-05 00:57:08 +0000
committermkersten2005-11-05 00:57:08 +0000
commit89d4e185b5ac62ee587b7f75550058ad69ccf067 (patch)
tree972f284417f716634725b9f744c2d82a7560ab9c /org.eclipse.mylyn.tasks.ui
parent380bfe790e17e30aff283627528d69986feaa4f8 (diff)
downloadorg.eclipse.mylyn.tasks-89d4e185b5ac62ee587b7f75550058ad69ccf067.tar.gz
org.eclipse.mylyn.tasks-89d4e185b5ac62ee587b7f75550058ad69ccf067.tar.xz
org.eclipse.mylyn.tasks-89d4e185b5ac62ee587b7f75550058ad69ccf067.zip
minor
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java4
1 files changed, 2 insertions, 2 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 495abad58..b526046e3 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,7 +52,7 @@ public class ToolTipHandler {
protected Point widgetPosition; // the position hovered over in the Widget;
public ToolTipHandler(Shell parentShell) {
- if (parentShell == null) return;
+ if (parentShell == null || parentShell.getDisplay() == null) return;
tipShell = createTipShell(parentShell);
}
@@ -64,7 +64,7 @@ public class ToolTipHandler {
gridLayout.marginHeight = 2;
tipShell.setLayout(gridLayout);
tipShell.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
-
+
tipLabelImage = new Label(tipShell, SWT.NONE);
tipLabelImage.setForeground(parent.getDisplay()
.getSystemColor(SWT.COLOR_INFO_FOREGROUND));

Back to the top