Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-849

Add an Annotation to force method execution on EDT Thread

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: 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()

      { // 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

        Attachments

          Activity

            People

            • Assignee:
              smartini Sandro Martini
              Reporter:
              smartini Sandro Martini
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: