{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/comments/46959293","id":46959293,"diff_hunk":"@@ -363,6 +364,26 @@ public void registerAdditionalActions(@NotNull DefaultActionGroup leftToolbar,\n       }\n     }\n \n+    // remove help button since it points to the IntelliJ help by default and we don't have\n+    // a help page yet.\n+    // for some reason, the help button's key in leftToolbar is null, so we need to remove it\n+    // by class name.\n+    // https://github.com/GoogleCloudPlatform/gcloud-intellij/issues/149\n+    for (AnAction child : leftToolbar.getChildActionsOrStubs()) {\n+      if (child.getClass().getCanonicalName().equalsIgnoreCase(\n+          \"com.intellij.ide.actions.ContextHelpAction\")) {\n+        // we never want to show IDEA's help.\n+        leftToolbar.remove(child);\n+\n+        // show our help if we have it.\n+        String helpUrl = GctBundle.getString(\"clouddebug.helpurl\");\n+        if (!helpUrl.equalsIgnoreCase(\"\")) {","path":"core-plugin/src/com/google/gct/idea/debugger/CloudDebugProcess.java","position":25,"original_position":25,"commit_id":"2d340b26e04c2476607d1890215683315f432342","original_commit_id":"2d340b26e04c2476607d1890215683315f432342","user":{"login":"elharo","id":1005544,"avatar_url":"https://avatars.githubusercontent.com/u/1005544?v=3","gravatar_id":"","url":"https://api.github.com/users/elharo","html_url":"https://github.com/elharo","followers_url":"https://api.github.com/users/elharo/followers","following_url":"https://api.github.com/users/elharo/following{/other_user}","gists_url":"https://api.github.com/users/elharo/gists{/gist_id}","starred_url":"https://api.github.com/users/elharo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elharo/subscriptions","organizations_url":"https://api.github.com/users/elharo/orgs","repos_url":"https://api.github.com/users/elharo/repos","events_url":"https://api.github.com/users/elharo/events{/privacy}","received_events_url":"https://api.github.com/users/elharo/received_events","type":"User","site_admin":false},"body":"!\"\".equals(helpUrl)\r\n\r\nto avoid NullPointerExceptions and because we don't need to check for case in an empty string","created_at":"2015-12-08T14:34:11Z","updated_at":"2015-12-08T14:34:11Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/230#discussion_r46959293","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/comments/46959293"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/230#discussion_r46959293"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230","id":51491460,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/230","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/230.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/230.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues/230","number":230,"state":"open","locked":false,"title":"Removing the help button from the Debug toolbox.","user":{"login":"joaoandremartins","id":3290856,"avatar_url":"https://avatars.githubusercontent.com/u/3290856?v=3","gravatar_id":"","url":"https://api.github.com/users/joaoandremartins","html_url":"https://github.com/joaoandremartins","followers_url":"https://api.github.com/users/joaoandremartins/followers","following_url":"https://api.github.com/users/joaoandremartins/following{/other_user}","gists_url":"https://api.github.com/users/joaoandremartins/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoandremartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoandremartins/subscriptions","organizations_url":"https://api.github.com/users/joaoandremartins/orgs","repos_url":"https://api.github.com/users/joaoandremartins/repos","events_url":"https://api.github.com/users/joaoandremartins/events{/privacy}","received_events_url":"https://api.github.com/users/joaoandremartins/received_events","type":"User","site_admin":false},"body":"Removing the help button from the Debug toolbox, since it's pointing to the IDEA help page and we don't have any help or our own.\r\n\r\nfixes #149.","created_at":"2015-11-23T06:35:22Z","updated_at":"2015-12-08T14:34:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9fccc9e9dff4852d3eeb0d36022cad5d8f0ca96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues/230/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/statuses/2d340b26e04c2476607d1890215683315f432342","head":{"label":"joaoandremartins:help-button","ref":"help-button","sha":"2d340b26e04c2476607d1890215683315f432342","user":{"login":"joaoandremartins","id":3290856,"avatar_url":"https://avatars.githubusercontent.com/u/3290856?v=3","gravatar_id":"","url":"https://api.github.com/users/joaoandremartins","html_url":"https://github.com/joaoandremartins","followers_url":"https://api.github.com/users/joaoandremartins/followers","following_url":"https://api.github.com/users/joaoandremartins/following{/other_user}","gists_url":"https://api.github.com/users/joaoandremartins/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoandremartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoandremartins/subscriptions","organizations_url":"https://api.github.com/users/joaoandremartins/orgs","repos_url":"https://api.github.com/users/joaoandremartins/repos","events_url":"https://api.github.com/users/joaoandremartins/events{/privacy}","received_events_url":"https://api.github.com/users/joaoandremartins/received_events","type":"User","site_admin":false},"repo":{"id":46700909,"name":"gcloud-intellij","full_name":"joaoandremartins/gcloud-intellij","owner":{"login":"joaoandremartins","id":3290856,"avatar_url":"https://avatars.githubusercontent.com/u/3290856?v=3","gravatar_id":"","url":"https://api.github.com/users/joaoandremartins","html_url":"https://github.com/joaoandremartins","followers_url":"https://api.github.com/users/joaoandremartins/followers","following_url":"https://api.github.com/users/joaoandremartins/following{/other_user}","gists_url":"https://api.github.com/users/joaoandremartins/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoandremartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoandremartins/subscriptions","organizations_url":"https://api.github.com/users/joaoandremartins/orgs","repos_url":"https://api.github.com/users/joaoandremartins/repos","events_url":"https://api.github.com/users/joaoandremartins/events{/privacy}","received_events_url":"https://api.github.com/users/joaoandremartins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joaoandremartins/gcloud-intellij","description":"","fork":true,"url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij","forks_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/forks","keys_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/teams","hooks_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/hooks","issue_events_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/events","assignees_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/tags","blobs_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/languages","stargazers_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/stargazers","contributors_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/contributors","subscribers_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/subscribers","subscription_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/subscription","commits_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/merges","archive_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/downloads","issues_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/labels{/name}","releases_url":"https://api.github.com/repos/joaoandremartins/gcloud-intellij/releases{/id}","created_at":"2015-11-23T06:25:33Z","updated_at":"2015-11-23T06:25:35Z","pushed_at":"2015-12-08T02:17:20Z","git_url":"git://github.com/joaoandremartins/gcloud-intellij.git","ssh_url":"git@github.com:joaoandremartins/gcloud-intellij.git","clone_url":"https://github.com/joaoandremartins/gcloud-intellij.git","svn_url":"https://github.com/joaoandremartins/gcloud-intellij","homepage":null,"size":11732,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"5949cffefe2d867947ca42a5b5744c4f4db9dd01","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":38834157,"name":"gcloud-intellij","full_name":"GoogleCloudPlatform/gcloud-intellij","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij","description":"Plugin to support the Google Cloud Platform in IntelliJ IDEA.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/releases{/id}","created_at":"2015-07-09T17:08:59Z","updated_at":"2015-12-07T06:38:10Z","pushed_at":"2015-12-08T02:17:20Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-intellij.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-intellij.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-intellij","homepage":"","size":12854,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":39,"forks":3,"open_issues":39,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/230"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues/230"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-intellij/statuses/2d340b26e04c2476607d1890215683315f432342"}}}}