Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » ASPECTJRT_LIB how?
ASPECTJRT_LIB how? [message #64109] Sat, 08 April 2006 21:23 Go to next message
Eclipse UserFriend
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 10:06 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
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 10:06 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
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.
Previous Topic:ASPECTJRT_LIB how?
Next Topic:AJDT 1.3.1 released
Goto Forum:
  


Current Time: Fri Nov 28 01:45:59 GMT 2014

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

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