Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » A question about adding AspectJ nature to a plugin project programmatically
A question about adding AspectJ nature to a plugin project programmatically [message #65468] Fri, 26 May 2006 14:03 Go to next message
Eclipse UserFriend
Originally posted by: sbederml.gmail.com

Hi,

I use AJDTUtils.addAspectJNature(project) for this, but the problem is
that it asks the user for confirmation and opens the dependencies view
of the plugin. So, if I want to do it for 5 projects programmatically,
it becomes very not convenient.

Is there a way to add AspectJ project to a plugin without UI side effects?

Thanks,
Michael
Re: A question about adding AspectJ nature to a plugin project programmatically [message #65490 is a reply to message #65468] Fri, 26 May 2006 15:02 Go to previous messageGo to next message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
Michael Beder wrote:
> I use AJDTUtils.addAspectJNature(project) for this, but the problem is
> that it asks the user for confirmation and opens the dependencies view
> of the plugin. So, if I want to do it for 5 projects programmatically,
> it becomes very not convenient.
>
> Is there a way to add AspectJ project to a plugin without UI side effects?

Yes, AspectJUIPlugin.convertToAspectJProject(), as long as you are using
a recent dev build of AJDT 1.4 (or the source from CVS HEAD).

The plugin manifest will still be opened in the editor as this is a
side-effect of changing the dependencies, but no user interaction is
involved.

Regards,

Matt.
Re: A question about adding AspectJ nature to a plugin project programmatically [message #65530 is a reply to message #65490] Fri, 26 May 2006 18:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sbederml.gmail.com

It is still not convenient if I use it for adding AspectJ nature to
multiple plugins. Is there a way of doing this without plugin manifest
being open?

Thanks,

Michael

Matt Chapman wrote:
> Michael Beder wrote:
>
>> I use AJDTUtils.addAspectJNature(project) for this, but the problem is
>> that it asks the user for confirmation and opens the dependencies view
>> of the plugin. So, if I want to do it for 5 projects programmatically,
>> it becomes very not convenient.
>>
>> Is there a way to add AspectJ project to a plugin without UI side
>> effects?
>
>
> Yes, AspectJUIPlugin.convertToAspectJProject(), as long as you are using
> a recent dev build of AJDT 1.4 (or the source from CVS HEAD).
>
> The plugin manifest will still be opened in the editor as this is a
> side-effect of changing the dependencies, but no user interaction is
> involved.
>
> Regards,
>
> Matt.
Re: A question about adding AspectJ nature to a plugin project programmatically [message #65572 is a reply to message #65530] Fri, 26 May 2006 21:51 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
Michael Beder wrote:
> It is still not convenient if I use it for adding AspectJ nature to
> multiple plugins. Is there a way of doing this without plugin manifest
> being open?

I agree. There is a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=97080
But that's currently how we add the dependency - through the manifest
editor. So we need another way to add it, bypassing the editor.

Regards,

Matt.
Re: A question about adding AspectJ nature to a plugin project programmatically [message #593971 is a reply to message #65468] Fri, 26 May 2006 15:02 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
Michael Beder wrote:
> I use AJDTUtils.addAspectJNature(project) for this, but the problem is
> that it asks the user for confirmation and opens the dependencies view
> of the plugin. So, if I want to do it for 5 projects programmatically,
> it becomes very not convenient.
>
> Is there a way to add AspectJ project to a plugin without UI side effects?

Yes, AspectJUIPlugin.convertToAspectJProject(), as long as you are using
a recent dev build of AJDT 1.4 (or the source from CVS HEAD).

The plugin manifest will still be opened in the editor as this is a
side-effect of changing the dependencies, but no user interaction is
involved.

Regards,

Matt.
Re: A question about adding AspectJ nature to a plugin project programmatically [message #594008 is a reply to message #65490] Fri, 26 May 2006 18:53 Go to previous message
Eclipse UserFriend
Originally posted by: sbederml.gmail.com

It is still not convenient if I use it for adding AspectJ nature to
multiple plugins. Is there a way of doing this without plugin manifest
being open?

Thanks,

Michael

Matt Chapman wrote:
> Michael Beder wrote:
>
>> I use AJDTUtils.addAspectJNature(project) for this, but the problem is
>> that it asks the user for confirmation and opens the dependencies view
>> of the plugin. So, if I want to do it for 5 projects programmatically,
>> it becomes very not convenient.
>>
>> Is there a way to add AspectJ project to a plugin without UI side
>> effects?
>
>
> Yes, AspectJUIPlugin.convertToAspectJProject(), as long as you are using
> a recent dev build of AJDT 1.4 (or the source from CVS HEAD).
>
> The plugin manifest will still be opened in the editor as this is a
> side-effect of changing the dependencies, but no user interaction is
> involved.
>
> Regards,
>
> Matt.
Re: A question about adding AspectJ nature to a plugin project programmatically [message #594030 is a reply to message #65530] Fri, 26 May 2006 21:51 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
Michael Beder wrote:
> It is still not convenient if I use it for adding AspectJ nature to
> multiple plugins. Is there a way of doing this without plugin manifest
> being open?

I agree. There is a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=97080
But that's currently how we add the dependency - through the manifest
editor. So we need another way to add it, bypassing the editor.

Regards,

Matt.
Previous Topic:AJDT 1.2.1 any new releases planned to fix memory usage
Next Topic:Eclipse Product with export missing classes
Goto Forum:
  


Current Time: Fri Dec 19 04:42:56 GMT 2014

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

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