[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] eclipse automatic imports

Hi,

This is not a known bug, it should be working. I pasted your example
line into a test program and it seemed to work ok for me. Make sure
the cursor is somewhere within "Main" when selecting Add Imports. You
could also try the Organize Imports action from anywhere in the file.
If you still can't get it working, please raise a bug with a complete
test file, via the link here:

http://www.eclipse.org/ajdt/bugs.php

Please also mention the version of AJDT and the version of Eclipse you
are using.

Regards,

Matt.

On 08/06/06, Wim Deblauwe <wim.deblauwe@xxxxxxxxx> wrote:
Hi,

Eclipse can add imports for classes you are referencing (Context menu >
source > add imports), but this does not seem to work in pointcut
statements. In this a known bug?

E.g.: pointcut programStartup():execution(void Main.startApplication( String
) );

Eclipse will mark "Main" as unknown, and the add imports command will not
import the correct type.

It seems to work in after-returning advice however.

regards,

Wim

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users