{"action":"created","issue":{"url":"https://api.github.com/repos/JMRI/JMRI/issues/1032","repository_url":"https://api.github.com/repos/JMRI/JMRI","labels_url":"https://api.github.com/repos/JMRI/JMRI/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/JMRI/JMRI/issues/1032/comments","events_url":"https://api.github.com/repos/JMRI/JMRI/issues/1032/events","html_url":"https://github.com/JMRI/JMRI/pull/1032","id":143558553,"number":1032,"title":"Support for simplified threading","user":{"login":"bobjacobsen","id":2774117,"avatar_url":"https://avatars.githubusercontent.com/u/2774117?v=3","gravatar_id":"","url":"https://api.github.com/users/bobjacobsen","html_url":"https://github.com/bobjacobsen","followers_url":"https://api.github.com/users/bobjacobsen/followers","following_url":"https://api.github.com/users/bobjacobsen/following{/other_user}","gists_url":"https://api.github.com/users/bobjacobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bobjacobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobjacobsen/subscriptions","organizations_url":"https://api.github.com/users/bobjacobsen/orgs","repos_url":"https://api.github.com/users/bobjacobsen/repos","events_url":"https://api.github.com/users/bobjacobsen/events{/privacy}","received_events_url":"https://api.github.com/users/bobjacobsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-25T18:13:05Z","updated_at":"2016-03-25T18:29:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JMRI/JMRI/pulls/1032","html_url":"https://github.com/JMRI/JMRI/pull/1032","diff_url":"https://github.com/JMRI/JMRI/pull/1032.diff","patch_url":"https://github.com/JMRI/JMRI/pull/1032.patch"},"body":"This is the initial part of some work on threading in response to issue #727 (and threading problems in other places). It's a new jmri.util.ThreadingUtil class to simplify moving to the right thread, along with a doc update and tests.\r\n\r\nThe additional changes to e.g. the Warrant code are not in this PR, and will come later."},"comment":{"url":"https://api.github.com/repos/JMRI/JMRI/issues/comments/201406449","html_url":"https://github.com/JMRI/JMRI/pull/1032#issuecomment-201406449","issue_url":"https://api.github.com/repos/JMRI/JMRI/issues/1032","id":201406449,"user":{"login":"rhwood","id":297232,"avatar_url":"https://avatars.githubusercontent.com/u/297232?v=3","gravatar_id":"","url":"https://api.github.com/users/rhwood","html_url":"https://github.com/rhwood","followers_url":"https://api.github.com/users/rhwood/followers","following_url":"https://api.github.com/users/rhwood/following{/other_user}","gists_url":"https://api.github.com/users/rhwood/gists{/gist_id}","starred_url":"https://api.github.com/users/rhwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhwood/subscriptions","organizations_url":"https://api.github.com/users/rhwood/orgs","repos_url":"https://api.github.com/users/rhwood/repos","events_url":"https://api.github.com/users/rhwood/events{/privacy}","received_events_url":"https://api.github.com/users/rhwood/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T18:29:16Z","updated_at":"2016-03-25T18:29:16Z","body":"Why is this better than using ```SwingUtilities.invokeLater(...)``` and ```SwingUtilities.invokeAndWait(...)``` directly?\r\n\r\nI ask this because there are lots of examples of, and discussion of, using SwingUtilities available on sites like StackOverflow, but this hides all that, and adds a layer of indirection that really doesn't seem to buy us anything other than increased JMRI-specific complexity."}}