{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/che/pulls/comments/64539233","id":64539233,"diff_hunk":"@@ -0,0 +1,101 @@\n+/*******************************************************************************\n+ * Copyright (c) 2012-2016 Codenvy, S.A.\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ *\n+ * Contributors:\n+ *   Codenvy, S.A. - initial API and implementation\n+ *******************************************************************************/\n+package org.eclipse.che.plugin.jsonexample.ide.action;\n+\n+\n+import org.eclipse.che.ide.api.action.ActionEvent;\n+import org.eclipse.che.ide.api.app.AppContext;\n+import org.eclipse.che.ide.api.notification.NotificationManager;\n+import org.eclipse.che.ide.api.notification.StatusNotification;\n+import org.eclipse.che.ide.rest.AsyncRequestCallback;\n+import org.eclipse.che.ide.rest.AsyncRequestFactory;\n+import org.eclipse.che.ide.rest.StringMapUnmarshaller;\n+import org.eclipse.che.plugin.jsonexample.ide.JsonExampleResources;\n+\n+import javax.inject.Inject;\n+import javax.inject.Singleton;\n+import java.util.Map;\n+\n+/**\n+ * Action for counting lines of code of all JSON files within the current project.\n+ * Line counting is implemented by consuming a RESTful service.\n+ */\n+@Singleton\n+public class CountLocAction extends JsonExampleProjectAction {","path":"tutorials/plugin-json-example/che-plugin-json-example-ide/src/main/java/org/eclipse/che/plugin/jsonexample/ide/action/CountLocAction.java","position":32,"original_position":32,"commit_id":"804fcab8c36fcbc2da5e87a2fd49fd4077c0e609","original_commit_id":"804fcab8c36fcbc2da5e87a2fd49fd4077c0e609","user":{"login":"ashumilova","id":1611939,"avatar_url":"https://avatars.githubusercontent.com/u/1611939?v=3","gravatar_id":"","url":"https://api.github.com/users/ashumilova","html_url":"https://github.com/ashumilova","followers_url":"https://api.github.com/users/ashumilova/followers","following_url":"https://api.github.com/users/ashumilova/following{/other_user}","gists_url":"https://api.github.com/users/ashumilova/gists{/gist_id}","starred_url":"https://api.github.com/users/ashumilova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashumilova/subscriptions","organizations_url":"https://api.github.com/users/ashumilova/orgs","repos_url":"https://api.github.com/users/ashumilova/repos","events_url":"https://api.github.com/users/ashumilova/events{/privacy}","received_events_url":"https://api.github.com/users/ashumilova/received_events","type":"User","site_admin":false},"body":"CountLocAction -> CountLinesAction","created_at":"2016-05-25T09:07:18Z","updated_at":"2016-05-25T09:07:18Z","html_url":"https://github.com/eclipse/che/pull/1349#discussion_r64539233","pull_request_url":"https://api.github.com/repos/eclipse/che/pulls/1349","_links":{"self":{"href":"https://api.github.com/repos/eclipse/che/pulls/comments/64539233"},"html":{"href":"https://github.com/eclipse/che/pull/1349#discussion_r64539233"},"pull_request":{"href":"https://api.github.com/repos/eclipse/che/pulls/1349"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/che/pulls/1349","id":71252183,"html_url":"https://github.com/eclipse/che/pull/1349","diff_url":"https://github.com/eclipse/che/pull/1349.diff","patch_url":"https://github.com/eclipse/che/pull/1349.patch","issue_url":"https://api.github.com/repos/eclipse/che/issues/1349","number":1349,"state":"open","locked":false,"title":"[WIP] Add JSON Example","user":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"body":"As requested by @slemeur here's the code for the JSON example.\r\nThis is WIP (e.g. code assist does not work currently) and also needs to be properly integrated into the build.","created_at":"2016-05-24T16:30:46Z","updated_at":"2016-05-25T09:07:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"727869a16d1735400e3da291940ee88f8c422af6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/che/pulls/1349/commits","review_comments_url":"https://api.github.com/repos/eclipse/che/pulls/1349/comments","review_comment_url":"https://api.github.com/repos/eclipse/che/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/che/issues/1349/comments","statuses_url":"https://api.github.com/repos/eclipse/che/statuses/804fcab8c36fcbc2da5e87a2fd49fd4077c0e609","head":{"label":"edgarmueller:json-example","ref":"json-example","sha":"804fcab8c36fcbc2da5e87a2fd49fd4077c0e609","user":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"repo":{"id":59589100,"name":"che","full_name":"edgarmueller/che","owner":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edgarmueller/che","description":"Eclipse Che: Next-generation Eclipse IDE.  Open source workspace server and cloud IDE.","fork":true,"url":"https://api.github.com/repos/edgarmueller/che","forks_url":"https://api.github.com/repos/edgarmueller/che/forks","keys_url":"https://api.github.com/repos/edgarmueller/che/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edgarmueller/che/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edgarmueller/che/teams","hooks_url":"https://api.github.com/repos/edgarmueller/che/hooks","issue_events_url":"https://api.github.com/repos/edgarmueller/che/issues/events{/number}","events_url":"https://api.github.com/repos/edgarmueller/che/events","assignees_url":"https://api.github.com/repos/edgarmueller/che/assignees{/user}","branches_url":"https://api.github.com/repos/edgarmueller/che/branches{/branch}","tags_url":"https://api.github.com/repos/edgarmueller/che/tags","blobs_url":"https://api.github.com/repos/edgarmueller/che/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edgarmueller/che/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edgarmueller/che/git/refs{/sha}","trees_url":"https://api.github.com/repos/edgarmueller/che/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edgarmueller/che/statuses/{sha}","languages_url":"https://api.github.com/repos/edgarmueller/che/languages","stargazers_url":"https://api.github.com/repos/edgarmueller/che/stargazers","contributors_url":"https://api.github.com/repos/edgarmueller/che/contributors","subscribers_url":"https://api.github.com/repos/edgarmueller/che/subscribers","subscription_url":"https://api.github.com/repos/edgarmueller/che/subscription","commits_url":"https://api.github.com/repos/edgarmueller/che/commits{/sha}","git_commits_url":"https://api.github.com/repos/edgarmueller/che/git/commits{/sha}","comments_url":"https://api.github.com/repos/edgarmueller/che/comments{/number}","issue_comment_url":"https://api.github.com/repos/edgarmueller/che/issues/comments{/number}","contents_url":"https://api.github.com/repos/edgarmueller/che/contents/{+path}","compare_url":"https://api.github.com/repos/edgarmueller/che/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edgarmueller/che/merges","archive_url":"https://api.github.com/repos/edgarmueller/che/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edgarmueller/che/downloads","issues_url":"https://api.github.com/repos/edgarmueller/che/issues{/number}","pulls_url":"https://api.github.com/repos/edgarmueller/che/pulls{/number}","milestones_url":"https://api.github.com/repos/edgarmueller/che/milestones{/number}","notifications_url":"https://api.github.com/repos/edgarmueller/che/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edgarmueller/che/labels{/name}","releases_url":"https://api.github.com/repos/edgarmueller/che/releases{/id}","deployments_url":"https://api.github.com/repos/edgarmueller/che/deployments","created_at":"2016-05-24T16:16:48Z","updated_at":"2016-05-24T16:17:04Z","pushed_at":"2016-05-24T16:27:31Z","git_url":"git://github.com/edgarmueller/che.git","ssh_url":"git@github.com:edgarmueller/che.git","clone_url":"https://github.com/edgarmueller/che.git","svn_url":"https://github.com/edgarmueller/che","homepage":"http://eclipse.org/che","size":25192,"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":"e900dab32219c1c9d1d48e69bbecc67977fa8bc5","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":32935745,"name":"che","full_name":"eclipse/che","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/che","description":"Eclipse Che: Next-generation Eclipse IDE.  Open source workspace server and cloud IDE.","fork":false,"url":"https://api.github.com/repos/eclipse/che","forks_url":"https://api.github.com/repos/eclipse/che/forks","keys_url":"https://api.github.com/repos/eclipse/che/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/che/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/che/teams","hooks_url":"https://api.github.com/repos/eclipse/che/hooks","issue_events_url":"https://api.github.com/repos/eclipse/che/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/che/events","assignees_url":"https://api.github.com/repos/eclipse/che/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/che/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/che/tags","blobs_url":"https://api.github.com/repos/eclipse/che/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/che/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/che/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/che/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/che/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/che/languages","stargazers_url":"https://api.github.com/repos/eclipse/che/stargazers","contributors_url":"https://api.github.com/repos/eclipse/che/contributors","subscribers_url":"https://api.github.com/repos/eclipse/che/subscribers","subscription_url":"https://api.github.com/repos/eclipse/che/subscription","commits_url":"https://api.github.com/repos/eclipse/che/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/che/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/che/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/che/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/che/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/che/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/che/merges","archive_url":"https://api.github.com/repos/eclipse/che/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/che/downloads","issues_url":"https://api.github.com/repos/eclipse/che/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/che/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/che/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/che/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/che/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/che/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/che/deployments","created_at":"2015-03-26T15:31:01Z","updated_at":"2016-05-25T06:34:46Z","pushed_at":"2016-05-25T09:06:11Z","git_url":"git://github.com/eclipse/che.git","ssh_url":"git@github.com:eclipse/che.git","clone_url":"https://github.com/eclipse/che.git","svn_url":"https://github.com/eclipse/che","homepage":"http://eclipse.org/che","size":34092,"stargazers_count":2849,"watchers_count":2849,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":406,"mirror_url":null,"open_issues_count":101,"forks":406,"open_issues":101,"watchers":2849,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/che/pulls/1349"},"html":{"href":"https://github.com/eclipse/che/pull/1349"},"issue":{"href":"https://api.github.com/repos/eclipse/che/issues/1349"},"comments":{"href":"https://api.github.com/repos/eclipse/che/issues/1349/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/che/pulls/1349/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/che/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/che/pulls/1349/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/che/statuses/804fcab8c36fcbc2da5e87a2fd49fd4077c0e609"}}}}
{"actor":{"display_login":"ashumilova"}}