ASPECTJRT_LIB how? [message #64109] |
Sat, 08 April 2006 17:23  |
Eclipse User |
|
|
|
Originally posted by: ajenkins.infocomp.com
Hi All,
I was wondering if anyone could point me to the file that declares
ASPECTJRT_LIB library and adds it to the projects classpath when the
aspect nature is invoked, I'm having a difficult time finding it in the
source. I'm trying to do something similar for an XMLBeans plugin I
wrote...currently I have to add the library manually, it would be nice if
it added/removed it when the nature was added or removed (like AJDT does).
Can anyone offer any pointers here.
Cheers
Adam
|
|
|
Re: ASPECTJRT_LIB how? [message #64128 is a reply to message #64109] |
Mon, 10 April 2006 06:06  |
Eclipse User |
|
|
|
On Sat, 08 Apr 2006 21:23:17 +0000, Adam Jenkins wrote:
> I was wondering if anyone could point me to the file that declares
> ASPECTJRT_LIB library and adds it to the projects classpath when the
> aspect nature is invoked, I'm having a difficult time finding it in the
> source. I'm trying to do something similar for an XMLBeans plugin I
> wrote...currently I have to add the library manually, it would be nice if
> it added/removed it when the nature was added or removed (like AJDT does).
Sure, the ASPECTJRT_LIB variable is defined in plugin.xml of
org.eclipse.ajdt.core:
<extension point="org.eclipse.jdt.core.classpathVariableInitializer">
<classpathVariableInitializer variable="ASPECTJRT_LIB"
class="org.eclipse.ajdt.internal.core.AspectJRTInitializer"/ >
</extension>
The referenced class initialises it. Then the methods
AspectJUIPlugin.addAjrtToBuildPath() and removeAjrtFromBuildPath() in the
org.eclipse.ajdt.ui plugin add and remove the entry to a project's
classpath.
Regards,
Matt.
|
|
|
Re: ASPECTJRT_LIB how? [message #593256 is a reply to message #64109] |
Mon, 10 April 2006 06:06  |
Eclipse User |
|
|
|
On Sat, 08 Apr 2006 21:23:17 +0000, Adam Jenkins wrote:
> I was wondering if anyone could point me to the file that declares
> ASPECTJRT_LIB library and adds it to the projects classpath when the
> aspect nature is invoked, I'm having a difficult time finding it in the
> source. I'm trying to do something similar for an XMLBeans plugin I
> wrote...currently I have to add the library manually, it would be nice if
> it added/removed it when the nature was added or removed (like AJDT does).
Sure, the ASPECTJRT_LIB variable is defined in plugin.xml of
org.eclipse.ajdt.core:
<extension point="org.eclipse.jdt.core.classpathVariableInitializer">
<classpathVariableInitializer variable="ASPECTJRT_LIB"
class="org.eclipse.ajdt.internal.core.AspectJRTInitializer"/ >
</extension>
The referenced class initialises it. Then the methods
AspectJUIPlugin.addAjrtToBuildPath() and removeAjrtFromBuildPath() in the
org.eclipse.ajdt.ui plugin add and remove the entry to a project's
classpath.
Regards,
Matt.
|
|
|
Powered by
FUDForum. Page generated in 0.25607 seconds