Embed Java APIs (help documentation) into eclipse help

Source: Internet
Author: User

when using eclipse for Java Program development, you always need to open a jdk1.5 CHM file at the same time, then open the eclipse help to find the API details. If JDK documentation can be displayed in eclipse help, it will be much easier. In particular, Sun China's technical community has translated the original English JDK documentation, which makes it even better. The method found on the Internet to embed the jdk api documentation into the eclipse help. The test was successful.
download the jdk1.5 help document:
Chinese version: http://gceclub.sun.com.cn/chinese_java_docs.html
English version: http://java.sun.com/javase/downloads/index.jsp

Create a directory org.sun.java.doc. sdk_1.5.0 under Eclipse/plugins/, and then create two files plugin. xml and TOC. xml under this directory.
Contents of the plugin. xml file:
<? XML version = "1.0" encoding = "UTF-8"?>
<? Eclipse version = "3.0"?>
<Plugin
Id = "org.sun.java.doc. SDK"
Name = "Java 2 SDK Doc"
Version = "1.5.0"

Provider-name = "sun.org">
<Requires>
<Import plugin = "org. Eclipse. Help"/>
</Requires>
<Extension point = "org. Eclipse. Help. TOC">
<TOC primary = "true" file = "toc. xml"/>
</Extension>
</Plugin>

TOC. xml file content:
<? XML version = "1.0" encoding = "UTF-8"?>
<? NLS type = "org. Eclipse. Help. TOC"?>
<TOC label = "Java 2 SDK Doc">
<Topic label = "API" href = "docs/API/index.html">
</Topic>
</TOC>
Rename the downloaded jdk-rj5_0-doc.zipfile to doc.zip and place it in the same directory as the two files you just created. The file name must be doc.zip. the ZIP file should have such a directory hierarchy: docs/API/index.html
Use eclipse-clean to restart eclipse.
Start eclipse and go to help contents to see j2sdk API.


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.