pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Martini <sandro.mart...@gmail.com>
Subject Annotation to force method execution on EDT Thread, for Pivot 2.1
Date Mon, 02 Apr 2012 13:05:44 GMT
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() {
            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 ?


View raw message