Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » getting method description
getting method description [message #324085] Thu, 17 January 2008 09:48 Go to next message
Eclipse UserFriend
Originally posted by: biraq.hussein.gmail.com

Hi,

I would like to be able to see a method's description by simply hovering the
mouse over it. I know this is possible in eclipse since I've seen it
before, I just can't get it with the current version I am using (3.2.2).

Currently what I am seeing is this whenever I hover the mouse over any
element:

Note: This element neither has attached source nor attached Javadoc and
hence no information could be found.

Thanks in advance,

-Biraq
Re: getting method description [message #324106 is a reply to message #324085] Thu, 17 January 2008 11:34 Go to previous messageGo to next message
Eclipse UserFriend
bhuss wrote:

>Hi,
>
>I would like to be able to see a method's description by simply hovering the
>mouse over it. I know this is possible in eclipse since I've seen it
>before, I just can't get it with the current version I am using (3.2.2).
>
>Currently what I am seeing is this whenever I hover the mouse over any
>element:
>
>Note: This element neither has attached source nor attached Javadoc and
>hence no information could be found.
>
>
This tells exactly why it's not working: the element you hover over is
probably in a library (jar) which neither has attached source nor Javadoc.

Dani

>Thanks in advance,
>
>-Biraq
>
>
>
>
Re: getting method description [message #324126 is a reply to message #324106] Thu, 17 January 2008 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biraq.hussein.gmail.com

Thank you for your response Daniel.

However, I get this message even when I hover over the keyword 'String', for
example, which is in the Java default library. When I type the . (dot)
after, say, an instance of a String, eclipse displays all the methods for
that String instance..such as trim(), equals(),..etc. However, how do I get
the descriptions of these methods. More precisely, how do I import the
javadoc for these methods so that eclipse can show the description of these
methods.

thanks again,

-Biraq


"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
news:fmo045$ee6$1@build.eclipse.org...
> bhuss wrote:
>
>>Hi,
>>
>>I would like to be able to see a method's description by simply hovering
>>the mouse over it. I know this is possible in eclipse since I've seen it
>>before, I just can't get it with the current version I am using (3.2.2).
>>
>>Currently what I am seeing is this whenever I hover the mouse over any
>>element:
>>
>>Note: This element neither has attached source nor attached Javadoc and
>>hence no information could be found.
>>
> This tells exactly why it's not working: the element you hover over is
> probably in a library (jar) which neither has attached source nor Javadoc.
>
> Dani
>
>>Thanks in advance,
>>
>>-Biraq
>>
>>
Re: getting method description [message #324130 is a reply to message #324106] Thu, 17 January 2008 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biraq.hussein.gmail.com

actually never mind..i solved my problem.

and for those caring to know:

- download the Javadoc for your JDK and unzip it anywhere. This will create
a docs folder for you.
- go to your project properties and select "Java Build Path" and select the
"Libraries" tab.
- expand the "JRE System Library ... " item and select under it the
"rt.jar - C:\blah..blah.."
- you will see two items under it,
- source attachment: (None)
- Javadoc location: (None)
- select "Javadoc localtion" and click on "Edit" on the right.
- then browse to your "docs" forlder that you unzipped before, if the
"package-list" file does not fall directly under the "docs" folder, then it
is most likely under the "api" folder under "docs".
- select whichever folder has the "package-list" file directly under it and
"ok" everything...and bam, you will start seeing descriptions for your
methods.

enjoy and thanks for those who tried to help.

-Biraq


"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
news:fmo045$ee6$1@build.eclipse.org...
> bhuss wrote:
>
>>Hi,
>>
>>I would like to be able to see a method's description by simply hovering
>>the mouse over it. I know this is possible in eclipse since I've seen it
>>before, I just can't get it with the current version I am using (3.2.2).
>>
>>Currently what I am seeing is this whenever I hover the mouse over any
>>element:
>>
>>Note: This element neither has attached source nor attached Javadoc and
>>hence no information could be found.
>>
> This tells exactly why it's not working: the element you hover over is
> probably in a library (jar) which neither has attached source nor Javadoc.
>
> Dani
>
>>Thanks in advance,
>>
>>-Biraq
>>
>>
Re: getting method description [message #324155 is a reply to message #324085] Thu, 17 January 2008 20:49 Go to previous message
Eclipse UserFriend
Originally posted by: varavamu.yahoo.com

Are you sure you are using a JDK rather than a JRE?

Vijay

bhuss wrote:
> Hi,
>
> I would like to be able to see a method's description by simply hovering the
> mouse over it. I know this is possible in eclipse since I've seen it
> before, I just can't get it with the current version I am using (3.2.2).
>
> Currently what I am seeing is this whenever I hover the mouse over any
> element:
>
> Note: This element neither has attached source nor attached Javadoc and
> hence no information could be found.
>
> Thanks in advance,
>
> -Biraq
>
>
>
Previous Topic:Custom Widgets in Eclipse?
Next Topic:Mapping left/right to old/new in Compare API two-way diffs
Goto Forum:
  


Current Time: Mon Jul 14 12:32:27 EDT 2025

Powered by FUDForum. Page generated in 0.12607 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top