| Summary: | [1.8][hovering] Support showing Javadoc for JavaFX properties - Take 2 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Thomas Schindl <tom.schindl> | ||||||||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | manju656, markus.kell.r, noopur_gupta | ||||||||||
| Version: | 4.4 | Flags: | noopur_gupta:
review+
|
||||||||||
| Target Milestone: | 4.4 RC1 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Thomas Schindl
Created attachment 242776 [details]
patch
Created attachment 242778 [details]
patch 2
Created attachment 242779 [details]
patch 3
a) if get/set delegate to the property javadoc
b) in case there's no javadoc there
c) look up the documentation from the field
Created attachment 242811 [details]
patch 4
Please format your code properly.
There was a JavaModelException if the property method doesn't exist. Needs the same exists() test as in the old code.
There was also an old IndexOutOfBoundsException for methods called "get" or "set".
Support for isXXX() boolean getters like javafx.scene.LightBase#isLightOn() was also missing.
Fixed all these problems. Noopur, please review.
Thanks Markus! The patch looks good. However, if the property method doesn't exist and the javadoc is present on the field, we are not showing the javadoc on getter / setter now. Is this expected? You are right but I think we can omit this case because then by definition this is not a JavaFX-Bean construct but I'm fine if this case is handled as well - who knows what strange things the FX-People come up (In reply to Noopur Gupta from comment #6) You mean this example, where the hover on get/setValue(..) doesn't show the mumbo jumbo any more? That's good, since "javadoc.exe -javafx ..." also doesn't seem to do anything special in this case. class Bean { /** * Valuable Javadoc for the 'value' bean property mumbo jumbo... Really! */ private int value; public int getValue() { return value; } public void setValue(int value) { this.value = value; } } Released patch 4 with http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=3e661e86cb9219c06a92919dcd1dc1d3c275c2f3 Verified using Build id: I20140515-1230. |