Bug 467287 - [hovering] "Quick fix" options blocked by popup with "configure annotation preferences" and "configure problem severity" buttons.
Summary: [hovering] "Quick fix" options blocked by popup with "configure annotation pr...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4.2   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on: 445900
Blocks:
  Show dependency tree
 
Reported: 2015-05-13 19:03 EDT by Joran Dox CLA
Modified: 2015-05-27 08:59 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joran Dox CLA 2015-05-13 19:03:55 EDT
Expected: 
1: Write some code that triggers a warning, e.g. a class that is serializable but doesn't declare a "static final serialVersionUID field of type long".
2: Eclipse underlines this in yellow as a warning.
3. Mouse-over the underlined code.
4. Pop-up telling you what the problem is with some suggested quick-fixes (hopefully).
5. Mouse-over preferred fix.
6. Click preferred fix.
7. Fix applied.

Observed:
6. After mouse-overing to click the preferred fix, a pop-up appears within the quick-fix window. This pop-up has two buttons: "configure annotation preferences" and "configure problem severity". It obstructs the bottom fix from being clicked and forces you to scroll.

Workaround observed: increasing the size of the window (which is only possible after the pop-up appears) seems to make the pop-up appear lower, without obstructing view in the future, as if some check was made and some wrong default value is fixed after that.

=============================================================================

I've tried searching, but I have no idea what to search for, and the searches I've performed gave more than a thousand results.

I've had this problem on many versions of eclipse and linux over the past few years, several of which were independent on each other. I've never bothered to send in a bug report as it's only a minor annoyance and, again, I have no idea what to search for or even how to categorize it. Which I hope I did well enough.
Comment 1 Joran Dox CLA 2015-05-13 19:06:47 EDT
http://stackoverflow.com/questions/11492014/eclipse-quick-fix-dialogue-hides-bottom-line This guy has the same problem I do it seems.
Comment 2 Dani Megert CLA 2015-05-14 05:19:08 EDT
This works fine for me using http://download.eclipse.org/eclipse/downloads/drops4/I20150513-2000/ on Windows 7 and an Ubuntu 12.04 LTS machine. The additional controls appear below the existing hover (actually resizing it).

What is your exact set up? Are you running Eclipse with GTK+ 2 or GTK+ 3?
Comment 3 Joran Dox CLA 2015-05-15 14:57:47 EDT
(In reply to Dani Megert from comment #2)
> This works fine for me using
> http://download.eclipse.org/eclipse/downloads/drops4/I20150513-2000/ on
> Windows 7 and an Ubuntu 12.04 LTS machine. The additional controls appear
> below the existing hover (actually resizing it).
>
> What is your exact set up? Are you running Eclipse with GTK+ 2 or GTK+ 3?

Exact setup has varied over the years, currently working on a VM with Ubuntu 14.04 64bit. Can provide more exact specs but I think they're kind of irrelevant as it's been happening since as long as I can remember.
I'm sorry, I'm a pretty noob user, how do I check which GTK+ I'm running Eclipse with? I googled a little but didn't find anything useful at first sight. At any rate I've probably always used the default, whichever that might be.

Also, I can't seem to reproduce it any more since it (seemingly?) stopped happening once I manually resized it once.
Comment 4 Noopur Gupta CLA 2015-05-25 04:23:31 EDT
(In reply to Joran Dox from comment #3)
> (In reply to Dani Megert from comment #2)
> > This works fine for me using
> > http://download.eclipse.org/eclipse/downloads/drops4/I20150513-2000/ on
> > Windows 7 and an Ubuntu 12.04 LTS machine. The additional controls appear
> > below the existing hover (actually resizing it).
> >
> > What is your exact set up? Are you running Eclipse with GTK+ 2 or GTK+ 3?
> 
> Exact setup has varied over the years, currently working on a VM with Ubuntu
> 14.04 64bit. Can provide more exact specs but I think they're kind of
> irrelevant as it's been happening since as long as I can remember.
> I'm sorry, I'm a pretty noob user, how do I check which GTK+ I'm running
> Eclipse with? I googled a little but didn't find anything useful at first
> sight. At any rate I've probably always used the default, whichever that
> might be.
> 
> Also, I can't seem to reproduce it any more since it (seemingly?) stopped
> happening once I manually resized it once.

To check which GTK version you are running Eclipse with, go to Help > Installation Details > Configuration tab and look for the value of "org.eclipse.swt.internal.gtk.version".

I cannot reproduce it with Eclipse 4.5 RC2a (I20150522-2000) on Ubuntu 14.04 64-bit using both GTK+2 and GTK+3. Hence, closing this bug for now.
Comment 5 Markus Keller CLA 2015-05-27 08:59:58 EDT
I guess you're seeing bug 445900. On GTK, the very first rich hover (with toolbar, etc.) doesn't have the right size. After the hover is closed, the following hovers in the same Eclipse session should have the right size and should not cut links.