Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
To make some code (even user code) more readable, verify if use an annotation to mark a method (or a block of code, like a Closure if/where appliable) to run its code in the EDT event thread, so something like:
ApplicationContext.queueCallback(new Runnable() {
@Override
public void run()
});
could be
@edt( ...optional parameters )
myStuffCode() { // stuff code ... }
just as idea ... probably not-so-much type saving, but more readable.
And then: verify if as a runtime-only annotation (this should be enough), or even compile annotation ...
Some related info (but for Android) here:
http://stackoverflow.com/questions/5217900/android-annotation-to-run-on-ui-thread