Some related info (but for Android) here: http://stackoverflow.com/questions/5217900/android-annotation-to-run-on-ui-thread
Bye 2012/4/2 Sandro Martini <sandro.mart...@gmail.com>: > Hi all, > for the 2.1 release I'm start to think if (to make some code, even > user code, more readable) using an annotation we could try to mark a > method to run its code in the EDT event thread, so something like: > > ApplicationContext.queueCallback(new Runnable() { > @Override > public void run() { > // stuff code ... > } > }); > > > could be > > @edt( ...optional parameters ) > myStuffCode() { > // stuff code ... > } > > just as idea ... probably not-so-much type saving, but more readable. > > > And then: runtime-only annotation (this should be enough), or even > compile annotation ? > > Comments ? > > Bye, > Sandro