Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324545

Summary: [hovering] Intelliscense is not visble or not good as other system libraries
Product: [Eclipse Project] JDT Reporter: AASHISH <aashishshivhare>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: aashishshivhare, markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Eclipse and Intellisense none

Description AASHISH CLA 2010-09-06 02:46:34 EDT
Build Identifier: 20090621-0832

Hi Eclipse Team,

I tried to get the intellisense as good as Java gives. Whenever, I am tried to mouse over on the method, some times it can't show me intellisense and in some time it shows intellisense but without comments, it shows me "Note: This element neither has attached source nor attached Javadoc and  hence no Javadoc could be found."
But when i attached the code it shows me proper comments.
But if there is no code only reference is their, how can I solve this problem?
Help me.

Aashish

Reproducible: Always
Comment 1 Markus Keller CLA 2010-09-06 05:45:05 EDT
I don't understand what you're asking for. Javadoc hovers can naturally only show up if the Javadoc is available somewhere. So either it comes from attached source, or it comes from attached Javadoc.

Javadoc is not available in .class files. If you meant something else, please provide concrete steps to reproduce the problems (e.g. attach a small example project).
Comment 2 AASHISH CLA 2010-09-06 06:32:35 EDT
Hi Markus Keller,

Thank you for reply.

Let me understand from the beginning.

I have my own JAR, now I am using this JAR in my another code and I use one of the class from the JAR. Now whenever I mouse over on the method it gives me 
"Note: This element neither has attached source nor attached Javadoc and  hence no Javadoc could be found."(sometimes it gives me Class comments also), but when I attached source code or java doc to it, now its shows me Class comments properly.

Now suppose I have only JAR not its source code (in my case I have Release Jar). Now in this case what I supposed to do, to get the class comments??

Is there any method to build the JAR, because refer JAR is build by me through ANT script.
Comment 3 AASHISH CLA 2010-09-06 06:35:13 EDT
Created attachment 178254 [details]
Eclipse and Intellisense
Comment 4 Markus Keller CLA 2010-09-07 06:36:04 EDT
Again, Javadoc is not available in the exported JAR, so you have to attach either source or Javadoc (open Properties of the JAR file and go to "Java Source Attachment" or "Javadoc Location").
Comment 5 AASHISH CLA 2010-09-08 06:53:31 EDT
Hi Markus Keller,

Thank you for reply.

I generated the doc through Eclipse for a particular project. Now, through Build Path --> Configure Build Path, in Jar properties I add generated javadoc and build the workspace and now it shows me comments.

Thank you very much.