설정후, shift + F2만 누르면 브라우져가 떠서. 보기가 편하다!!
출처 :
http://www.cs.laurentian.ca/badams/c1047/eclipse-tutorials/javadoc-tutorial.html
Viewing Javadoc for the JDK API
To view the standard Java JDK API documentation for all the classes that come with Java open up the tree in the "Package Explorer" for the JRE System Library, select rt.jar
(the runtime library)
From the "Navigate" menu select "Open External Javadoc" and you will see the Java API documentation. The default location of the documentation is Sun's website so the URL in the browser will be something like
http://java.sun.com/j2se/1.5.0/docs/api/index.html
We want to use our own local version of the documentation in
file:/C:/Program Files/Java/jdk1.5.0_04/docs/api/
so that we don't need to connect to the internet each time we want to view the documentation.
To make the change right click on the rt.jar
entry in the "Package Explorer" and select "Properties" to get the dialog box
We need to change the URL in the "Javadoc location path". You can either type in the local value directly or use its browse button to navigate to
Click "OK" and you should have the dialog box
showing the local URL
file:/C:/Program Files/Java/jdk1.5.0_04/docs/api/
Click "Apply" and then "OK".
Now to see the API documentation select rt.jar
and choose "Open External Javadoc" from the "Navigate" menu (shortcut is Shift F2). Your local URL will now be shown in the browser address bar.
Viewing Documentation in the Editor Window
It is possible to show Java documentation in the editor window. From the "Package Explorer" open the docs
directory for project geoproject
and double click the file index.html
. The editor window will now show
Viewing Documentation From Source Code
Another way to view documentation for a particular class in your source code is to select the class name and the press "Shift F2". To try this load the file Circle.java
into the Editor. Select the word Point
Now press "Shift F2". The documentation for the Point
class will now appear in a browser window.
In the same way you can also select a package name and the package documentation will appear.
'eclipse' 카테고리의 다른 글
이클립스 SVN 플러그인 (0) | 2009.02.27 |
---|---|
이클립스 플러그인 소개 - memory monitor, status monitor (0) | 2008.06.21 |
Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath 에러 (0) | 2007.10.16 |
elipse에서 Synchronize with repository 시 스페이스(space) 무시 비교 (0) | 2007.08.31 |
로그를 위한 코드 템플릿 만들기 (0) | 2007.06.08 |