Skip to content

Commit a1e2718

Browse files
Bugfix for Hover which is visible above other application windows. eclipse-platform#2534
This patch is fixing the problem, where the HoverManagers listeners are deregistered but the hover is still visibile on top. This happens when the hover was sticky eclipse was minimized and put back on foreground after it. In that case the listeners are already deregistered and there is no chance to react at all. So for this case the visibility has to be set explicitly when the close is going to stop. Version bump(s) for 4.35 stream Bugfix for Hover which is visible above other application windows. eclipse-platform#2534
1 parent 7aaa014 commit a1e2718

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bundles/org.eclipse.jface.text/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.jface.text
5-
Bundle-Version: 3.26.0.qualifier
5+
Bundle-Version: 3.26.100.qualifier
66
Bundle-Vendor: %providerName
77
Bundle-Localization: plugin
88
Export-Package:

bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ else if (!resizable)
332332
@Override
333333
public void setVisible(boolean visible) {
334334
Shell shell= getShell();
335-
if (shell.isVisible() == visible)
336-
return;
337335

338336
if (!visible) {
339337
super.setVisible(false);
@@ -342,6 +340,8 @@ public void setVisible(boolean visible) {
342340
return;
343341
}
344342

343+
if (shell.isVisible() == visible)
344+
return;
345345
/*
346346
* The Browser widget flickers when made visible while it is not completely loaded.
347347
* The fix is to delay the call to setVisible until either loading is completed
@@ -367,7 +367,7 @@ public void setVisible(boolean visible) {
367367
* Avoids flickering when replacing hovers, especially on Vista in ON_CLICK mode.
368368
* Causes flickering on GTK. Carbon does not care.
369369
*/
370-
if (Util.isWin32())
370+
if (Util.isWin32())
371371
shell.moveAbove(null);
372372

373373
super.setVisible(true);

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/AbstractInformationControl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public boolean isResizable() {
505505

506506
@Override
507507
public void setVisible(boolean visible) {
508-
if (fShell.isVisible() == visible)
508+
if (visible && fShell.isVisible() == visible)
509509
return;
510510

511511
fShell.setVisible(visible);

0 commit comments

Comments
 (0)