How to integrate JDK API DOC into Eclipse

xiaoxiao2021-03-06  39

Eclipse is I really like a Java integrated development environment. Many benefits I don't haven't described here. It can be described as "benevolence seeing the benevolence, wise people." But one thing makes me feel uncomfortable, Eclipse does not integrate the JDK API document into the help, it is very inconvenient when querying the specific usage method or method of a class, this point does not have JB. Although I have already discarded JB to the embrace of Eclipse, some of JB is still worth mentioning. In the past, I remember that I have seen the article from the Internet that how to integrate the JDK API document into Eclipse, but there is also the need to query the API in Eclipse, so I didn't care. Today, I just want to query the API document, and I don't want to open the help document in JB or check in the wire file, so I want to integrate the API document into the Eclipse. Search with Google, there are few information in this area, find a few articles, it is very simple, create a new folder org.jdkdoc1.4.2 under the plugin folder, then change J2SDK _DOC_1_4_2.zip to change Doc.zip, click below this folder. I will believe that I want to take simple test like this, and Eclipse automatically recognizes it? According to the method he said, I didn't come out for a long time. So, I took a closer look at other help documents, found one of the names and links in the left tree guided in the left tree guided in the Toc.xml XML format, so I imitate this content Some changes. The specific settings are as follows: 1) Download JDK API Help Document J2SDK_DOC_1_4_2.zip 2) Create a new folder under the Eclipse / PLUGIN folder, such as: org.jdkdoc1_4_2 3) Take J2SDK_DOC_1_4_2.zip to org.jdkdoc1_4_2 folder, And rename the zip file to Doc.zip 4) Create a configuration file Toc.xml, the editing content is as follows:

5) Restart Eclipse, open the help document, you can see the JDK API help because this configuration file is very simple, just link overview-summary.html, so there is a big gap in JB, mainly Tree-shaped column part. According to your own needs, you can continue to improve the configuration file to achieve your own snow.

转载请注明原文地址:https://www.9cbs.com/read-72328.html

New Post(0)