Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

eclipse

Thread view: 
pat270881 - 23 Mar 2005 00:12 GMT
Hello,

Is it possible to configure eclipse in that way that when I mark (and
possibly press another key) a  class in my project (an existing class
in the java api) that the api documentation is displayed to look at the
available methods, constructors, etc.? I have downloaded the
documentation from the java sun homepage. Can anybody tell me how I can
realize that?

thx

pat
ninhoa@yahoo.es - 23 Mar 2005 11:34 GMT
> Hello,
>
[quoted text clipped - 8 lines]
>
> pat

Yes, starting with Eclipse 3 (at least in Windows) when you put the
mouse over a class (or a method or variable) a popup shows up; you can
press F2 to view the complete javadoc. Thus I don't know where this is
defined.
Also, try selecting a class and press F3 to view the class source.
Roland - 23 Mar 2005 12:18 GMT
>>Hello,
>>
[quoted text clipped - 14 lines]
> defined.
> Also, try selecting a class and press F3 to view the class source.

There are also the Javadoc and Declaration views  (Window -> Show View
-> Javadoc/Declaration), which show the javadoc/declaration of the
element you select in the editor.

To be able to view javadoc/declarations of JRE classes, you must have
linked the source of the runtime libraries (src.zip). The same applies
to other libaries too, of course.
If you haven't link it yet, the easiest/laziest way is probably to open
class java.lang.Object (Navigate -> Open Type, or Ctrl-Shift-T). Then in
the editor, press 'Attach Source' and use 'External File' to browse to
the file 'src.zip' in the SDK installation directory to attach it.
[Maybe you have to close the editor on java.lang.Object and reopen it
(Ctrl-Shift-T).]
Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \

TechBookReport - 23 Mar 2005 11:47 GMT
> Hello,
>
[quoted text clipped - 8 lines]
>
> pat

Preferences > Java > Installed JREs, select the JRE and then hit the
edit button and enter the path to the API docs. From then on you can
highlight a class and then hit F3 to get to the JavaDocs.

HTH

==============================================================================
TechBookReport Java Book Reviews
http://www.techbookreport.com/JavaIndex.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.