{"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/90779878","pull_request_review_id":11296558,"id":90779878,"diff_hunk":"@@ -0,0 +1,96 @@\n+package ru.unn.agile.TemperatureConverter.view;\n+\n+import ru.unn.agile.TemperatureConverter.viewmodel.TemperatureConverterViewModel;\n+\n+import javax.swing.*;\n+import java.awt.event.ActionEvent;\n+import java.awt.event.ActionListener;\n+\n+public final class TemperatureConverterView {\n+    private TemperatureConverterViewModel tempConverterViewModel;\n+    private JPanel mainPanel;\n+    private JTextField firstTextField;\n+    private JTextField secondTextField;\n+    private JComboBox firstComboBoxScales;\n+    private JComboBox secondComboBoxScales;\n+    private JLabel warningLabel;\n+\n+    private TemperatureConverterView() {\n+    }\n+\n+    private TemperatureConverterView(final TemperatureConverterViewModel tempConverterViewModel) {\n+        this.tempConverterViewModel = tempConverterViewModel;\n+\n+        tempConverterViewModel.setFirstScale((String) firstComboBoxScales.getSelectedItem());\n+        tempConverterViewModel.setSecondScale((String) secondComboBoxScales.getSelectedItem());\n+\n+        firstTextField.addActionListener(new ActionListener() {\n+            @Override\n+            public void actionPerformed(final ActionEvent actionEvent) {\n+                bindFirstValue();\n+                backBindSecondValue();\n+            }\n+        });\n+\n+        secondTextField.addActionListener(new ActionListener() {\n+            @Override\n+            public void actionPerformed(final ActionEvent actionEvent) {\n+                bindSecondValue();\n+                backBindFirstValue();\n+            }\n+        });\n+\n+        firstComboBoxScales.addActionListener(new ActionListener() {\n+            @Override\n+            public void actionPerformed(final ActionEvent actionEvent) {\n+                bindFirstScale();\n+                backBindFirstValue();","path":"code/TemperatureConverter/View/src/main/java/ru/unn/agile/TemperatureConverter/view/TemperatureConverterView.java","position":47,"original_position":47,"commit_id":"51a9dafd24153a46916988e4921a440f625cfdf0","original_commit_id":"51a9dafd24153a46916988e4921a440f625cfdf0","user":{"login":"antonlarin","id":1180097,"avatar_url":"https://avatars.githubusercontent.com/u/1180097?v=3","gravatar_id":"","url":"https://api.github.com/users/antonlarin","html_url":"https://github.com/antonlarin","followers_url":"https://api.github.com/users/antonlarin/followers","following_url":"https://api.github.com/users/antonlarin/following{/other_user}","gists_url":"https://api.github.com/users/antonlarin/gists{/gist_id}","starred_url":"https://api.github.com/users/antonlarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonlarin/subscriptions","organizations_url":"https://api.github.com/users/antonlarin/orgs","repos_url":"https://api.github.com/users/antonlarin/repos","events_url":"https://api.github.com/users/antonlarin/events{/privacy}","received_events_url":"https://api.github.com/users/antonlarin/received_events","type":"User","site_admin":false},"body":"Сначала я вообще подумал, что конвертация осуществляется только по Enter, этим объясняется моя ошибка. Таким образом, чтобы сменить шкалу исходной температуры нужно будет еще заново набрать температуру?","created_at":"2016-12-04T15:51:47Z","updated_at":"2016-12-04T15:51:47Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/146#discussion_r90779878","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/90779878"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/146#discussion_r90779878"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146","id":96408968,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/146","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/146.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/146.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/146","number":146,"state":"open","locked":false,"title":"Кудрявцев - Лабораторная работа #2","user":{"login":"Nikita-K","id":14181216,"avatar_url":"https://avatars.githubusercontent.com/u/14181216?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita-K","html_url":"https://github.com/Nikita-K","followers_url":"https://api.github.com/users/Nikita-K/followers","following_url":"https://api.github.com/users/Nikita-K/following{/other_user}","gists_url":"https://api.github.com/users/Nikita-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita-K/subscriptions","organizations_url":"https://api.github.com/users/Nikita-K/orgs","repos_url":"https://api.github.com/users/Nikita-K/repos","events_url":"https://api.github.com/users/Nikita-K/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita-K/received_events","type":"User","site_admin":false},"body":"Пробный pull request","created_at":"2016-12-03T20:07:55Z","updated_at":"2016-12-04T15:51:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24dafe007d0ddf129cacd5a2226a13baebba711c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146/comments","review_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/146/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/51a9dafd24153a46916988e4921a440f625cfdf0","head":{"label":"Nikita-K:kudriavtsev-nikita-lab2","ref":"kudriavtsev-nikita-lab2","sha":"51a9dafd24153a46916988e4921a440f625cfdf0","user":{"login":"Nikita-K","id":14181216,"avatar_url":"https://avatars.githubusercontent.com/u/14181216?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita-K","html_url":"https://github.com/Nikita-K","followers_url":"https://api.github.com/users/Nikita-K/followers","following_url":"https://api.github.com/users/Nikita-K/following{/other_user}","gists_url":"https://api.github.com/users/Nikita-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita-K/subscriptions","organizations_url":"https://api.github.com/users/Nikita-K/orgs","repos_url":"https://api.github.com/users/Nikita-K/repos","events_url":"https://api.github.com/users/Nikita-K/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita-K/received_events","type":"User","site_admin":false},"repo":{"id":72776871,"name":"agile-course-practice","full_name":"Nikita-K/agile-course-practice","owner":{"login":"Nikita-K","id":14181216,"avatar_url":"https://avatars.githubusercontent.com/u/14181216?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita-K","html_url":"https://github.com/Nikita-K","followers_url":"https://api.github.com/users/Nikita-K/followers","following_url":"https://api.github.com/users/Nikita-K/following{/other_user}","gists_url":"https://api.github.com/users/Nikita-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita-K/subscriptions","organizations_url":"https://api.github.com/users/Nikita-K/orgs","repos_url":"https://api.github.com/users/Nikita-K/repos","events_url":"https://api.github.com/users/Nikita-K/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita-K/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nikita-K/agile-course-practice","description":null,"fork":true,"url":"https://api.github.com/repos/Nikita-K/agile-course-practice","forks_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/forks","keys_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/events","assignees_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/merges","archive_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/Nikita-K/agile-course-practice/deployments","created_at":"2016-11-03T18:54:30Z","updated_at":"2016-11-03T18:54:31Z","pushed_at":"2016-12-04T08:49:54Z","git_url":"git://github.com/Nikita-K/agile-course-practice.git","ssh_url":"git@github.com:Nikita-K/agile-course-practice.git","clone_url":"https://github.com/Nikita-K/agile-course-practice.git","svn_url":"https://github.com/Nikita-K/agile-course-practice","homepage":null,"size":979,"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":"UNN-VMK-Software:master","ref":"master","sha":"38d741185b821727dee489a65235f25e5e9c8d75","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":72347248,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice","description":null,"fork":false,"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice","forks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/deployments","created_at":"2016-10-30T12:11:26Z","updated_at":"2016-10-30T12:11:39Z","pushed_at":"2016-12-04T08:49:55Z","git_url":"git://github.com/UNN-VMK-Software/agile-course-practice.git","ssh_url":"git@github.com:UNN-VMK-Software/agile-course-practice.git","clone_url":"https://github.com/UNN-VMK-Software/agile-course-practice.git","svn_url":"https://github.com/UNN-VMK-Software/agile-course-practice","homepage":null,"size":1231,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":6,"forks":36,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/146"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/146"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/51a9dafd24153a46916988e4921a440f625cfdf0"}}}}
{"actor":{"display_login":"antonlarin"}}