{"action":"created","issue":{"url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/issues/410","repository_url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng","labels_url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/issues/410/comments","events_url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/issues/410/events","html_url":"https://github.com/droolsjbpm/jbpm-console-ng/pull/410","id":149382857,"number":410,"title":"Use DefaultErrorCallback where possible","user":{"login":"jhrcek","id":2716069,"avatar_url":"https://avatars.githubusercontent.com/u/2716069?v=3","gravatar_id":"","url":"https://api.github.com/users/jhrcek","html_url":"https://github.com/jhrcek","followers_url":"https://api.github.com/users/jhrcek/followers","following_url":"https://api.github.com/users/jhrcek/following{/other_user}","gists_url":"https://api.github.com/users/jhrcek/gists{/gist_id}","starred_url":"https://api.github.com/users/jhrcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhrcek/subscriptions","organizations_url":"https://api.github.com/users/jhrcek/orgs","repos_url":"https://api.github.com/users/jhrcek/repos","events_url":"https://api.github.com/users/jhrcek/events{/privacy}","received_events_url":"https://api.github.com/users/jhrcek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T08:17:22Z","updated_at":"2016-04-20T00:44:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/pulls/410","html_url":"https://github.com/droolsjbpm/jbpm-console-ng/pull/410","diff_url":"https://github.com/droolsjbpm/jbpm-console-ng/pull/410.diff","patch_url":"https://github.com/droolsjbpm/jbpm-console-ng/pull/410.patch"},"body":"Replace repeated occurrences of the following\r\n\r\n    new ErrorCallback<Message>() {\r\n        @Override\r\n        public boolean error( Message message, Throwable throwable ) {\r\n            ErrorPopup.showMessage( constants.UnexpectedError(throwable.getMessage()) );\r\n            return true;\r\n        }\r\n    }\r\n\r\nwith 'DefaultErrorCallback' from Uberfire extensions which does the same, but with possibly improved error messages.\r\n\r\nI limited the scope of code reformatting only to methods containing UF Caller calls, with the exception of the first 2 files - i reformatted these as a whole (in the beginning of PR).\r\nAlso removed unused/ commented-out methods from the first 2 files.\r\n@cristianonicolai Could you please review?"},"comment":{"url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/issues/comments/212185617","html_url":"https://github.com/droolsjbpm/jbpm-console-ng/pull/410#issuecomment-212185617","issue_url":"https://api.github.com/repos/droolsjbpm/jbpm-console-ng/issues/410","id":212185617,"user":{"login":"cristianonicolai","id":570894,"avatar_url":"https://avatars.githubusercontent.com/u/570894?v=3","gravatar_id":"","url":"https://api.github.com/users/cristianonicolai","html_url":"https://github.com/cristianonicolai","followers_url":"https://api.github.com/users/cristianonicolai/followers","following_url":"https://api.github.com/users/cristianonicolai/following{/other_user}","gists_url":"https://api.github.com/users/cristianonicolai/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianonicolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianonicolai/subscriptions","organizations_url":"https://api.github.com/users/cristianonicolai/orgs","repos_url":"https://api.github.com/users/cristianonicolai/repos","events_url":"https://api.github.com/users/cristianonicolai/events{/privacy}","received_events_url":"https://api.github.com/users/cristianonicolai/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T00:44:14Z","updated_at":"2016-04-20T00:44:14Z","body":"nice, thanks @jhrcek!\r\n\r\n+1"}}