如何编辑现有的eclipse插件

如何编辑现有的eclipse插件

本文介绍了如何编辑现有的eclipse插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个开源插件,有一个许可证,允许我修改它,从这里:(源代码部分)。我想修改这个插件,并在我的本地eclipse上使用它。


  1. 这是否可以给我的jar文件?还是需要更多?

  2. 我应该怎么做才能在eclipse中(通过Eclipse插件开发视图显示)?

  3. 我安装这个插件来验证它是否符合我的要求?


解决方案

  1. 将插件JAR下载到某个地方。

  2. 在Eclipse中,文件 - >导入 - >插件和片段

  3. 选择目录您保存它,选择项目与源文件夹,下一步

  4. 添加插件,完成



你现在有一个代表该插件的Eclipse项目。进行更改,然后:


  1. 文件 - >导出 - >可部署的插件和片段

  2. 选择插件,选择要保存的地方

我不知道在一个您在IDE的实例中是live的插件,所以我想您必须将其安装到Eclipse的副本,方法是将其放在plugins目录中,然后重新启动。


I have an open source plugin, with a license that allows me to modify it, from here: http://www.jcraft.com/eclipse-jcterm/ (under the source section). I want to modify this plugin and use it on my local eclipse.

  1. Is this even possible given the jar file that I have? Or do I need more?
  2. What must I do to bring this up in eclipse (via the Eclipse plugin development view obviously)?
  3. How can I install this plugin to verify it works as I want?
解决方案
  1. Download the plug-in JAR to somewhere.
  2. In Eclipse, File->Import->Plug-ins and Fragments
  3. Select the directory you saved it in, select 'Projects with source folders', Next
  4. Add the plugin, Finish

You now have an Eclipse project representing the plugin. Make your changes, and then:

  1. File->Export->Deployable plug-ins and fragments
  2. Select the plug-in, select a place to save it

I don't know of a way to do development on a plug-in that is 'live' in your instance of the IDE, so I think you'd have to install it to your copy of Eclipse by dropping it in the plugins directory, then restart.

这篇关于如何编辑现有的eclipse插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 17:28