{"action":"created","comment":{"url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/comments/172339522","pull_request_review_id":101340401,"id":172339522,"diff_hunk":"@@ -431,6 +438,82 @@ public void handle(TouchEvent event) {\n \t\tthis.mainContent.addRow(2, moduleBox);\n \t}\n \n+\t/**\n+\t * Handles when the user selects the new profile button on the main screen.\n+\t */\n+\tpublic void createNewProfile() {\n+\t\tMainController.save();\n+\t\tFile plannerFile = null;\n+\t\ttry {\n+\t\t\tAccount newAccount = MainController.ui.createAccount();\n+\t\t\tStudyPlannerController study = new StudyPlannerController(newAccount);\n+\t\t\t// Welcome notification:\n+\t\t\tNotification not = new Notification(\"Welcome!\", new GregorianCalendar(),\n+\t\t\t\t\t\"Thank you for using RaiderPlanner!\");\n+\t\t\tstudy.getPlanner().addNotification(not);\n+\t\t\tMainController.setSpc(study);\n+\t\t\tplannerFile = MainController.ui.savePlannerFileDialog();\n+\t\t} catch (Exception e) {\n+\t\t\te.printStackTrace();\n+\t\t}\n+\t\tif (plannerFile != null) {\n+\t\t\tif (plannerFile.getParentFile().exists()) {\n+\t\t\t\tif (plannerFile.getParentFile().canRead()) {\n+\t\t\t\t\tif (plannerFile.getParentFile().canWrite()) {\n+\t\t\t\t\t\tMainController.setPlannerFile(plannerFile);\n+\t\t\t\t\t\tMainController.save();\n+\t\t\t\t\t} else {\n+\t\t\t\t\t\tUiManager.reportError(\"Directory can not be written to.\");\n+\t\t\t\t\t}\n+\t\t\t\t} else {\n+\t\t\t\t\tUiManager.reportError(\"Directory cannot be read from.\");\n+\t\t\t\t}\n+\n+\t\t\t} else {\n+\t\t\t\tUiManager.reportError(\"Directory does not exist.\");\n+\t\t\t}\n+\t\t}","path":"src/edu/wright/cs/raiderplanner/controller/MenuController.java","position":73,"original_position":73,"commit_id":"4add13fca7b61475aeb79668a5cbbd8e6c53ce6f","original_commit_id":"4add13fca7b61475aeb79668a5cbbd8e6c53ce6f","user":{"login":"LoganRickert","id":8783932,"avatar_url":"https://avatars1.githubusercontent.com/u/8783932?v=4","gravatar_id":"","url":"https://api.github.com/users/LoganRickert","html_url":"https://github.com/LoganRickert","followers_url":"https://api.github.com/users/LoganRickert/followers","following_url":"https://api.github.com/users/LoganRickert/following{/other_user}","gists_url":"https://api.github.com/users/LoganRickert/gists{/gist_id}","starred_url":"https://api.github.com/users/LoganRickert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoganRickert/subscriptions","organizations_url":"https://api.github.com/users/LoganRickert/orgs","repos_url":"https://api.github.com/users/LoganRickert/repos","events_url":"https://api.github.com/users/LoganRickert/events{/privacy}","received_events_url":"https://api.github.com/users/LoganRickert/received_events","type":"User","site_admin":false},"body":"You may want to move this if block into a function, similar to `openProfile`. It looks like you have already written this code for a second time. ","created_at":"2018-03-05T21:47:12Z","updated_at":"2018-03-05T21:47:12Z","html_url":"https://github.com/rsanchez-wsu/RaiderPlanner/pull/263#discussion_r172339522","pull_request_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/comments/172339522"},"html":{"href":"https://github.com/rsanchez-wsu/RaiderPlanner/pull/263#discussion_r172339522"},"pull_request":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263"}}},"pull_request":{"url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263","id":172578891,"html_url":"https://github.com/rsanchez-wsu/RaiderPlanner/pull/263","diff_url":"https://github.com/rsanchez-wsu/RaiderPlanner/pull/263.diff","patch_url":"https://github.com/rsanchez-wsu/RaiderPlanner/pull/263.patch","issue_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues/263","number":263,"state":"open","locked":false,"title":"Remove secondary start-up Screen","user":{"login":"AlenaBrand","id":29344475,"avatar_url":"https://avatars0.githubusercontent.com/u/29344475?v=4","gravatar_id":"","url":"https://api.github.com/users/AlenaBrand","html_url":"https://github.com/AlenaBrand","followers_url":"https://api.github.com/users/AlenaBrand/followers","following_url":"https://api.github.com/users/AlenaBrand/following{/other_user}","gists_url":"https://api.github.com/users/AlenaBrand/gists{/gist_id}","starred_url":"https://api.github.com/users/AlenaBrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlenaBrand/subscriptions","organizations_url":"https://api.github.com/users/AlenaBrand/orgs","repos_url":"https://api.github.com/users/AlenaBrand/repos","events_url":"https://api.github.com/users/AlenaBrand/events{/privacy}","received_events_url":"https://api.github.com/users/AlenaBrand/received_events","type":"User","site_admin":false},"body":"This commit removes the screen that appears when the program first starts. The new file and open file functionality are now in the main pane of Raider Planner. This allows the user to open files and create new files without exiting the program. It will also remove the odd startup pane, that looks strange in some formats. This will allow the program to run in a more standardized way, that users are used to, and what they would expect in today’s market\r\nOther fixes include:\r\nWhen the program is run, by default it opens the last file that was saved. In my opinion, changing the opening welcome screen until a user selects a file was out of the scope of this project.\r\n\r\nIf there are no files in the program, except the sample, the new account screen will pop up automatically the first time the program is run. Again, making a default welcome screen was out of the scope of this issue.\r\ncloses #134\r\n![screenshot 26](https://user-images.githubusercontent.com/29344475/36916513-1e6be106-1e22-11e8-869b-169f91a08fd9.png)\r\n![screenshot 25](https://user-images.githubusercontent.com/29344475/36916514-1e7f031c-1e22-11e8-8e37-30e11d754802.png)\r\n![screenshot 27](https://user-images.githubusercontent.com/29344475/36916515-1e8e0466-1e22-11e8-9378-e8e27ef8ec10.png)\r\n\r\n\r\n","created_at":"2018-03-02T19:01:13Z","updated_at":"2018-03-05T21:47:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"843ae706a48692cd9fbc53d1e3dcfbde4885beaf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263/commits","review_comments_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263/comments","review_comment_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues/263/comments","statuses_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/statuses/4add13fca7b61475aeb79668a5cbbd8e6c53ce6f","head":{"label":"AlenaBrand:iss134","ref":"iss134","sha":"4add13fca7b61475aeb79668a5cbbd8e6c53ce6f","user":{"login":"AlenaBrand","id":29344475,"avatar_url":"https://avatars0.githubusercontent.com/u/29344475?v=4","gravatar_id":"","url":"https://api.github.com/users/AlenaBrand","html_url":"https://github.com/AlenaBrand","followers_url":"https://api.github.com/users/AlenaBrand/followers","following_url":"https://api.github.com/users/AlenaBrand/following{/other_user}","gists_url":"https://api.github.com/users/AlenaBrand/gists{/gist_id}","starred_url":"https://api.github.com/users/AlenaBrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlenaBrand/subscriptions","organizations_url":"https://api.github.com/users/AlenaBrand/orgs","repos_url":"https://api.github.com/users/AlenaBrand/repos","events_url":"https://api.github.com/users/AlenaBrand/events{/privacy}","received_events_url":"https://api.github.com/users/AlenaBrand/received_events","type":"User","site_admin":false},"repo":{"id":116747690,"name":"RaiderPlanner","full_name":"AlenaBrand/RaiderPlanner","owner":{"login":"AlenaBrand","id":29344475,"avatar_url":"https://avatars0.githubusercontent.com/u/29344475?v=4","gravatar_id":"","url":"https://api.github.com/users/AlenaBrand","html_url":"https://github.com/AlenaBrand","followers_url":"https://api.github.com/users/AlenaBrand/followers","following_url":"https://api.github.com/users/AlenaBrand/following{/other_user}","gists_url":"https://api.github.com/users/AlenaBrand/gists{/gist_id}","starred_url":"https://api.github.com/users/AlenaBrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlenaBrand/subscriptions","organizations_url":"https://api.github.com/users/AlenaBrand/orgs","repos_url":"https://api.github.com/users/AlenaBrand/repos","events_url":"https://api.github.com/users/AlenaBrand/events{/privacy}","received_events_url":"https://api.github.com/users/AlenaBrand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlenaBrand/RaiderPlanner","description":"The best study planner since the Gantt Diagram","fork":true,"url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner","forks_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/forks","keys_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/teams","hooks_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/hooks","issue_events_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/issues/events{/number}","events_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/events","assignees_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/assignees{/user}","branches_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/branches{/branch}","tags_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/tags","blobs_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/statuses/{sha}","languages_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/languages","stargazers_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/stargazers","contributors_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/contributors","subscribers_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/subscribers","subscription_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/subscription","commits_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/contents/{+path}","compare_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/merges","archive_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/downloads","issues_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/issues{/number}","pulls_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/pulls{/number}","milestones_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/milestones{/number}","notifications_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/labels{/name}","releases_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/releases{/id}","deployments_url":"https://api.github.com/repos/AlenaBrand/RaiderPlanner/deployments","created_at":"2018-01-09T01:10:49Z","updated_at":"2018-01-09T01:10:51Z","pushed_at":"2018-03-05T21:41:37Z","git_url":"git://github.com/AlenaBrand/RaiderPlanner.git","ssh_url":"git@github.com:AlenaBrand/RaiderPlanner.git","clone_url":"https://github.com/AlenaBrand/RaiderPlanner.git","svn_url":"https://github.com/AlenaBrand/RaiderPlanner","homepage":null,"size":37636,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rsanchez-wsu:master","ref":"master","sha":"665a1a6432024f246242098b2491761f6dd8f958","user":{"login":"rsanchez-wsu","id":9941546,"avatar_url":"https://avatars3.githubusercontent.com/u/9941546?v=4","gravatar_id":"","url":"https://api.github.com/users/rsanchez-wsu","html_url":"https://github.com/rsanchez-wsu","followers_url":"https://api.github.com/users/rsanchez-wsu/followers","following_url":"https://api.github.com/users/rsanchez-wsu/following{/other_user}","gists_url":"https://api.github.com/users/rsanchez-wsu/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchez-wsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchez-wsu/subscriptions","organizations_url":"https://api.github.com/users/rsanchez-wsu/orgs","repos_url":"https://api.github.com/users/rsanchez-wsu/repos","events_url":"https://api.github.com/users/rsanchez-wsu/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchez-wsu/received_events","type":"User","site_admin":false},"repo":{"id":101593940,"name":"RaiderPlanner","full_name":"rsanchez-wsu/RaiderPlanner","owner":{"login":"rsanchez-wsu","id":9941546,"avatar_url":"https://avatars3.githubusercontent.com/u/9941546?v=4","gravatar_id":"","url":"https://api.github.com/users/rsanchez-wsu","html_url":"https://github.com/rsanchez-wsu","followers_url":"https://api.github.com/users/rsanchez-wsu/followers","following_url":"https://api.github.com/users/rsanchez-wsu/following{/other_user}","gists_url":"https://api.github.com/users/rsanchez-wsu/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchez-wsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchez-wsu/subscriptions","organizations_url":"https://api.github.com/users/rsanchez-wsu/orgs","repos_url":"https://api.github.com/users/rsanchez-wsu/repos","events_url":"https://api.github.com/users/rsanchez-wsu/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchez-wsu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rsanchez-wsu/RaiderPlanner","description":"The best study planner since the Gantt Diagram","fork":true,"url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner","forks_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/forks","keys_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/teams","hooks_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/hooks","issue_events_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues/events{/number}","events_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/events","assignees_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/assignees{/user}","branches_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/branches{/branch}","tags_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/tags","blobs_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/statuses/{sha}","languages_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/languages","stargazers_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/stargazers","contributors_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/contributors","subscribers_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/subscribers","subscription_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/subscription","commits_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/contents/{+path}","compare_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/merges","archive_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/downloads","issues_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues{/number}","pulls_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls{/number}","milestones_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/milestones{/number}","notifications_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/labels{/name}","releases_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/releases{/id}","deployments_url":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/deployments","created_at":"2017-08-28T01:55:50Z","updated_at":"2018-01-11T19:42:06Z","pushed_at":"2018-03-05T21:41:38Z","git_url":"git://github.com/rsanchez-wsu/RaiderPlanner.git","ssh_url":"git@github.com:rsanchez-wsu/RaiderPlanner.git","clone_url":"https://github.com/rsanchez-wsu/RaiderPlanner.git","svn_url":"https://github.com/rsanchez-wsu/RaiderPlanner","homepage":null,"size":37603,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":88,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":61,"open_issues":88,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263"},"html":{"href":"https://github.com/rsanchez-wsu/RaiderPlanner/pull/263"},"issue":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues/263"},"comments":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/rsanchez-wsu/RaiderPlanner/statuses/4add13fca7b61475aeb79668a5cbbd8e6c53ce6f"}},"author_association":"NONE"}}
{"actor":{"display_login":"LoganRickert"}}