|
Re: How to add a builder? [message #61512 is a reply to message #60553] |
Tue, 03 June 2003 21:56 |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
There isn't a really good answer for this. Builders are usually added
by project natures, but then the question arises of when to add natures.
This usually happens at project creation time (it's added by the
wizard that creates the project). Your only other alternative is to add
a context menu action or property page that allows the user to add your
nature/builder to a given project. This is what the external tool
builder folks did. If you go with a context menu action, you can
register another context menu action for removing the nature, and that
removal action can be made to appear only when your nature is installed.
Look at the docs on popupMenu actions for more details on this.
Our proposed better answer for this was a mechanism called
"capabilities" that would provide a general way of adding extra features
such as builders to a project, and for associating an appropriate wizard
for doing so. We haven't had the cycles to get this implemented
properly, but there is a bug report that you can add yourself to if you
want to keep track of progress:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36959
--
Binyan wrote:
> I have an xml builder that generates updates other files based on the
> contents of some xml files. The builder is in the first stages of working,
> but what is the preferred way of adding the builder to a project. I don't
> want to add it to all projects and adding at the beginning does not seem
> right seem the type of xml files might never be created. The "External
> Tools Builders" panel for the project seems like the right place, but how do
> I add my builder to the list that the "New..." but creates?
>
> At present I have just inserted the builder into the .classpath file and
> that works fine, but I would like to share the plugin and have people just
> add the builder to projects that need it.
>
> Thx.
>
> Binyan
>
>
|
|
|
Re: How to add a builder? [message #66234 is a reply to message #60553] |
Sat, 07 June 2003 09:22 |
Eclipse User |
|
|
|
Originally posted by: genadyb.inter.net.il
You probably should nave a special nature for your project and an
associated builder.
You can look at the sources of the rmi plugin at
http://sourceforge.net/project/showfiles.php?group_id=53485& amp;release_id=144936
There I have a builder which operates only on .class files that
implement remote interface. when it finds such class it invokes the rmi
compiler.
if you have specific questions you can email me directly
[rmi (at) genady (dot) org]
Genady
Binyan wrote:
> I have an xml builder that generates updates other files based on the
> contents of some xml files. The builder is in the first stages of working,
> but what is the preferred way of adding the builder to a project. I don't
> want to add it to all projects and adding at the beginning does not seem
> right seem the type of xml files might never be created. The "External
> Tools Builders" panel for the project seems like the right place, but how do
> I add my builder to the list that the "New..." but creates?
>
> At present I have just inserted the builder into the .classpath file and
> that works fine, but I would like to share the plugin and have people just
> add the builder to projects that need it.
>
> Thx.
>
> Binyan
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03165 seconds