{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments/87984549","pull_request_review_id":8571822,"id":87984549,"diff_hunk":"@@ -115,21 +119,73 @@ public boolean hasAuth() {\n   }\n \n   @Override\n-  public boolean isUpdated() {\n+  public boolean isStorageUpdated() {\n     return client.getState() == State.UPDATED;\n   }\n \n   @Override\n+  public void checkForUpdates(IProgressMonitor progress) {\n+    this.checkForUpdateResult = client.checkIfGlobalStorageNeedUpdate(getConfig(),\n+      new WrappedProgressMonitor(progress, \"Check for configuration updates on server '\" + getId() + \"'\"));\n+    if (checkForUpdateResult.needUpdate()) {\n+      SonarLintCorePlugin.getDefault().debug(\"Following configuration changes found on server '\" + getId() + \"' compared to local storage:\");\n+      for (String change : checkForUpdateResult.changelog()) {\n+        SonarLintCorePlugin.getDefault().debug(\"  *  \" + change);\n+      }\n+    }\n+    notifyAllListeners();\n+  }\n+\n+  @Override\n+  public boolean hasUpdates() {\n+    return this.checkForUpdateResult != null && this.checkForUpdateResult.needUpdate();\n+  }\n+\n+  @Override\n+  public List<String> changelog() {\n+    return this.checkForUpdateResult != null ? checkForUpdateResult.changelog() : Collections.emptyList();\n+  }\n+\n+  private static class WrappedProgressMonitor extends ProgressMonitor {\n+\n+    private final IProgressMonitor wrapped;\n+    private int worked = 0;\n+\n+    public WrappedProgressMonitor(IProgressMonitor wrapped, String taskName) {\n+      this.wrapped = wrapped;\n+      wrapped.beginTask(taskName, 100);\n+    }\n+\n+    @Override\n+    public boolean isCanceled() {\n+      return wrapped.isCanceled();\n+    }\n+\n+    @Override\n+    public void setFraction(float fraction) {\n+      int total = (int) (fraction * 100);","path":"org.sonarlint.eclipse.core/src/org/sonarlint/eclipse/core/internal/server/Server.java","position":94,"original_position":94,"commit_id":"39f168f01ffdaba45b946d0be618fe6b70f8eb2f","original_commit_id":"39f168f01ffdaba45b946d0be618fe6b70f8eb2f","user":{"login":"SonarTech","id":1842438,"avatar_url":"https://avatars.githubusercontent.com/u/1842438?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarTech","html_url":"https://github.com/SonarTech","followers_url":"https://api.github.com/users/SonarTech/followers","following_url":"https://api.github.com/users/SonarTech/following{/other_user}","gists_url":"https://api.github.com/users/SonarTech/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarTech/subscriptions","organizations_url":"https://api.github.com/users/SonarTech/orgs","repos_url":"https://api.github.com/users/SonarTech/repos","events_url":"https://api.github.com/users/SonarTech/events{/privacy}","received_events_url":"https://api.github.com/users/SonarTech/received_events","type":"User","site_admin":false},"body":"![CRITICAL](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-critical.png) Use a \"double\" or \"BigDecimal\" instead. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://dory.sonarsource.com/sonarqube/coding_rules#rule_key=squid%3AS2164)\n","created_at":"2016-11-15T10:10:09Z","updated_at":"2016-11-15T10:10:09Z","html_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/64#discussion_r87984549","pull_request_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments/87984549"},"html":{"href":"https://github.com/SonarSource/sonarlint-eclipse/pull/64#discussion_r87984549"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64","id":93732972,"html_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/64","diff_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/64.diff","patch_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/64.patch","issue_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/64","number":64,"state":"open","locked":false,"title":"SLE-111 Initial version of the update notification","user":{"login":"henryju","id":281596,"avatar_url":"https://avatars.githubusercontent.com/u/281596?v=3","gravatar_id":"","url":"https://api.github.com/users/henryju","html_url":"https://github.com/henryju","followers_url":"https://api.github.com/users/henryju/followers","following_url":"https://api.github.com/users/henryju/following{/other_user}","gists_url":"https://api.github.com/users/henryju/gists{/gist_id}","starred_url":"https://api.github.com/users/henryju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryju/subscriptions","organizations_url":"https://api.github.com/users/henryju/orgs","repos_url":"https://api.github.com/users/henryju/repos","events_url":"https://api.github.com/users/henryju/events{/privacy}","received_events_url":"https://api.github.com/users/henryju/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-15T09:55:11Z","updated_at":"2016-11-15T10:10:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19ba0a2c5f53a531547142fece8cc2d47dae2a31","assignee":{"login":"janos-ss","id":21700885,"avatar_url":"https://avatars.githubusercontent.com/u/21700885?v=3","gravatar_id":"","url":"https://api.github.com/users/janos-ss","html_url":"https://github.com/janos-ss","followers_url":"https://api.github.com/users/janos-ss/followers","following_url":"https://api.github.com/users/janos-ss/following{/other_user}","gists_url":"https://api.github.com/users/janos-ss/gists{/gist_id}","starred_url":"https://api.github.com/users/janos-ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janos-ss/subscriptions","organizations_url":"https://api.github.com/users/janos-ss/orgs","repos_url":"https://api.github.com/users/janos-ss/repos","events_url":"https://api.github.com/users/janos-ss/events{/privacy}","received_events_url":"https://api.github.com/users/janos-ss/received_events","type":"User","site_admin":false},"assignees":[{"login":"janos-ss","id":21700885,"avatar_url":"https://avatars.githubusercontent.com/u/21700885?v=3","gravatar_id":"","url":"https://api.github.com/users/janos-ss","html_url":"https://github.com/janos-ss","followers_url":"https://api.github.com/users/janos-ss/followers","following_url":"https://api.github.com/users/janos-ss/following{/other_user}","gists_url":"https://api.github.com/users/janos-ss/gists{/gist_id}","starred_url":"https://api.github.com/users/janos-ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janos-ss/subscriptions","organizations_url":"https://api.github.com/users/janos-ss/orgs","repos_url":"https://api.github.com/users/janos-ss/repos","events_url":"https://api.github.com/users/janos-ss/events{/privacy}","received_events_url":"https://api.github.com/users/janos-ss/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/64/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/39f168f01ffdaba45b946d0be618fe6b70f8eb2f","head":{"label":"SonarSource:feature/update_notification","ref":"feature/update_notification","sha":"39f168f01ffdaba45b946d0be618fe6b70f8eb2f","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":1350022,"name":"sonarlint-eclipse","full_name":"SonarSource/sonarlint-eclipse","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonarlint-eclipse","description":":waning_crescent_moon: Eclipse Plugin","fork":false,"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse","forks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/forks","keys_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/events","assignees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/merges","archive_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/deployments","created_at":"2011-02-10T09:32:22Z","updated_at":"2016-11-09T15:46:13Z","pushed_at":"2016-11-15T09:55:11Z","git_url":"git://github.com/SonarSource/sonarlint-eclipse.git","ssh_url":"git@github.com:SonarSource/sonarlint-eclipse.git","clone_url":"https://github.com/SonarSource/sonarlint-eclipse.git","svn_url":"https://github.com/SonarSource/sonarlint-eclipse","homepage":"http://docs.sonarqube.org/display/SONAR/Installing+SonarQube+in+Eclipse","size":14414,"stargazers_count":89,"watchers_count":89,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":3,"forks":65,"open_issues":3,"watchers":89,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"3ffdbff3051658e3ccc1bc33108e9d41dc323940","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":1350022,"name":"sonarlint-eclipse","full_name":"SonarSource/sonarlint-eclipse","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonarlint-eclipse","description":":waning_crescent_moon: Eclipse Plugin","fork":false,"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse","forks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/forks","keys_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/events","assignees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/merges","archive_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/deployments","created_at":"2011-02-10T09:32:22Z","updated_at":"2016-11-09T15:46:13Z","pushed_at":"2016-11-15T09:55:11Z","git_url":"git://github.com/SonarSource/sonarlint-eclipse.git","ssh_url":"git@github.com:SonarSource/sonarlint-eclipse.git","clone_url":"https://github.com/SonarSource/sonarlint-eclipse.git","svn_url":"https://github.com/SonarSource/sonarlint-eclipse","homepage":"http://docs.sonarqube.org/display/SONAR/Installing+SonarQube+in+Eclipse","size":14414,"stargazers_count":89,"watchers_count":89,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":3,"forks":65,"open_issues":3,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64"},"html":{"href":"https://github.com/SonarSource/sonarlint-eclipse/pull/64"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/64"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/39f168f01ffdaba45b946d0be618fe6b70f8eb2f"}}}}
{"actor":{"display_login":"SonarTech"}}