derio
derio

Reputation: 962

How to adjust the default size of the Javadoc popup window in Eclipse?

I have attached some screen dumps in the Javadoc comments of some of my Swing classes and I would like them to be visible when hovering the mouse over the class name.

/**
* The panel containing so and so... <br>
* <img src="../doc-files/ThisPanel.png" width=200><br>
*/

As there is little text in the description, the initial size of the popup is very small and it must be resized to view the whole image.

Is there a way to have the popup contain the image or at least define its initial dimensions?

Upvotes: 11

Views: 2088

Answers (2)

ROMANIA_engineer
ROMANIA_engineer

Reputation: 56616

Another approach to get the same workaround (mentioned by Elliott Hill, because I don't see a solution to this problem, even if I am using Eclipse Mars - 4.5.1):

  • Go over a method or press F2 if the caret is on the method name
  • Put the mouse over the popup until the buttons will appear
  • Click on @ sign (Show in Javadoc View) to open the Javadoc view

    enter image description here

  • Click on a new method to update the Javadoc View content

If you use 2 monitors, you can drag & drop the Javadoc tab and make it "full screen" on the second screen.

Upvotes: 2

Elliott Hill
Elliott Hill

Reputation: 961

Ive never found options for setting default sizes for Javadoc hovers. You can always use the Javadoc view though in Window > Show View > Javadoc. You can set this size and the Javadoc of the highlighted code will be shown in here.

Upvotes: 6

Related Questions