This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I miss at RP a method similar to Thread.currentThread(). Namely: /** * @return RP.Task hosting code that invoked this * method or <codE>null</codE> if it is not called * from RP.Task body. */ public static RequestProcessor.Task currentTask(); Even further I'd appreciate RequestProcessor.Task enhancement: /** * @return true if it was canceled after dispatching */ public boolean canceled(); or RequestProcessor enhancement: /** * @return true if currently executing RP.Task * was canceled after dispatching. I.e. always false * for non RP threads. */ public static boolean canceled();
UtilitiesAPI 6.3+ supports canceling of tasks and Thread.isInterrupted() can be used to query the state.