Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 242811 Details for
Bug 434269
[1.8][hovering] Support showing Javadoc for JavaFX properties - Take 2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch 4
eclipse.jdt.ui.patch (text/plain), 2.70 KB, created by
Markus Keller
on 2014-05-07 13:29:57 EDT
(
hide
)
Description:
patch 4
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2014-05-07 13:29:57 EDT
Size:
2.70 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >diff --git ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java >index b0f69b2..89dd90b 100644 >--- ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java >+++ ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java >@@ -618,29 +618,33 @@ > // XXX: should not do this by default (but we don't have settings for Javadoc, see https://bugs.eclipse.org/424283 ) > if (member instanceof IMethod) { > String name= member.getElementName(); >- boolean isGetter= name.startsWith("get"); //$NON-NLS-1$ >- boolean isSetter= name.startsWith("set"); //$NON-NLS-1$ >- boolean isProperty= name.endsWith("Property"); //$NON-NLS-1$ >- if (isGetter || isSetter || isProperty) { >- String propertyName= null; >- if (isGetter || isSetter) { >- propertyName= firstToLower(name.substring(3)); >- } else { >- propertyName= name.substring(0, name.length() - 8); >+ boolean isGetter= name.startsWith("get") && name.length() > 3; //$NON-NLS-1$ >+ boolean isBooleanGetter= name.startsWith("is") && name.length() > 2; //$NON-NLS-1$ >+ boolean isSetter= name.startsWith("set") && name.length() > 3; //$NON-NLS-1$ >+ >+ if (isGetter || isBooleanGetter || isSetter) { >+ String propertyName= firstToLower(name.substring(isBooleanGetter ? 2 : 3)); >+ IType type= member.getDeclaringType(); >+ IMethod method= type.getMethod(propertyName + "Property", new String[0]); //$NON-NLS-1$ >+ >+ if (method.exists()) { >+ String content= getHTMLContentFromSource(method); >+ if (content != null) { >+ if (isSetter) { >+ content= Messages.format(JavaDocMessages.JavadocContentAccess2_setproperty_message, new Object[] { propertyName, content }); >+ } else { >+ content= Messages.format(JavaDocMessages.JavadocContentAccess2_getproperty_message, new Object[] { propertyName, content }); >+ } >+ } >+ return content; > } >+ } else if (name.endsWith("Property")) { //$NON-NLS-1$ >+ String propertyName= name.substring(0, name.length() - 8); > > IType type= member.getDeclaringType(); > IField field= type.getField(propertyName); > if (field.exists()) { >- String content= getHTMLContentFromSource(field); >- if (content != null) { >- if (isGetter) { >- content= Messages.format(JavaDocMessages.JavadocContentAccess2_getproperty_message, new Object[] { propertyName, content }); >- } else if (isSetter) { >- content= Messages.format(JavaDocMessages.JavadocContentAccess2_setproperty_message, new Object[] { propertyName, content }); >- } >- } >- return content; >+ return getHTMLContentFromSource(field); > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 434269
:
242776
|
242778
|
242779
| 242811