在Eclipse中导入Eclipse插件源 [英] Importing Eclipse Plugin source in Eclipse
问题描述
我有VersionOne插件的源代码。我想修改代码,因为当我点击崩溃eclipse的插件上的特定按钮时,我得到一个NullPointerException。我想知道在eclipse中需要采取哪些步骤来导入源代码,修改它并让它运行。我已经阅读了如何创建一个新的插件项目,但我从来没有尝试过导入一个插件。插件来源
I have the source code for the VersionOne plugin. I am wanting to modify the code because I am getting a NullPointerException when I click a specific button on the plugin which crashes eclipse. I was wondering what steps I need to take in eclipse to import the source code, modify it, and get it to run. I have read over how to create a new plugin project, but I have never tried importing a plugin before. Plugin Source
推荐答案
一旦导入项目,似乎工作正常,就像任何其他插件一样运行它。
Once you have imported the project and that seems to work fine, just run it like any other plugin.
即:
- 在代码中设置所需的断点
- 点击运行为...
- 在运行对话框中启动一个新的Eclipse实例
- On标签插件确保您导入的插件被选中
- 如果您同时使用该插件,请确保未选择非工作空间
- Set the breakpoints you want in the code
- Click the "Run as..."
- In the run dialog start up a new Eclipse instance
- On the tab "plugins" make sure your imported plugin is selected
- If you are using the plugin at the same time, make sure that the non-workspace is not selected
这篇关于在Eclipse中导入Eclipse插件源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!