Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » code completion with additional information - how?
code completion with additional information - how? [message #230308] Wed, 31 May 2006 22:17 Go to next message
Eclipse UserFriend
Originally posted by: djain.gmx.net

Hi!

I have noticed on a couple of screenshots and videos on the Net that, when
using code completion, it is possible to get additional information by means
of an additional window that opens up to the right, displaying information
on the item selected in the list of completions. For example, this can be
seen here:
http://klomp.org/mark/gij_eclipse/code_completion.png

What do I have to do to get that?

Many thanks.
Dominik
Re: code completion with additional information - how? [message #230325 is a reply to message #230308] Thu, 01 June 2006 06:31 Go to previous messageGo to next message
Danail Nachev is currently offline Danail NachevFriend
Messages: 36
Registered: July 2009
Member
Hi,

It looks to me like simple javadoc for the selected element. All you
need for it is to have either the source or the javadocs for the .jar
file from which the element is coming.

Scanning through the Preference pages I couldn't found an option which
enables or disables this. So, I think all you need is the CodeComplete
feature enabled.

Dominik Jain wrote:
> Hi!
>
> I have noticed on a couple of screenshots and videos on the Net that, when
> using code completion, it is possible to get additional information by means
> of an additional window that opens up to the right, displaying information
> on the item selected in the list of completions. For example, this can be
> seen here:
> http://klomp.org/mark/gij_eclipse/code_completion.png
>
> What do I have to do to get that?
>
> Many thanks.
> Dominik
>
Re: code completion with additional information - how? [message #230346 is a reply to message #230325] Thu, 01 June 2006 07:35 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Danail Nachev wrote:

> Hi,
>
> It looks to me like simple javadoc for the selected element. All you
> need for it is to have either the source or the javadocs for the .jar
> file from which the element is coming.

Note that it only works off Javadoc if you use a newer 3.2 build, e.g.
3.2 RC6.

>
> Scanning through the Preference pages I couldn't found an option which
> enables or disables this. So, I think all you need is the CodeComplete
> feature enabled.

Correct.

Dani

>
> Dominik Jain wrote:
>
>> Hi!
>>
>> I have noticed on a couple of screenshots and videos on the Net that,
>> when
>> using code completion, it is possible to get additional information
>> by means
>> of an additional window that opens up to the right, displaying
>> information
>> on the item selected in the list of completions. For example, this
>> can be
>> seen here:
>> http://klomp.org/mark/gij_eclipse/code_completion.png
>>
>> What do I have to do to get that?
>>
>> Many thanks.
>> Dominik
>>
Re: code completion with additional information - how? [message #230421 is a reply to message #230346] Thu, 01 June 2006 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: djain.gmx.net

Daniel Megert <daniel_megert@ch.ibm.com> wrote:
> Danail Nachev wrote:
>> It looks to me like simple javadoc for the selected element. All you
>> need for it is to have either the source or the javadocs for the .jar
>> file from which the element is coming.
>
> Note that it only works off Javadoc if you use a newer 3.2 build, e.g.
> 3.2 RC6.

I am currently using Eclipse 3.1.2, so I can only use the source option
without upgrading... but how do I tell Eclipse where to look for the JDK
source? (It works fine with sources that are part of the project and contain
javadoc)

cheers!
Dominik
Re: code completion with additional information - how? [message #230474 is a reply to message #230421] Fri, 02 June 2006 10:26 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Dominik Jain wrote:

>Daniel Megert <daniel_megert@ch.ibm.com> wrote:
>
>
>>Danail Nachev wrote:
>>
>>
>>>It looks to me like simple javadoc for the selected element. All you
>>>need for it is to have either the source or the javadocs for the .jar
>>>file from which the element is coming.
>>>
>>>
>>Note that it only works off Javadoc if you use a newer 3.2 build, e.g.
>>3.2 RC6.
>>
>>
>
>I am currently using Eclipse 3.1.2, so I can only use the source option
>without upgrading... but how do I tell Eclipse where to look for the JDK
>source?
>
Select the JAR to which you want to attach source and open its property
dialog via context menu. You can then set the source and the Javadoc
location.

Dani

>(It works fine with sources that are part of the project and contain
>javadoc)
>
>cheers!
>Dominik
>
>
>
Re: code completion with additional information - how? [message #230507 is a reply to message #230474] Fri, 02 June 2006 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: djain.gmx.net

> Select the JAR to which you want to attach source and open its
> property dialog via context menu. You can then set the source and the
> Javadoc location.

If I want the popup information for the JDK, do I really have to do this for
every project? Because for some reason, it's not possible to change the
source location or javadoc location for the JRE jars globally under
Preferences/Installed JREs/...
In the project settings, it can be done, but doing that for every project
would get a little tedious.

bye,

--
Dominik Jain
http://home.cs.tum.edu/~jain
Re: code completion with additional information - how? [message #230694 is a reply to message #230507] Tue, 06 June 2006 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Dominik Jain wrote:
>> Select the JAR to which you want to attach source and open its
>> property dialog via context menu. You can then set the source and the
>> Javadoc location.
>
> If I want the popup information for the JDK, do I really have to do this for
> every project? Because for some reason, it's not possible to change the
> source location or javadoc location for the JRE jars globally under
> Preferences/Installed JREs/...
> In the project settings, it can be done, but doing that for every project
> would get a little tedious.

It is a little different for JDKs/JREs.
A picture is worth 1000 words - see this screencast:
http://www.rizzoweb.com/Eclipse/JDKSourceAttachment.html

Hope this helps,
Eric
Re: code completion with additional information - how? [message #231921 is a reply to message #230694] Fri, 23 June 2006 02:48 Go to previous message
Eclipse UserFriend
Originally posted by: djain.gmx.net

Eric Rizzo <eclipse4@rizzoweb.com> wrote:
> Dominik Jain wrote:
>> If I want the popup information for the JDK, do I really have to do
>> this for every project? Because for some reason, it's not possible
>> to change the source location or javadoc location for the JRE jars
>> globally under Preferences/Installed JREs/...
>> In the project settings, it can be done, but doing that for every
>> project would get a little tedious.
>
> It is a little different for JDKs/JREs.
> A picture is worth 1000 words - see this screencast:
> http://www.rizzoweb.com/Eclipse/JDKSourceAttachment.html

Thank you very much. That did the trick...

cheers!

--
Dominik Jain
http://home.cs.tum.edu/~jain
Previous Topic:How to implement Blank Line rules for Sun's Code Convention code formatter XML?
Next Topic:Reusing JDTs code assist in a SourceViewer
Goto Forum:
  


Current Time: Wed Aug 14 22:10:53 GMT 2024

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

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

Back to the top