{"action":"created","comment":{"url":"https://api.github.com/repos/TestRoots/watchdog/pulls/comments/23625088","id":23625088,"diff_hunk":"@@ -20,29 +20,30 @@\n  */\n public class StartupUIThread implements Runnable {\n \n-\tprivate final StartUpHandler startUpHandler;\n-\n \t/** The preferences. */\n \tprivate Preferences preferences;\n \n+\t/** Whether user has cancelled first registration. */\n+\tprivate boolean userRegistrationCancelled = false;\n+\n \t/** Constructor. */\n-\tpublic StartupUIThread(StartUpHandler startUpHandler,\n-\t\t\tPreferences preferences) {\n-\t\tthis.startUpHandler = startUpHandler;\n+\tpublic StartupUIThread(Preferences preferences) {\n \t\tthis.preferences = preferences;\n \t}\n \n \t@Override\n \tpublic void run() {\n \t\t// the execution strategy is:\n-\t\t// (1) check user registration (2) wait until 1 is complete, or 1\n-\t\t// can be skipped (3) show workspace registration\n+\t\t// (1) check user registration (2) wait until user+project registration\n+\t\t// is completed, or 1 can be skipped (3) if user is already registered,\n+\t\t// check for workspace registration\n \t\tif (WatchDogUtils.isEmpty(preferences.getUserid())) {\n \t\t\tdisplayUserRegistrationWizard();\n \t\t}\n \n-\t\tif (!WatchDogUtils.isEmpty(preferences.getUserid())) {\n-\t\t\t// In case the user aborted the preference dialog with cancel,\n+\t\tif (!WatchDogUtils.isEmpty(preferences.getUserid())","path":"WatchDogEclipsePlugin/WatchDog/src/nl/tudelft/watchdog/ui/handlers/StartupUIThread.java","position":34,"original_position":34,"commit_id":"cba78b11277fb77c9bf4b69cc9e122096807a6b3","original_commit_id":"3368ecc3d2ab407d8dc471b6adc515f10e18fe58","user":{"login":"Inventitech","id":334256,"avatar_url":"https://avatars.githubusercontent.com/u/334256?v=3","gravatar_id":"","url":"https://api.github.com/users/Inventitech","html_url":"https://github.com/Inventitech","followers_url":"https://api.github.com/users/Inventitech/followers","following_url":"https://api.github.com/users/Inventitech/following{/other_user}","gists_url":"https://api.github.com/users/Inventitech/gists{/gist_id}","starred_url":"https://api.github.com/users/Inventitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Inventitech/subscriptions","organizations_url":"https://api.github.com/users/Inventitech/orgs","repos_url":"https://api.github.com/users/Inventitech/repos","events_url":"https://api.github.com/users/Inventitech/events{/privacy}","received_events_url":"https://api.github.com/users/Inventitech/received_events","type":"User","site_admin":false},"body":"No.","created_at":"2015-01-27T17:23:29Z","updated_at":"2015-01-27T17:23:29Z","html_url":"https://github.com/TestRoots/watchdog/pull/150#discussion_r23625088","pull_request_url":"https://api.github.com/repos/TestRoots/watchdog/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/TestRoots/watchdog/pulls/comments/23625088"},"html":{"href":"https://github.com/TestRoots/watchdog/pull/150#discussion_r23625088"},"pull_request":{"href":"https://api.github.com/repos/TestRoots/watchdog/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/TestRoots/watchdog/pulls/150","id":28058820,"html_url":"https://github.com/TestRoots/watchdog/pull/150","diff_url":"https://github.com/TestRoots/watchdog/pull/150.diff","patch_url":"https://github.com/TestRoots/watchdog/pull/150.patch","issue_url":"https://api.github.com/repos/TestRoots/watchdog/issues/150","number":150,"state":"open","locked":false,"title":"Wizard refactoring","user":{"login":"levaja","id":5550526,"avatar_url":"https://avatars.githubusercontent.com/u/5550526?v=3","gravatar_id":"","url":"https://api.github.com/users/levaja","html_url":"https://github.com/levaja","followers_url":"https://api.github.com/users/levaja/followers","following_url":"https://api.github.com/users/levaja/following{/other_user}","gists_url":"https://api.github.com/users/levaja/gists{/gist_id}","starred_url":"https://api.github.com/users/levaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levaja/subscriptions","organizations_url":"https://api.github.com/users/levaja/orgs","repos_url":"https://api.github.com/users/levaja/repos","events_url":"https://api.github.com/users/levaja/events{/privacy}","received_events_url":"https://api.github.com/users/levaja/received_events","type":"User","site_admin":false},"body":"This PR address issue #147 . User registration wizard is refactored in order to enable faster user+project registration.","created_at":"2015-01-26T20:47:17Z","updated_at":"2015-01-27T17:23:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e971ac64a20a25fcd3bd02e182442eb4a3ec745","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TestRoots/watchdog/pulls/150/commits","review_comments_url":"https://api.github.com/repos/TestRoots/watchdog/pulls/150/comments","review_comment_url":"https://api.github.com/repos/TestRoots/watchdog/pulls/comments/{number}","comments_url":"https://api.github.com/repos/TestRoots/watchdog/issues/150/comments","statuses_url":"https://api.github.com/repos/TestRoots/watchdog/statuses/cba78b11277fb77c9bf4b69cc9e122096807a6b3","head":{"label":"levaja:WizardRefactoring","ref":"WizardRefactoring","sha":"cba78b11277fb77c9bf4b69cc9e122096807a6b3","user":{"login":"levaja","id":5550526,"avatar_url":"https://avatars.githubusercontent.com/u/5550526?v=3","gravatar_id":"","url":"https://api.github.com/users/levaja","html_url":"https://github.com/levaja","followers_url":"https://api.github.com/users/levaja/followers","following_url":"https://api.github.com/users/levaja/following{/other_user}","gists_url":"https://api.github.com/users/levaja/gists{/gist_id}","starred_url":"https://api.github.com/users/levaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levaja/subscriptions","organizations_url":"https://api.github.com/users/levaja/orgs","repos_url":"https://api.github.com/users/levaja/repos","events_url":"https://api.github.com/users/levaja/events{/privacy}","received_events_url":"https://api.github.com/users/levaja/received_events","type":"User","site_admin":false},"repo":{"id":28183870,"name":"watchdog","full_name":"levaja/watchdog","owner":{"login":"levaja","id":5550526,"avatar_url":"https://avatars.githubusercontent.com/u/5550526?v=3","gravatar_id":"","url":"https://api.github.com/users/levaja","html_url":"https://github.com/levaja","followers_url":"https://api.github.com/users/levaja/followers","following_url":"https://api.github.com/users/levaja/following{/other_user}","gists_url":"https://api.github.com/users/levaja/gists{/gist_id}","starred_url":"https://api.github.com/users/levaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levaja/subscriptions","organizations_url":"https://api.github.com/users/levaja/orgs","repos_url":"https://api.github.com/users/levaja/repos","events_url":"https://api.github.com/users/levaja/events{/privacy}","received_events_url":"https://api.github.com/users/levaja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/levaja/watchdog","description":"Eclipse plugin for monitoring how Java applications are developed and tested","fork":true,"url":"https://api.github.com/repos/levaja/watchdog","forks_url":"https://api.github.com/repos/levaja/watchdog/forks","keys_url":"https://api.github.com/repos/levaja/watchdog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/levaja/watchdog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/levaja/watchdog/teams","hooks_url":"https://api.github.com/repos/levaja/watchdog/hooks","issue_events_url":"https://api.github.com/repos/levaja/watchdog/issues/events{/number}","events_url":"https://api.github.com/repos/levaja/watchdog/events","assignees_url":"https://api.github.com/repos/levaja/watchdog/assignees{/user}","branches_url":"https://api.github.com/repos/levaja/watchdog/branches{/branch}","tags_url":"https://api.github.com/repos/levaja/watchdog/tags","blobs_url":"https://api.github.com/repos/levaja/watchdog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/levaja/watchdog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/levaja/watchdog/git/refs{/sha}","trees_url":"https://api.github.com/repos/levaja/watchdog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/levaja/watchdog/statuses/{sha}","languages_url":"https://api.github.com/repos/levaja/watchdog/languages","stargazers_url":"https://api.github.com/repos/levaja/watchdog/stargazers","contributors_url":"https://api.github.com/repos/levaja/watchdog/contributors","subscribers_url":"https://api.github.com/repos/levaja/watchdog/subscribers","subscription_url":"https://api.github.com/repos/levaja/watchdog/subscription","commits_url":"https://api.github.com/repos/levaja/watchdog/commits{/sha}","git_commits_url":"https://api.github.com/repos/levaja/watchdog/git/commits{/sha}","comments_url":"https://api.github.com/repos/levaja/watchdog/comments{/number}","issue_comment_url":"https://api.github.com/repos/levaja/watchdog/issues/comments/{number}","contents_url":"https://api.github.com/repos/levaja/watchdog/contents/{+path}","compare_url":"https://api.github.com/repos/levaja/watchdog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/levaja/watchdog/merges","archive_url":"https://api.github.com/repos/levaja/watchdog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/levaja/watchdog/downloads","issues_url":"https://api.github.com/repos/levaja/watchdog/issues{/number}","pulls_url":"https://api.github.com/repos/levaja/watchdog/pulls{/number}","milestones_url":"https://api.github.com/repos/levaja/watchdog/milestones{/number}","notifications_url":"https://api.github.com/repos/levaja/watchdog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/levaja/watchdog/labels{/name}","releases_url":"https://api.github.com/repos/levaja/watchdog/releases{/id}","created_at":"2014-12-18T13:07:10Z","updated_at":"2015-01-20T13:18:43Z","pushed_at":"2015-01-27T15:59:53Z","git_url":"git://github.com/levaja/watchdog.git","ssh_url":"git@github.com:levaja/watchdog.git","clone_url":"https://github.com/levaja/watchdog.git","svn_url":"https://github.com/levaja/watchdog","homepage":"http://www.testroots.org","size":23323,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TestRoots:master","ref":"master","sha":"a377a24f505be8684cd3a292f56e20095ff3f52f","user":{"login":"TestRoots","id":6726508,"avatar_url":"https://avatars.githubusercontent.com/u/6726508?v=3","gravatar_id":"","url":"https://api.github.com/users/TestRoots","html_url":"https://github.com/TestRoots","followers_url":"https://api.github.com/users/TestRoots/followers","following_url":"https://api.github.com/users/TestRoots/following{/other_user}","gists_url":"https://api.github.com/users/TestRoots/gists{/gist_id}","starred_url":"https://api.github.com/users/TestRoots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TestRoots/subscriptions","organizations_url":"https://api.github.com/users/TestRoots/orgs","repos_url":"https://api.github.com/users/TestRoots/repos","events_url":"https://api.github.com/users/TestRoots/events{/privacy}","received_events_url":"https://api.github.com/users/TestRoots/received_events","type":"Organization","site_admin":false},"repo":{"id":16944185,"name":"watchdog","full_name":"TestRoots/watchdog","owner":{"login":"TestRoots","id":6726508,"avatar_url":"https://avatars.githubusercontent.com/u/6726508?v=3","gravatar_id":"","url":"https://api.github.com/users/TestRoots","html_url":"https://github.com/TestRoots","followers_url":"https://api.github.com/users/TestRoots/followers","following_url":"https://api.github.com/users/TestRoots/following{/other_user}","gists_url":"https://api.github.com/users/TestRoots/gists{/gist_id}","starred_url":"https://api.github.com/users/TestRoots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TestRoots/subscriptions","organizations_url":"https://api.github.com/users/TestRoots/orgs","repos_url":"https://api.github.com/users/TestRoots/repos","events_url":"https://api.github.com/users/TestRoots/events{/privacy}","received_events_url":"https://api.github.com/users/TestRoots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TestRoots/watchdog","description":"Eclipse plugin for monitoring how Java applications are developed and tested","fork":true,"url":"https://api.github.com/repos/TestRoots/watchdog","forks_url":"https://api.github.com/repos/TestRoots/watchdog/forks","keys_url":"https://api.github.com/repos/TestRoots/watchdog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TestRoots/watchdog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TestRoots/watchdog/teams","hooks_url":"https://api.github.com/repos/TestRoots/watchdog/hooks","issue_events_url":"https://api.github.com/repos/TestRoots/watchdog/issues/events{/number}","events_url":"https://api.github.com/repos/TestRoots/watchdog/events","assignees_url":"https://api.github.com/repos/TestRoots/watchdog/assignees{/user}","branches_url":"https://api.github.com/repos/TestRoots/watchdog/branches{/branch}","tags_url":"https://api.github.com/repos/TestRoots/watchdog/tags","blobs_url":"https://api.github.com/repos/TestRoots/watchdog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TestRoots/watchdog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TestRoots/watchdog/git/refs{/sha}","trees_url":"https://api.github.com/repos/TestRoots/watchdog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TestRoots/watchdog/statuses/{sha}","languages_url":"https://api.github.com/repos/TestRoots/watchdog/languages","stargazers_url":"https://api.github.com/repos/TestRoots/watchdog/stargazers","contributors_url":"https://api.github.com/repos/TestRoots/watchdog/contributors","subscribers_url":"https://api.github.com/repos/TestRoots/watchdog/subscribers","subscription_url":"https://api.github.com/repos/TestRoots/watchdog/subscription","commits_url":"https://api.github.com/repos/TestRoots/watchdog/commits{/sha}","git_commits_url":"https://api.github.com/repos/TestRoots/watchdog/git/commits{/sha}","comments_url":"https://api.github.com/repos/TestRoots/watchdog/comments{/number}","issue_comment_url":"https://api.github.com/repos/TestRoots/watchdog/issues/comments/{number}","contents_url":"https://api.github.com/repos/TestRoots/watchdog/contents/{+path}","compare_url":"https://api.github.com/repos/TestRoots/watchdog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TestRoots/watchdog/merges","archive_url":"https://api.github.com/repos/TestRoots/watchdog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TestRoots/watchdog/downloads","issues_url":"https://api.github.com/repos/TestRoots/watchdog/issues{/number}","pulls_url":"https://api.github.com/repos/TestRoots/watchdog/pulls{/number}","milestones_url":"https://api.github.com/repos/TestRoots/watchdog/milestones{/number}","notifications_url":"https://api.github.com/repos/TestRoots/watchdog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TestRoots/watchdog/labels{/name}","releases_url":"https://api.github.com/repos/TestRoots/watchdog/releases{/id}","created_at":"2014-02-18T09:51:36Z","updated_at":"2015-01-20T13:12:09Z","pushed_at":"2015-01-21T09:48:32Z","git_url":"git://github.com/TestRoots/watchdog.git","ssh_url":"git@github.com:TestRoots/watchdog.git","clone_url":"https://github.com/TestRoots/watchdog.git","svn_url":"https://github.com/TestRoots/watchdog","homepage":"http://www.testroots.org","size":37565,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TestRoots/watchdog/pulls/150"},"html":{"href":"https://github.com/TestRoots/watchdog/pull/150"},"issue":{"href":"https://api.github.com/repos/TestRoots/watchdog/issues/150"},"comments":{"href":"https://api.github.com/repos/TestRoots/watchdog/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/TestRoots/watchdog/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/TestRoots/watchdog/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/TestRoots/watchdog/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/TestRoots/watchdog/statuses/cba78b11277fb77c9bf4b69cc9e122096807a6b3"}}}}