Create aspects with .aj extension [message #19718] |
Tue, 29 April 2003 17:47 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #566484 is a reply to message #20004] |
Mon, 12 May 2003 17:11 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03086 seconds