插件添加功能到"自动&QUOT建设;和"建立所有"在日食 [英] Plugin to add features to "build automatically" and "build all" in eclipse

查看:158
本文介绍了插件添加功能到"自动&QUOT建设;和"建立所有"在日食的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用Java编写一个插件,会添加一些自定义功能的自动构建和建立所有在Eclipse中选择。我从哪里可以得到有关功能的更多信息来建立在Eclipse和如何使用插件修改?

I need to write a plugin in java that would add some custom features to the "build automatically" and "build all" options in eclipse. Where could I get more information about the functionality of builds in eclipse and how to modify it with plugins?

推荐答案

您使用此增量项目构建器。使用 org.eclipse.core.resources.builders 扩展点来定义你的建设者。

You use an incremental project builder for this. Use the org.eclipse.core.resources.builders extension point to define your builder.

一个例子生成器(如文档中所示):

An example builder (as shown in the documentation):

<extension id="coolbuilder" name="Cool Builder"
           point="org.eclipse.core.resources.builders"> 
  <builder hasNature="false"> 
     <run class="com.xyz.builders.Cool"> 
        <parameter name="optimize" value="true"/> 
        <parameter name="comment" value="Produced by the Cool Builder"/> 
     </run> 
  </builder> 
</extension>

如果该扩展是在一个插件ID为com.xyz.coolplugin的定义,这个生成器的全名是com.xyz.coolplugin.coolbuilder。

If this extension was defined in a plug-in with id "com.xyz.coolplugin", the fully qualified name of this builder would be "com.xyz.coolplugin.coolbuilder".

有关详细信息,请参阅<一个href=\"http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2FresAdv_builders.htm\"相对=nofollow>增量的项目建设者的Eclipse帮助部分。

For more information see the Incremental Project Builders section of the Eclipse help.

这篇关于插件添加功能到&QUOT;自动&QUOT建设;和&QUOT;建立所有&QUOT;在日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆