启动Eclipse插件模板 [英] Launching Eclipse plug in template
问题描述
我通过选择eclipse提供的插件模板创建了一个Eclipse插件项目。然后我运行插件,打开另一个eclipse,并在那里执行插件。为什么?是使用eclipse的应用程序类创建工作台的插件吗?
I created a Eclipse plug-in project by selecting a plug-in template provides by the eclipse. Then i ran the plug-in it opened another eclipse and the plug-in executed there.Why so? is the plugin taking eclipse's application class to create workbench?
推荐答案
作为如果你想在你的主工作区,您将不得不导出插件并将其安装在主Eclipse中。那个@ greg-449在他的答案。您可以这样做。
As an elaboration of "If you want to run the plugin in your main workspace you will have to export the plugin and install it in your main Eclipse." that @greg-449 had in his answer. You can do this.
从文件菜单中,选择导出..然后选择可部署插件和片段
向导。
From the File menu, choose Export... and then choose the Deployable plug-ins and fragments
wizard.
- 选择插件要导出。
- 作为目的地,选择
安装到主机
- 按完成
由于您可能没有对插件进行签名,但您确信信任,请对警告说是:您正在安装包含未签名内容的软件。
As you are probably not signing your plug-in, but you do trust it, say Yes to the Warning: you are installing software that contains unsigned content.
在提示启用插件时重新启动Eclipse。
Restart Eclipse when prompted to to enable the plug-ins.
您现在应该可以看到新的插件。为了做这个例子,我使用了新的插件向导并选择了Hello,World Command模板。下面的箭头指向插件所做的UI中的贡献。
You should now see your new plug-ins. To make this example I used the new Plug-in wizard and choose the "Hello, World Command" template. The arrows below point to the contributions in the UI that the plug-in made.
这篇关于启动Eclipse插件模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!