Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Identifying source thread

Thank you, that's perfect. I didn't think about using reflection to
solve the problem.

On 1/16/06, Vincent Jorrand <vjorrand@xxxxxxxxx> wrote:
> You could use:
>
>  Thread.currentThread().getName();
>
>  assuming that you know the name of the awt event dispatch thread...
>
> ----- Original Message ----
> From: Matt Morten <djcredo@xxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Sent: Monday, January 16, 2006 11:20:57
> Subject: [aspectj-users] Identifying source thread
>
> Hello everybody,
>
> I am creating a graphical Java debugging program using AspectJ. One of
> the features I have completed is the ability to pause the program
> during execution, by calling "wait()" on the "thisJoinPoint.getThis()"
> object.
>
> However, if the user is debugging a Swing application, he / she will
> have the ability to pause execution during a "paintComponent(Graphics
> g)" method (supposing they have extended a Swing component and wish to
> debug that section).
>
> Since this is on the AWT Event Dispatch Thread, pausing execution here
> completely locks up controls to my debugging application!
>
> My quesion is: is there any way in AspectJ to identify which thread a
> certain method is being called upon, so I can explicity say "pausing
> is disabled on this thread"?
>
> Thanks
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top