Extending JavaProject? [message #157627] |
Thu, 06 May 2004 16:16  |
Eclipse User |
|
|
|
Hi,
What is the most suitable design approach when creating a project model
that adds additional properties to a java project model? This project
model is a java project itself. However, it has many project specific
additonal properties, it's own builders, a nature and so on.
Is it recommended to have a composition with JavaProject and thus IProject
or have some ProjectHelper class with static utility methods that deals
with project specific extra "stuff"? Any references are appreciated.
All the best.
|
|
|
Re: Extending JavaProject? [message #157646 is a reply to message #157627] |
Thu, 06 May 2004 16:38   |
Eclipse User |
|
|
|
Hi Vladimir,
For my JPlates plugin, I followed the example set by the AspectJ plugin,
which you can find at the eclipse site.
The idea is to have an Action that adds an additional Nature to a project,
but only if that project already has the Java Nature. And, of course, an
Action to remove the new Nature and its associated resources.
Getting this to work is tricky, so I suggest looking at the code in the
AspectJ plugin to get an idea of what to do.
All the best,
Dan Jacobs
Vladimir wrote:
> Hi,
>
> What is the most suitable design approach when creating a project model
> that adds additional properties to a java project model? This project
> model is a java project itself. However, it has many project specific
> additonal properties, it's own builders, a nature and so on.
>
> Is it recommended to have a composition with JavaProject and thus IProject
> or have some ProjectHelper class with static utility methods that deals
> with project specific extra "stuff"? Any references are appreciated.
>
> All the best.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05319 seconds