Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[386732] ServerToolTip escape on focussed tooltip not working perfectly

  • Loading branch information...
commit 1b220ffa2cf703196bc19eba125f10c46d21ef4b 1 parent 48579e3
authored
11  plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/ServerToolTip.java
@@ -86,7 +86,16 @@ public void createFocusedTooltip(final Control control) {
86 86
 				| SWT.NO_FOCUS);
87 87
 		stickyTooltip.setLayout(new FillLayout());
88 88
 		stickyTooltip.setBackground(stickyTooltip.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
89  
-		
  89
+		stickyTooltip.addShellListener(new ShellAdapter() {
  90
+			public void shellClosed(ShellEvent e) {
  91
+				if (CURRENT_TOOLTIP != null) {
  92
+					CURRENT_TOOLTIP.dispose();
  93
+					CURRENT_TOOLTIP = null;
  94
+				}
  95
+				activate();
  96
+			}
  97
+		});
  98
+
90 99
 		control.getDisplay().asyncExec(new Runnable() {
91 100
 			public void run() {
92 101
 				Event event = new Event();

0 notes on commit 1b220ff

Please sign in to comment.
Something went wrong with that request. Please try again.