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 242779 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 3
eclipse.jdt.ui.patch (text/plain), 2.25 KB, created by
Thomas Schindl
on 2014-05-07 02:17:55 EDT
(
hide
)
Description:
patch 3
Filename:
MIME Type:
Creator:
Thomas Schindl
Created:
2014-05-07 02:17:55 EDT
Size:
2.25 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java >index b0f69b2..6213040 100644 >--- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java >+++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavadocContentAccess2.java >@@ -620,28 +620,28 @@ > 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); >+ >+ if( isGetter || isSetter ) { >+ String propertyName= firstToLower(name.substring(3)); >+ IType type= member.getDeclaringType(); >+ String content = getHTMLContentFromSource(type.getMethod(propertyName+"Property",new String[0])); //$NON-NLS-1$ >+ >+ if (content != null) { >+ if (isGetter) { >+ content= Messages.format(JavaDocMessages.JavadocContentAccess2_getproperty_message, new Object[] { propertyName, content }); >+ } else { >+ content= Messages.format(JavaDocMessages.JavadocContentAccess2_setproperty_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); >+ } > } > } > return null;
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