{"action":"created","comment":{"url":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments/48001386","id":48001386,"diff_hunk":"@@ -0,0 +1,113 @@\n+/*******************************************************************************\n+ * Copyright (c) 2012-2015 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.ide.ext.git.client.compare;\n+\n+import com.google.gwt.core.client.GWT;\n+import com.google.gwt.dom.client.Document;\n+import com.google.gwt.event.dom.client.ClickEvent;\n+import com.google.gwt.event.dom.client.ClickHandler;\n+import com.google.gwt.uibinder.client.UiBinder;\n+import com.google.gwt.uibinder.client.UiField;\n+import com.google.gwt.user.client.ui.Button;\n+import com.google.gwt.user.client.ui.Label;\n+import com.google.gwt.user.client.ui.SimplePanel;\n+import com.google.gwt.user.client.ui.Widget;\n+import com.google.inject.Inject;\n+import com.google.inject.Singleton;\n+\n+import org.eclipse.che.ide.api.theme.ThemeAgent;\n+import org.eclipse.che.ide.orion.compare.CompareConfig;\n+import org.eclipse.che.ide.orion.compare.CompareFactory;\n+import org.eclipse.che.ide.orion.compare.CompareWidget;\n+import org.eclipse.che.ide.orion.compare.FileOptions;\n+import org.eclipse.che.ide.ui.window.Window;\n+\n+/**\n+ * Implementation of {@link CompareView}.\n+ *\n+ * @author Igor Vinokur\n+ */\n+@Singleton\n+final class CompareViewImpl extends Window implements CompareView {\n+\n+    interface PreviewViewImplUiBinder extends UiBinder<Widget, CompareViewImpl> {\n+    }\n+\n+    private static final PreviewViewImplUiBinder UI_BINDER = GWT.create(PreviewViewImplUiBinder.class);\n+\n+    @UiField\n+    SimplePanel comparePanel;\n+    @UiField\n+    Label       revision;\n+\n+    private ActionDelegate delegate;\n+    private CompareWidget  compare;\n+    private ThemeAgent     themeAgent;\n+\n+    private final CompareFactory compareFactory;\n+\n+    @Inject\n+    public CompareViewImpl(CompareFactory compareFactory, ThemeAgent themeAgent) {\n+        this.compareFactory = compareFactory;\n+        this.themeAgent = themeAgent;\n+\n+        setWidget(UI_BINDER.createAndBindUi(this));\n+\n+        Button closeButton = createButton(\"close\", \"git-compare-close-btn\", new ClickHandler() {","path":"plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/compare/CompareViewImpl.java","position":64,"original_position":64,"commit_id":"fd06e849362f0919d92c62ab652311d4fae63311","original_commit_id":"fd06e849362f0919d92c62ab652311d4fae63311","user":{"login":"vzhukovskii","id":1968177,"avatar_url":"https://avatars.githubusercontent.com/u/1968177?v=3","gravatar_id":"","url":"https://api.github.com/users/vzhukovskii","html_url":"https://github.com/vzhukovskii","followers_url":"https://api.github.com/users/vzhukovskii/followers","following_url":"https://api.github.com/users/vzhukovskii/following{/other_user}","gists_url":"https://api.github.com/users/vzhukovskii/gists{/gist_id}","starred_url":"https://api.github.com/users/vzhukovskii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vzhukovskii/subscriptions","organizations_url":"https://api.github.com/users/vzhukovskii/orgs","repos_url":"https://api.github.com/users/vzhukovskii/repos","events_url":"https://api.github.com/users/vzhukovskii/events{/privacy}","received_events_url":"https://api.github.com/users/vzhukovskii/received_events","type":"User","site_admin":false},"body":"\"close\" - is this button name?","created_at":"2015-12-18T07:46:03Z","updated_at":"2015-12-18T07:46:03Z","html_url":"https://github.com/codenvy/che-plugins/pull/481#discussion_r48001386","pull_request_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/481","_links":{"self":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments/48001386"},"html":{"href":"https://github.com/codenvy/che-plugins/pull/481#discussion_r48001386"},"pull_request":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/481"}}},"pull_request":{"url":"https://api.github.com/repos/codenvy/che-plugins/pulls/481","id":54072463,"html_url":"https://github.com/codenvy/che-plugins/pull/481","diff_url":"https://github.com/codenvy/che-plugins/pull/481.diff","patch_url":"https://github.com/codenvy/che-plugins/pull/481.patch","issue_url":"https://api.github.com/repos/codenvy/che-plugins/issues/481","number":481,"state":"open","locked":false,"title":"IDEX-3674: Add git compare with latest repo version functionality","user":{"login":"vinokurig","id":7668752,"avatar_url":"https://avatars.githubusercontent.com/u/7668752?v=3","gravatar_id":"","url":"https://api.github.com/users/vinokurig","html_url":"https://github.com/vinokurig","followers_url":"https://api.github.com/users/vinokurig/followers","following_url":"https://api.github.com/users/vinokurig/following{/other_user}","gists_url":"https://api.github.com/users/vinokurig/gists{/gist_id}","starred_url":"https://api.github.com/users/vinokurig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinokurig/subscriptions","organizations_url":"https://api.github.com/users/vinokurig/orgs","repos_url":"https://api.github.com/users/vinokurig/repos","events_url":"https://api.github.com/users/vinokurig/events{/privacy}","received_events_url":"https://api.github.com/users/vinokurig/received_events","type":"User","site_admin":false},"body":"@skabashnyuk @vparfonov @sleshchenko  please review","created_at":"2015-12-18T07:28:12Z","updated_at":"2015-12-18T07:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28edb340cb010728488a72e929d06ffea786f9f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/481/commits","review_comments_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/481/comments","review_comment_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codenvy/che-plugins/issues/481/comments","statuses_url":"https://api.github.com/repos/codenvy/che-plugins/statuses/fd06e849362f0919d92c62ab652311d4fae63311","head":{"label":"codenvy:IDEX-3674","ref":"IDEX-3674","sha":"fd06e849362f0919d92c62ab652311d4fae63311","user":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"repo":{"id":32935729,"name":"che-plugins","full_name":"codenvy/che-plugins","owner":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codenvy/che-plugins","description":"Plugins for che","fork":false,"url":"https://api.github.com/repos/codenvy/che-plugins","forks_url":"https://api.github.com/repos/codenvy/che-plugins/forks","keys_url":"https://api.github.com/repos/codenvy/che-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codenvy/che-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codenvy/che-plugins/teams","hooks_url":"https://api.github.com/repos/codenvy/che-plugins/hooks","issue_events_url":"https://api.github.com/repos/codenvy/che-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/codenvy/che-plugins/events","assignees_url":"https://api.github.com/repos/codenvy/che-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/codenvy/che-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/codenvy/che-plugins/tags","blobs_url":"https://api.github.com/repos/codenvy/che-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codenvy/che-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codenvy/che-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/codenvy/che-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codenvy/che-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/codenvy/che-plugins/languages","stargazers_url":"https://api.github.com/repos/codenvy/che-plugins/stargazers","contributors_url":"https://api.github.com/repos/codenvy/che-plugins/contributors","subscribers_url":"https://api.github.com/repos/codenvy/che-plugins/subscribers","subscription_url":"https://api.github.com/repos/codenvy/che-plugins/subscription","commits_url":"https://api.github.com/repos/codenvy/che-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/codenvy/che-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/codenvy/che-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/codenvy/che-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/codenvy/che-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/codenvy/che-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codenvy/che-plugins/merges","archive_url":"https://api.github.com/repos/codenvy/che-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codenvy/che-plugins/downloads","issues_url":"https://api.github.com/repos/codenvy/che-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/codenvy/che-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/codenvy/che-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/codenvy/che-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codenvy/che-plugins/labels{/name}","releases_url":"https://api.github.com/repos/codenvy/che-plugins/releases{/id}","created_at":"2015-03-26T15:30:37Z","updated_at":"2015-12-15T12:40:58Z","pushed_at":"2015-12-18T07:45:38Z","git_url":"git://github.com/codenvy/che-plugins.git","ssh_url":"git@github.com:codenvy/che-plugins.git","clone_url":"https://github.com/codenvy/che-plugins.git","svn_url":"https://github.com/codenvy/che-plugins","homepage":null,"size":24055,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":4,"forks":23,"open_issues":4,"watchers":16,"default_branch":"master"}},"base":{"label":"codenvy:master","ref":"master","sha":"430f02b4ae02835cb83a197ae5fc417038eebe10","user":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"repo":{"id":32935729,"name":"che-plugins","full_name":"codenvy/che-plugins","owner":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codenvy/che-plugins","description":"Plugins for che","fork":false,"url":"https://api.github.com/repos/codenvy/che-plugins","forks_url":"https://api.github.com/repos/codenvy/che-plugins/forks","keys_url":"https://api.github.com/repos/codenvy/che-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codenvy/che-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codenvy/che-plugins/teams","hooks_url":"https://api.github.com/repos/codenvy/che-plugins/hooks","issue_events_url":"https://api.github.com/repos/codenvy/che-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/codenvy/che-plugins/events","assignees_url":"https://api.github.com/repos/codenvy/che-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/codenvy/che-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/codenvy/che-plugins/tags","blobs_url":"https://api.github.com/repos/codenvy/che-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codenvy/che-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codenvy/che-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/codenvy/che-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codenvy/che-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/codenvy/che-plugins/languages","stargazers_url":"https://api.github.com/repos/codenvy/che-plugins/stargazers","contributors_url":"https://api.github.com/repos/codenvy/che-plugins/contributors","subscribers_url":"https://api.github.com/repos/codenvy/che-plugins/subscribers","subscription_url":"https://api.github.com/repos/codenvy/che-plugins/subscription","commits_url":"https://api.github.com/repos/codenvy/che-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/codenvy/che-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/codenvy/che-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/codenvy/che-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/codenvy/che-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/codenvy/che-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codenvy/che-plugins/merges","archive_url":"https://api.github.com/repos/codenvy/che-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codenvy/che-plugins/downloads","issues_url":"https://api.github.com/repos/codenvy/che-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/codenvy/che-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/codenvy/che-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/codenvy/che-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codenvy/che-plugins/labels{/name}","releases_url":"https://api.github.com/repos/codenvy/che-plugins/releases{/id}","created_at":"2015-03-26T15:30:37Z","updated_at":"2015-12-15T12:40:58Z","pushed_at":"2015-12-18T07:45:38Z","git_url":"git://github.com/codenvy/che-plugins.git","ssh_url":"git@github.com:codenvy/che-plugins.git","clone_url":"https://github.com/codenvy/che-plugins.git","svn_url":"https://github.com/codenvy/che-plugins","homepage":null,"size":24055,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":4,"forks":23,"open_issues":4,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/481"},"html":{"href":"https://github.com/codenvy/che-plugins/pull/481"},"issue":{"href":"https://api.github.com/repos/codenvy/che-plugins/issues/481"},"comments":{"href":"https://api.github.com/repos/codenvy/che-plugins/issues/481/comments"},"review_comments":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/481/comments"},"review_comment":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/481/commits"},"statuses":{"href":"https://api.github.com/repos/codenvy/che-plugins/statuses/fd06e849362f0919d92c62ab652311d4fae63311"}}}}