zoukankan      html  css  js  c++  java
  • Eclipse帮助文档配置

    Force Eclipse To Use Local Javadocs For Context-Sensitive Help

    转自:http://www.gnostice.com/nl_article.asp?id=209&t=Force_Eclipse_To_Use_Local_Javadocs_For_Context_Sensitive_Help
    Set up local Javadocs for JRE and external JAR components.
    By V. Subhash

    I dug the depths of the Internet to find this tip. It surely was worth the effort.

    The Eclipse IDE provides context-sensitive help if you hover the mouse pointer over keywords. Usually, the help content is downloaded on demand from the Net. If you are offline, the help will look something like this.

    It need not be like this. Eclipse can use a local copy of the help. (Download Java SE 6 Documentation from Oracle.com). The download is a zip file. You can use it as it is or can extract it to some folder.

    Context-Sensitive Help For Java API Docs

    The difficulty is not in making Eclipse use the local help. It is difficult doing it right. Like this.

      1. From the menu, select Window » Preferences to load the Preferences dialog box.
      2. From the sidepane, select Java » Installed JREs.
      3. From the listed JREs, select the name of the current JRE and click the Edit button to launch the Edit JRE dialog box.
      4. In this dialog box, select all the listed "JRE system libraries" and click the Javadoc Location button to launch a Javadoc For … dialog.
    1. In the Javadoc For … dialog, specify the location of the API docs. You could select the API zip file or the folder containing the index.html and package-list files (in the folder where you extracted the API docs zip file).

    After that, the help will be loaded from the local copy. Next, let us make context-sensitive help work for third-party components.

    Context-Sensitive Help For Third-Party Java Components

    The third-party Java components that we like around here at Gnostice is PDFOne (for Java™). To make Eclipse use the help that we ship with the product, try these steps.

    1. Right-click the jar in Project Explorer and select Properties.
    2. On the sidepane of the Properties for … dialog box, select the Javadoc Location property.
    3. On the right, select the Javadoc URL option and specify the location where the PDFOne API docs are available. If you click the Browse button and select the directory, Eclipse will re-format the pathname to support the file:// protocol.
    4. Click OK to close the dialog.

    Finally, help is at hand. Smiles everywhere.

    作者:Elaine
    交流QQ:392989505
  • 相关阅读:
    洛谷 1498 南蛮图腾——模拟
    bzoj 4198 [Noi2015]荷马史诗——哈夫曼树
    bzoj 1026 [SCOI2009]windy数——数位dp水题
    bzoj 1045 [HAOI2008] 糖果传递——设变量推式子
    bzoj 4521 [Cqoi2016]手机号码——数位dp
    bzoj1044 [HAOI2008]木棍分割——前缀和优化DP
    bzoj1090 [SCOI2003]字符串折叠——区间DP
    bzoj1911 [Apio2010]特别行动队——斜率优化DP
    bzoj1025 [SCOI2009]游戏——因数DP
    bzoj1207 [HNOI2004]打鼹鼠——LIS
  • 原文地址:https://www.cnblogs.com/ITGirl00/p/4174092.html
Copyright © 2011-2022 走看看