A question about adding AspectJ nature to a plugin project programmatically [message #65468] |
Fri, 26 May 2006 10:03  |
Eclipse User |
|
|
|
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 #593971 is a reply to message #65468] |
Fri, 26 May 2006 11:02  |
Eclipse User |
|
|
|
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 14:53  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04863 seconds