码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 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

  • 相关阅读:
    Linux中的开发工具(yum,vim,gcc/g++,gdb,Makefile,git)
    分布式数据服务总结v1.0
    灌装机的灌装结构设计及仿真(lunwen+任务书+开题+文综+翻译及原文+答辩PPT+cad图纸+UG模型及运动仿真)
    腾讯云轻量服务器购买优惠,腾讯云轻量应用服务器优惠购买方法
    实时数据同步工具的真正作用和对应应用场景
    FPGA设计时序约束三、设置时钟组set_clock_groups
    《Fundamentals of Power Electronics》——理想变压器基本公式推导
    计算机视觉+人工智能面试笔试总结——机器学习基础概念
    golang中关于map的value类型定义为函数类型时(方法值/方法表达式)的一点点思考
    【C++】线程池(有点乱待补充)
  • 原文地址:https://blog.csdn.net/devin_xin/article/details/125534325
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号