Olena
Olena

Reputation: 77

Plugin to add features to "build automatically" and "build all" in 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?

Upvotes: 0

Views: 74

Answers (1)

greg-449
greg-449

Reputation: 111142

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>

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".

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

Upvotes: 1

Related Questions