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

Add an Annotation to force method execution on EDT Thread

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 2.5
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            smartini Sandro Martini
            smartini Sandro Martini

            Dates

              Created:
              Updated:

              Slack

                Issue deployment