pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIVOT-849) Add an Annotation to force method execution on EDT Thread
Date Tue, 03 Apr 2012 11:22:24 GMT
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() {
            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:

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


View raw message