Skip to content

Commit d69caf3

Browse files
mehmet-karamaniloveeclipse
authored andcommitted
Bugfix for Hover which is visible above other application windows. #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. THe shell visibility was set to false explicitly. Originally the isVisible() was returning false and it won't be set to visible explicitly. Version bump(s) for 4.35 stream
1 parent dceb012 commit d69caf3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 2 additions & 2 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

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)