Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Getting the full sourceLocation

Hey all,

I'm writing a section of a program that relies heavily on the
joinpoint.getSourceLocation().getFileName() method. Basicly, when I
reach a joinpoint, I wan't to open the source file where the joinpoint
was located.

The problem is, SourceLocation.getFileName() doesn't return the path
to that file, so I can't open it for editing. If I'm lucky, the file
that I wan't to open is located in the current directory, so opening
it is easy. But if it lies in a seperate package, I'm out of luck.

Can anyone see a way around this?

Thanks in advance,
Matt Morten


Back to the top