diff options
author | mkersten | 2005-11-05 00:57:08 +0000 |
---|---|---|
committer | mkersten | 2005-11-05 00:57:08 +0000 |
commit | 89d4e185b5ac62ee587b7f75550058ad69ccf067 (patch) | |
tree | 972f284417f716634725b9f744c2d82a7560ab9c /org.eclipse.mylyn.tasks.ui | |
parent | 380bfe790e17e30aff283627528d69986feaa4f8 (diff) | |
download | org.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.java | 4 |
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)); |