Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Create aspects with .aj extension
Create aspects with .aj extension [message #19718] Tue, 29 April 2003 17:47 Go to next message
Eclipse UserFriend
Originally posted by: rsteele.etracksolutions.com

I just started looking into AspectJ and AJDT, so pardon me if this is a
silly question, but how can I create an aspect in Eclipse that has an *.aj
extension instead of a *.java extension?

Thanks,
Rich
Re: Create aspects with .aj extension [message #20004 is a reply to message #19718] Thu, 08 May 2003 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adrian_colyer.uk.ibm.com

On Tue, 29 Apr 2003 17:47:29 +0000 (UTC), Richard A. Steele
<rsteele@etracksolutions.com> wrote:

> I just started looking into AspectJ and AJDT, so pardon me if this is a
> silly question, but how can I create an aspect in Eclipse that has an
> *.aj
> extension instead of a *.java extension?


This is a feature we hope to support via preference setting that will
control what file extension the AspectJ Wizard uses when it creates
aspects. Unfortunately that ability has proven surprisingly difficult to
implement and we had to drop the feature temporarily from the last release.
The only way to get a ".aj" extension right now is to create the aspect as
normal (".java" extension) and then go into the resources view, where
refactor->rename gives you the opportunity to change the file extension
(whereas the same action from the package explorer does not).

-- Adrian
Re: Create aspects with .aj extension [message #21064 is a reply to message #20004] Mon, 12 May 2003 17:11 Go to previous message
Eclipse UserFriend
Originally posted by: rsteele.etracksolutions.com

Adrian Colyer wrote:

> This is a feature we hope to support via preference setting that will
> control what file extension the AspectJ Wizard uses when it creates
> aspects.

I saw this is already an open issue after I made the post.

> Unfortunately that ability has proven surprisingly difficult to
> implement

Isn't it funny the world sometimes works that way? :-)

> and we had to drop the feature temporarily from the last release.

Bummer.

> The only way to get a ".aj" extension right now is to create the aspect as
> normal (".java" extension) and then go into the resources view, where
> refactor->rename gives you the opportunity to change the file extension
> (whereas the same action from the package explorer does not).

Yep, I did discover that. It's a pain, but it does seem to work.

There's another way I might solve this: put all of our aspects into a
package with "aspect" in it. Another might be to just allow AspectJ code
and Java code intermingle; however, keeping the two separate for as long
as possible was one of our "risk mitigation" strategies...

Thanks again!

Rich
Re: Create aspects with .aj extension [message #566201 is a reply to message #19718] Thu, 08 May 2003 15:29 Go to previous message
Adrian Colyer is currently offline Adrian ColyerFriend
Messages: 61
Registered: July 2009
Member
On Tue, 29 Apr 2003 17:47:29 +0000 (UTC), Richard A. Steele
<rsteele@etracksolutions.com> wrote:

> I just started looking into AspectJ and AJDT, so pardon me if this is a
> silly question, but how can I create an aspect in Eclipse that has an
> *.aj
> extension instead of a *.java extension?


This is a feature we hope to support via preference setting that will
control what file extension the AspectJ Wizard uses when it creates
aspects. Unfortunately that ability has proven surprisingly difficult to
implement and we had to drop the feature temporarily from the last release.
The only way to get a ".aj" extension right now is to create the aspect as
normal (".java" extension) and then go into the resources view, where
refactor->rename gives you the opportunity to change the file extension
(whereas the same action from the package explorer does not).

-- Adrian
Re: Create aspects with .aj extension [message #566484 is a reply to message #20004] Mon, 12 May 2003 17:11 Go to previous message
Eclipse UserFriend
Originally posted by: rsteele.etracksolutions.com

Adrian Colyer wrote:

> This is a feature we hope to support via preference setting that will
> control what file extension the AspectJ Wizard uses when it creates
> aspects.

I saw this is already an open issue after I made the post.

> Unfortunately that ability has proven surprisingly difficult to
> implement

Isn't it funny the world sometimes works that way? :-)

> and we had to drop the feature temporarily from the last release.

Bummer.

> The only way to get a ".aj" extension right now is to create the aspect as
> normal (".java" extension) and then go into the resources view, where
> refactor->rename gives you the opportunity to change the file extension
> (whereas the same action from the package explorer does not).

Yep, I did discover that. It's a pain, but it does seem to work.

There's another way I might solve this: put all of our aspects into a
package with "aspect" in it. Another might be to just allow AspectJ code
and Java code intermingle; however, keeping the two separate for as long
as possible was one of our "risk mitigation" strategies...

Thanks again!

Rich
Previous Topic:Aspect Libraries
Next Topic:Add-in possible?
Goto Forum:
  


Current Time: Wed Apr 24 19:06:31 GMT 2024

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

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

Back to the top