Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Intercepting Swing events

Dear Maria,,
As you know... events do not get called by any body.. they are executed without explicit call..
for this reason,, you can use  "execution" instead of "call" as follows:

pointcut somosNos() : (    execution     (* javax.swing.JComponent.*(..) ));

this should work fine,,
regards,
-------------
Khalid
----- Original Message ----- From: "Ze maria" <zemariamm@xxxxxxxxx>
To: "Aspectj Mailing list" <aspectj-users@xxxxxxxxxxx>
Sent: Thursday, May 26, 2005 4:32 AM
Subject: [aspectj-users] Intercepting Swing events


Hi,
I'm trying to catch swing events, I'm using AspectJ Eclipse Plugin,
but i can't catch any method from all java api classes, for example ,
this catch's nothing:

public aspect campeao {

pointcut somosNos() : (call(* javax.swing.JComponent.*(..) ));

after() : somosNos() {
System.out.println("This should appear");
}
}
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top