Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Extending JavaProject?
Extending JavaProject? [message #157627] Thu, 06 May 2004 16:16 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
Re: Extending JavaProject? [message #157753 is a reply to message #157646] Fri, 07 May 2004 10:18 Go to previous message
Eclipse UserFriend
Hi Dan,

I am not familiar with aspecj approach but I will look into it. So far I
have seen the approach where only helper is used [1] as well as both
helper and a composition with java project [2]. It would be very useful
for all of us if someone "eclipse design proficient" can comment on the
various approaches.

All the best.

[1] http://tinyurl.com/ysdkf
[2] http://tinyurl.com/3blfr
Previous Topic:Is there a way to import many eclipse projects at once?
Next Topic:How to set up "local" CVS?
Goto Forum:
  


Current Time: Thu May 15 13:20:12 EDT 2025

Powered by FUDForum. Page generated in 0.05319 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top