{"action":"created","comment":{"url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/comments/77806289","id":77806289,"diff_hunk":"@@ -21,43 +21,57 @@\n import com.imaginea.kodebeagle.base.object.WindowObjects;\n import com.imaginea.kodebeagle.base.util.UIUtils;\n import com.imaginea.kodebeagle.impl.util.JavaImportsUtil;\n-import com.imaginea.kodebeagle.impl.util.ScalaImportsUtil;\n import com.intellij.openapi.editor.Editor;\n \n+// import com.imaginea.kodebeagle.impl.util.ScalaImportsUtil;\n+\n public class RefreshAction extends RefreshActionBase {\n-    private static final String FILETYPE_HELP_JAVA_SCALA = \"<html><center>This plugin supports \"\n-            + \"\\\"scala\\\" and \\\"java\\\" files only.</center></html>\";\n-    private static final String FILETYPE_HELP_JAVA = \"<html><center>Plugin currently supports \"\n-            + \"\\\"java\\\" files only.<br> To enable scala support install scala plugin!\"\n-            + \"</center></html>\";\n-    private static final String FILE_EXT_SCALA = \"scala\";\n-    private static final String FILE_EXT_SCALA_WORKSHEET = \"sc\";\n+\n+    private static final String FILETYPE_HELP_JAVA = \"<html><center>This plugin supports \"\n+            + \"\\\"java\\\" files only.</center></html>\";\n+\n     private static final String FILE_EXT_JAVA = \"java\";\n     private final WindowObjects windowObjects = WindowObjects.getInstance();\n \n+    // TODO to be used after adding scala support\n+    /* private static final String FILETYPE_HELP_JAVA_SCALA = \"<html><center>This plugin supports \"\n+             + \"\\\"scala\\\" and \\\"java\\\" files only.</center></html>\";\n+     private static final String FILETYPE_HELP_JAVA = \"<html><center>Plugin currently supports \"\n+             + \"\\\"java\\\" files only.<br> To enable scala support install scala plugin!\"\n+             + \"</center></html>\";*/\n+    /*private static final String FILE_EXT_SCALA = \"scala\";\n+    private static final String FILE_EXT_SCALA_WORKSHEET = \"sc\";*/\n+\n     @Override\n     protected final void runAction() {\n         final Editor editor = getEditor();\n+\n+        if (checkFileType(editor.getDocument(), FILE_EXT_JAVA)) {\n+            windowObjects.setLanguage(FILE_EXT_JAVA);\n+            doQuery(new JavaImportsUtil());\n+        } else {\n+            UIUtils uiUtils = new UIUtils();\n+            uiUtils.showHelpInfo(FILETYPE_HELP_JAVA);\n+        }\n+\n+        /*\n+        // TODO to be used after adding scala support","path":"plugins/idea/pluginImpl/src/main/java/com/imaginea/kodebeagle/impl/action/RefreshAction.java","position":46,"original_position":46,"commit_id":"51a5c8b46812ff4c70005e102c992e9f992912aa","original_commit_id":"51a5c8b46812ff4c70005e102c992e9f992912aa","user":{"login":"dasbipulkumar","id":10909847,"avatar_url":"https://avatars.githubusercontent.com/u/10909847?v=3","gravatar_id":"","url":"https://api.github.com/users/dasbipulkumar","html_url":"https://github.com/dasbipulkumar","followers_url":"https://api.github.com/users/dasbipulkumar/followers","following_url":"https://api.github.com/users/dasbipulkumar/following{/other_user}","gists_url":"https://api.github.com/users/dasbipulkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/dasbipulkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasbipulkumar/subscriptions","organizations_url":"https://api.github.com/users/dasbipulkumar/orgs","repos_url":"https://api.github.com/users/dasbipulkumar/repos","events_url":"https://api.github.com/users/dasbipulkumar/events{/privacy}","received_events_url":"https://api.github.com/users/dasbipulkumar/received_events","type":"User","site_admin":false},"body":"![INFO](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-info.png) Complete the task associated to this TODO comment. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.com/coding_rules#rule_key=squid%3AS1135)\n","created_at":"2016-09-07T11:46:09Z","updated_at":"2016-09-07T11:46:09Z","html_url":"https://github.com/dasbipulkumar/KodeBeagle/pull/9#discussion_r77806289","pull_request_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/comments/77806289"},"html":{"href":"https://github.com/dasbipulkumar/KodeBeagle/pull/9#discussion_r77806289"},"pull_request":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9","id":84283750,"html_url":"https://github.com/dasbipulkumar/KodeBeagle/pull/9","diff_url":"https://github.com/dasbipulkumar/KodeBeagle/pull/9.diff","patch_url":"https://github.com/dasbipulkumar/KodeBeagle/pull/9.patch","issue_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/9","number":9,"state":"open","locked":false,"title":"Issue627","user":{"login":"dasbipulkumar","id":10909847,"avatar_url":"https://avatars.githubusercontent.com/u/10909847?v=3","gravatar_id":"","url":"https://api.github.com/users/dasbipulkumar","html_url":"https://github.com/dasbipulkumar","followers_url":"https://api.github.com/users/dasbipulkumar/followers","following_url":"https://api.github.com/users/dasbipulkumar/following{/other_user}","gists_url":"https://api.github.com/users/dasbipulkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/dasbipulkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasbipulkumar/subscriptions","organizations_url":"https://api.github.com/users/dasbipulkumar/orgs","repos_url":"https://api.github.com/users/dasbipulkumar/repos","events_url":"https://api.github.com/users/dasbipulkumar/events{/privacy}","received_events_url":"https://api.github.com/users/dasbipulkumar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-07T11:34:55Z","updated_at":"2016-09-07T11:46:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af1ea1e11e43f0e2e99bdff84f70a288f0bd80c2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9/commits","review_comments_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9/comments","review_comment_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/9/comments","statuses_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/statuses/51a5c8b46812ff4c70005e102c992e9f992912aa","head":{"label":"dasbipulkumar:issue627","ref":"issue627","sha":"51a5c8b46812ff4c70005e102c992e9f992912aa","user":{"login":"dasbipulkumar","id":10909847,"avatar_url":"https://avatars.githubusercontent.com/u/10909847?v=3","gravatar_id":"","url":"https://api.github.com/users/dasbipulkumar","html_url":"https://github.com/dasbipulkumar","followers_url":"https://api.github.com/users/dasbipulkumar/followers","following_url":"https://api.github.com/users/dasbipulkumar/following{/other_user}","gists_url":"https://api.github.com/users/dasbipulkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/dasbipulkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasbipulkumar/subscriptions","organizations_url":"https://api.github.com/users/dasbipulkumar/orgs","repos_url":"https://api.github.com/users/dasbipulkumar/repos","events_url":"https://api.github.com/users/dasbipulkumar/events{/privacy}","received_events_url":"https://api.github.com/users/dasbipulkumar/received_events","type":"User","site_admin":false},"repo":{"id":62372327,"name":"KodeBeagle","full_name":"dasbipulkumar/KodeBeagle","owner":{"login":"dasbipulkumar","id":10909847,"avatar_url":"https://avatars.githubusercontent.com/u/10909847?v=3","gravatar_id":"","url":"https://api.github.com/users/dasbipulkumar","html_url":"https://github.com/dasbipulkumar","followers_url":"https://api.github.com/users/dasbipulkumar/followers","following_url":"https://api.github.com/users/dasbipulkumar/following{/other_user}","gists_url":"https://api.github.com/users/dasbipulkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/dasbipulkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasbipulkumar/subscriptions","organizations_url":"https://api.github.com/users/dasbipulkumar/orgs","repos_url":"https://api.github.com/users/dasbipulkumar/repos","events_url":"https://api.github.com/users/dasbipulkumar/events{/privacy}","received_events_url":"https://api.github.com/users/dasbipulkumar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dasbipulkumar/KodeBeagle","description":"KodeBeagle - Large scale code analytics and search using Apache Spark.","fork":true,"url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle","forks_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/forks","keys_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/teams","hooks_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/hooks","issue_events_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/events{/number}","events_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/events","assignees_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/assignees{/user}","branches_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/branches{/branch}","tags_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/tags","blobs_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/statuses/{sha}","languages_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/languages","stargazers_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/stargazers","contributors_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/contributors","subscribers_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/subscribers","subscription_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/subscription","commits_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/contents/{+path}","compare_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/merges","archive_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/downloads","issues_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues{/number}","pulls_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls{/number}","milestones_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/milestones{/number}","notifications_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/labels{/name}","releases_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/releases{/id}","deployments_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/deployments","created_at":"2016-07-01T07:07:47Z","updated_at":"2016-07-04T07:48:19Z","pushed_at":"2016-09-07T11:34:55Z","git_url":"git://github.com/dasbipulkumar/KodeBeagle.git","ssh_url":"git@github.com:dasbipulkumar/KodeBeagle.git","clone_url":"https://github.com/dasbipulkumar/KodeBeagle.git","svn_url":"https://github.com/dasbipulkumar/KodeBeagle","homepage":"http://kodebeagle.com","size":4687,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"dasbipulkumar:master","ref":"master","sha":"d7bd0a92a03938592d85aa783f12934e4bd7e431","user":{"login":"dasbipulkumar","id":10909847,"avatar_url":"https://avatars.githubusercontent.com/u/10909847?v=3","gravatar_id":"","url":"https://api.github.com/users/dasbipulkumar","html_url":"https://github.com/dasbipulkumar","followers_url":"https://api.github.com/users/dasbipulkumar/followers","following_url":"https://api.github.com/users/dasbipulkumar/following{/other_user}","gists_url":"https://api.github.com/users/dasbipulkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/dasbipulkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasbipulkumar/subscriptions","organizations_url":"https://api.github.com/users/dasbipulkumar/orgs","repos_url":"https://api.github.com/users/dasbipulkumar/repos","events_url":"https://api.github.com/users/dasbipulkumar/events{/privacy}","received_events_url":"https://api.github.com/users/dasbipulkumar/received_events","type":"User","site_admin":false},"repo":{"id":62372327,"name":"KodeBeagle","full_name":"dasbipulkumar/KodeBeagle","owner":{"login":"dasbipulkumar","id":10909847,"avatar_url":"https://avatars.githubusercontent.com/u/10909847?v=3","gravatar_id":"","url":"https://api.github.com/users/dasbipulkumar","html_url":"https://github.com/dasbipulkumar","followers_url":"https://api.github.com/users/dasbipulkumar/followers","following_url":"https://api.github.com/users/dasbipulkumar/following{/other_user}","gists_url":"https://api.github.com/users/dasbipulkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/dasbipulkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasbipulkumar/subscriptions","organizations_url":"https://api.github.com/users/dasbipulkumar/orgs","repos_url":"https://api.github.com/users/dasbipulkumar/repos","events_url":"https://api.github.com/users/dasbipulkumar/events{/privacy}","received_events_url":"https://api.github.com/users/dasbipulkumar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dasbipulkumar/KodeBeagle","description":"KodeBeagle - Large scale code analytics and search using Apache Spark.","fork":true,"url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle","forks_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/forks","keys_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/teams","hooks_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/hooks","issue_events_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/events{/number}","events_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/events","assignees_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/assignees{/user}","branches_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/branches{/branch}","tags_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/tags","blobs_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/statuses/{sha}","languages_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/languages","stargazers_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/stargazers","contributors_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/contributors","subscribers_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/subscribers","subscription_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/subscription","commits_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/contents/{+path}","compare_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/merges","archive_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/downloads","issues_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues{/number}","pulls_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls{/number}","milestones_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/milestones{/number}","notifications_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/labels{/name}","releases_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/releases{/id}","deployments_url":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/deployments","created_at":"2016-07-01T07:07:47Z","updated_at":"2016-07-04T07:48:19Z","pushed_at":"2016-09-07T11:34:55Z","git_url":"git://github.com/dasbipulkumar/KodeBeagle.git","ssh_url":"git@github.com:dasbipulkumar/KodeBeagle.git","clone_url":"https://github.com/dasbipulkumar/KodeBeagle.git","svn_url":"https://github.com/dasbipulkumar/KodeBeagle","homepage":"http://kodebeagle.com","size":4687,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9"},"html":{"href":"https://github.com/dasbipulkumar/KodeBeagle/pull/9"},"issue":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/9"},"comments":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/dasbipulkumar/KodeBeagle/statuses/51a5c8b46812ff4c70005e102c992e9f992912aa"}}}}
{"actor":{"display_login":"dasbipulkumar"}}