Add an Annotation to force method execution on EDT Thread
---------------------------------------------------------
Key: PIVOT-849
URL: https://issues.apache.org/jira/browse/PIVOT-849
Project: Pivot
Issue Type: New Feature
Reporter: Sandro Martini
Assignee: Sandro Martini
Priority: Minor
Fix For: 2.1
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() {
// stuff code ...
}
});
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira