{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/xtext/pulls/comments/54143073","id":54143073,"diff_hunk":"@@ -164,6 +169,42 @@ public void apply(final EObject element, IModificationContext context) {\n \t\t\t\t\t}\n \t\t\t\t});\n \t}\n+\t@Fix(SPACES_IN_KEYWORD)\n+\tpublic void fixSpacesInKeyword(final Issue issue, IssueResolutionAcceptor acceptor) {\n+\t\tif (issue.getData().length > 0 && Boolean.valueOf(issue.getData()[0]))\n+\t\tacceptor.accept(issue, \"Replace Keyword with multiple Keywords\", \"Splits a Keyword that contains spaces or tabs into multiple Keywords\", NULL_QUICKFIX_IMAGE,\n+\t\t\t\tnew ISemanticModification() {\n+\t\t\t@Override\n+\t\t\tpublic void apply(final EObject element, IModificationContext context) {\n+\t\t\t\tKeyword keyword = (Keyword) element;\n+\t\t\t\tEStructuralFeature eContainingFeature = keyword.eContainingFeature();\n+\t\t\t\tEObject eContainer = keyword.eContainer();\n+\t\t\t\tString[] parts = keyword.getValue().split(\"[\\\\t ]\");","path":"plugins/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/editor/quickfix/XtextGrammarQuickfixProvider.java","position":44,"original_position":44,"commit_id":"2ed5c41cd3f5ef2520b521db626546a1a4b5737d","original_commit_id":"2ed5c41cd3f5ef2520b521db626546a1a4b5737d","user":{"login":"JanKoehnlein","id":377752,"avatar_url":"https://avatars.githubusercontent.com/u/377752?v=3","gravatar_id":"","url":"https://api.github.com/users/JanKoehnlein","html_url":"https://github.com/JanKoehnlein","followers_url":"https://api.github.com/users/JanKoehnlein/followers","following_url":"https://api.github.com/users/JanKoehnlein/following{/other_user}","gists_url":"https://api.github.com/users/JanKoehnlein/gists{/gist_id}","starred_url":"https://api.github.com/users/JanKoehnlein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanKoehnlein/subscriptions","organizations_url":"https://api.github.com/users/JanKoehnlein/orgs","repos_url":"https://api.github.com/users/JanKoehnlein/repos","events_url":"https://api.github.com/users/JanKoehnlein/events{/privacy}","received_events_url":"https://api.github.com/users/JanKoehnlein/received_events","type":"User","site_admin":false},"body":"How about\r\n  ...split(\"\\\\s*\");","created_at":"2016-02-25T18:46:20Z","updated_at":"2016-02-25T18:46:20Z","html_url":"https://github.com/eclipse/xtext/pull/941#discussion_r54143073","pull_request_url":"https://api.github.com/repos/eclipse/xtext/pulls/941","_links":{"self":{"href":"https://api.github.com/repos/eclipse/xtext/pulls/comments/54143073"},"html":{"href":"https://github.com/eclipse/xtext/pull/941#discussion_r54143073"},"pull_request":{"href":"https://api.github.com/repos/eclipse/xtext/pulls/941"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/xtext/pulls/941","id":60697645,"html_url":"https://github.com/eclipse/xtext/pull/941","diff_url":"https://github.com/eclipse/xtext/pull/941.diff","patch_url":"https://github.com/eclipse/xtext/pull/941.patch","issue_url":"https://api.github.com/repos/eclipse/xtext/issues/941","number":941,"state":"open","locked":false,"title":"Quickfix for Spaces and Tabs in Keyword","user":{"login":"cdietrich","id":238736,"avatar_url":"https://avatars.githubusercontent.com/u/238736?v=3","gravatar_id":"","url":"https://api.github.com/users/cdietrich","html_url":"https://github.com/cdietrich","followers_url":"https://api.github.com/users/cdietrich/followers","following_url":"https://api.github.com/users/cdietrich/following{/other_user}","gists_url":"https://api.github.com/users/cdietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/cdietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdietrich/subscriptions","organizations_url":"https://api.github.com/users/cdietrich/orgs","repos_url":"https://api.github.com/users/cdietrich/repos","events_url":"https://api.github.com/users/cdietrich/events{/privacy}","received_events_url":"https://api.github.com/users/cdietrich/received_events","type":"User","site_admin":false},"body":"…458). Added a Quickfix that replaces spaces and tabs in keyword with _\r\n\r\nSigned-off-by: Christian Dietrich <christian.dietrich@itemis.de>","created_at":"2016-02-25T15:39:26Z","updated_at":"2016-02-25T18:46:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48ef90258bb5314bab481ed60774f32673686054","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/xtext/pulls/941/commits","review_comments_url":"https://api.github.com/repos/eclipse/xtext/pulls/941/comments","review_comment_url":"https://api.github.com/repos/eclipse/xtext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/xtext/issues/941/comments","statuses_url":"https://api.github.com/repos/eclipse/xtext/statuses/2ed5c41cd3f5ef2520b521db626546a1a4b5737d","head":{"label":"cdietrich:bf488458","ref":"bf488458","sha":"2ed5c41cd3f5ef2520b521db626546a1a4b5737d","user":{"login":"cdietrich","id":238736,"avatar_url":"https://avatars.githubusercontent.com/u/238736?v=3","gravatar_id":"","url":"https://api.github.com/users/cdietrich","html_url":"https://github.com/cdietrich","followers_url":"https://api.github.com/users/cdietrich/followers","following_url":"https://api.github.com/users/cdietrich/following{/other_user}","gists_url":"https://api.github.com/users/cdietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/cdietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdietrich/subscriptions","organizations_url":"https://api.github.com/users/cdietrich/orgs","repos_url":"https://api.github.com/users/cdietrich/repos","events_url":"https://api.github.com/users/cdietrich/events{/privacy}","received_events_url":"https://api.github.com/users/cdietrich/received_events","type":"User","site_admin":false},"repo":{"id":32405061,"name":"xtext","full_name":"cdietrich/xtext","owner":{"login":"cdietrich","id":238736,"avatar_url":"https://avatars.githubusercontent.com/u/238736?v=3","gravatar_id":"","url":"https://api.github.com/users/cdietrich","html_url":"https://github.com/cdietrich","followers_url":"https://api.github.com/users/cdietrich/followers","following_url":"https://api.github.com/users/cdietrich/following{/other_user}","gists_url":"https://api.github.com/users/cdietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/cdietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdietrich/subscriptions","organizations_url":"https://api.github.com/users/cdietrich/orgs","repos_url":"https://api.github.com/users/cdietrich/repos","events_url":"https://api.github.com/users/cdietrich/events{/privacy}","received_events_url":"https://api.github.com/users/cdietrich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdietrich/xtext","description":"Xtext is a language development framework ","fork":true,"url":"https://api.github.com/repos/cdietrich/xtext","forks_url":"https://api.github.com/repos/cdietrich/xtext/forks","keys_url":"https://api.github.com/repos/cdietrich/xtext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdietrich/xtext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdietrich/xtext/teams","hooks_url":"https://api.github.com/repos/cdietrich/xtext/hooks","issue_events_url":"https://api.github.com/repos/cdietrich/xtext/issues/events{/number}","events_url":"https://api.github.com/repos/cdietrich/xtext/events","assignees_url":"https://api.github.com/repos/cdietrich/xtext/assignees{/user}","branches_url":"https://api.github.com/repos/cdietrich/xtext/branches{/branch}","tags_url":"https://api.github.com/repos/cdietrich/xtext/tags","blobs_url":"https://api.github.com/repos/cdietrich/xtext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdietrich/xtext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdietrich/xtext/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdietrich/xtext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdietrich/xtext/statuses/{sha}","languages_url":"https://api.github.com/repos/cdietrich/xtext/languages","stargazers_url":"https://api.github.com/repos/cdietrich/xtext/stargazers","contributors_url":"https://api.github.com/repos/cdietrich/xtext/contributors","subscribers_url":"https://api.github.com/repos/cdietrich/xtext/subscribers","subscription_url":"https://api.github.com/repos/cdietrich/xtext/subscription","commits_url":"https://api.github.com/repos/cdietrich/xtext/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdietrich/xtext/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdietrich/xtext/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdietrich/xtext/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdietrich/xtext/contents/{+path}","compare_url":"https://api.github.com/repos/cdietrich/xtext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdietrich/xtext/merges","archive_url":"https://api.github.com/repos/cdietrich/xtext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdietrich/xtext/downloads","issues_url":"https://api.github.com/repos/cdietrich/xtext/issues{/number}","pulls_url":"https://api.github.com/repos/cdietrich/xtext/pulls{/number}","milestones_url":"https://api.github.com/repos/cdietrich/xtext/milestones{/number}","notifications_url":"https://api.github.com/repos/cdietrich/xtext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdietrich/xtext/labels{/name}","releases_url":"https://api.github.com/repos/cdietrich/xtext/releases{/id}","deployments_url":"https://api.github.com/repos/cdietrich/xtext/deployments","created_at":"2015-03-17T16:19:36Z","updated_at":"2016-01-25T12:22:39Z","pushed_at":"2016-02-25T17:54:02Z","git_url":"git://github.com/cdietrich/xtext.git","ssh_url":"git@github.com:cdietrich/xtext.git","clone_url":"https://github.com/cdietrich/xtext.git","svn_url":"https://github.com/cdietrich/xtext","homepage":"http://xtext.org","size":506586,"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":"eclipse:master","ref":"master","sha":"473d7ca9cfd92b8c980eadf0a60efe4fb6ec3cac","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":1553758,"name":"xtext","full_name":"eclipse/xtext","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/xtext","description":"Xtext is a language development framework ","fork":false,"url":"https://api.github.com/repos/eclipse/xtext","forks_url":"https://api.github.com/repos/eclipse/xtext/forks","keys_url":"https://api.github.com/repos/eclipse/xtext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/xtext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/xtext/teams","hooks_url":"https://api.github.com/repos/eclipse/xtext/hooks","issue_events_url":"https://api.github.com/repos/eclipse/xtext/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/xtext/events","assignees_url":"https://api.github.com/repos/eclipse/xtext/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/xtext/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/xtext/tags","blobs_url":"https://api.github.com/repos/eclipse/xtext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/xtext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/xtext/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/xtext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/xtext/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/xtext/languages","stargazers_url":"https://api.github.com/repos/eclipse/xtext/stargazers","contributors_url":"https://api.github.com/repos/eclipse/xtext/contributors","subscribers_url":"https://api.github.com/repos/eclipse/xtext/subscribers","subscription_url":"https://api.github.com/repos/eclipse/xtext/subscription","commits_url":"https://api.github.com/repos/eclipse/xtext/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/xtext/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/xtext/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/xtext/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/xtext/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/xtext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/xtext/merges","archive_url":"https://api.github.com/repos/eclipse/xtext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/xtext/downloads","issues_url":"https://api.github.com/repos/eclipse/xtext/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/xtext/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/xtext/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/xtext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/xtext/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/xtext/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/xtext/deployments","created_at":"2011-04-01T02:12:17Z","updated_at":"2016-02-22T05:37:48Z","pushed_at":"2016-02-25T17:54:03Z","git_url":"git://github.com/eclipse/xtext.git","ssh_url":"git@github.com:eclipse/xtext.git","clone_url":"https://github.com/eclipse/xtext.git","svn_url":"https://github.com/eclipse/xtext","homepage":"http://xtext.org","size":526515,"stargazers_count":228,"watchers_count":228,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"open_issues_count":12,"forks":110,"open_issues":12,"watchers":228,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/xtext/pulls/941"},"html":{"href":"https://github.com/eclipse/xtext/pull/941"},"issue":{"href":"https://api.github.com/repos/eclipse/xtext/issues/941"},"comments":{"href":"https://api.github.com/repos/eclipse/xtext/issues/941/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/xtext/pulls/941/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/xtext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/xtext/pulls/941/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/xtext/statuses/2ed5c41cd3f5ef2520b521db626546a1a4b5737d"}}}}