• How to Install one Plug-in into Eclipse


    How to Install One New Plug-in

    • Old Way(before Eclipse 3.4)
      –Installed new plug-ins by dumping them in the eclipse/plugins/ directory and restarting with the -clean command line argument.
      –Put new plug-ins under one external directory, then create one link file under eclipse/links/.

    • New Way
      –Use Equinox/p2/(http://wiki.eclipse.org/Equinox/p2/Getting_Started)

    Issue about Plug-in Installation - old way

    • ~/.eclipse folder

    –It doesn’t cache code there, but it does store other information. In eclipse/configuration: Certain files that were requested “extracted” from their plugins, like files or directories. The extension registry cache (that’s what -clean causes to be re-read, and is not a problem when updated via p2 as p2 cleans the cache). bundles.info, which is a pointer to specific plugins and their run levels. Other configuration level (as opposed to workspace level) information (things like network proxies, for example).
    –There’s also the eclipse/p2 directory at the install level, which contains pointers to bundles and other install/configuration type metadata that is generated for a particular install.
    –Refer to following issues:

    https://www.eclipse.org/forums/index.php/t/199193/

    https://lists.fedoraproject.org/archives/list/eclipse-sig@lists.fedoraproject.org/thread/74TAGFTYI42AYYKTOYH2AX6AEO5P2IYX/

    So in our project, once we upgrade our tape, we need to delete the ~/.eclipse file in the meanwhile before starting SMT.

    If not, the bundles.info will not up to date.

    How Do We Do Now

    • Use Equinox/p2

    –The Eclipse platform ships with a default watched directory called dropins. The dropins folder is configured to be scanned during startup, and for changes to be immediately applied to the running system. Thus the dropins folder can be used much like the plugins directory was used in the past.
    –See the detail in http://wiki.eclipse.org/Equinox/p2/Getting_Started

    • Notes

    –By using p2, once we publish our plug-ins and features, any changes to the code must cause version increments. After changing one line of the code, it starts to differ from what people have installed on their machines, which means it is not the same version.

    So we need to update the features and plug-ins bundle version

    Please refer to http://wiki.eclipse.org/Version_Numbering

    http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_version_qualifiers.htm

    How to Debug p2

    • Add following content into
    • /eclipse/eclipseRE/configuration/config.ini file:

    –osgi.debug=/home/devin/p2_debug.option

    • The content in p2_debug.option like below:

    –org.eclipse.equinox.p2.core/debug=true
    –org.eclipse.equinox.p2.core/reconciler=true

  • 相关阅读:
    Get请求使用请求体传递参数会报400异常的问题
    AtCoder Beginner Contest 237 VP补题
    代码随想录1刷—算法性能分析摘记
    QAnything安装纪要
    【玩机】如何修改iPhone充电提示音!最详细简单保姆级教程~ 学费了可替换任意音频做你的专属充电提示音!——后厂村路灯
    Redis 常见面试题
    [游戏开发][虚幻5]新建项目注意事项
    【深度强化学习】Python:OpenAI Gym-CarRacing 自动驾驶 | 提供项目完整代码 | 车道检测功能 | 路径训练功能 | 车辆控制功能
    第07章 文本信息提取
    民族民俗景区3d智慧旅游系统提升游客旅游体验和质量
  • 原文地址:https://blog.csdn.net/devin_xin/article/details/125534325