{"action":"created","comment":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/comments/77878577","id":77878577,"diff_hunk":"@@ -0,0 +1,142 @@\n+/*  Copyright (C) 2016 JabRef contributors.\n+    This program is free software; you can redistribute it and/or modify\n+    it under the terms of the GNU General Public License as published by\n+    the Free Software Foundation; either version 2 of the License, or\n+    (at your option) any later version.\n+\n+    This program is distributed in the hope that it will be useful,\n+    but WITHOUT ANY WARRANTY; without even the implied warranty of\n+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+    GNU General Public License for more details.\n+\n+    You should have received a copy of the GNU General Public License along\n+    with this program; if not, write to the Free Software Foundation, Inc.,\n+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n+*/\n+package net.sf.jabref.gui.errorconsole;\n+\n+import javafx.collections.ObservableList;\n+import javafx.fxml.FXML;\n+import javafx.scene.control.Alert.AlertType;\n+import javafx.scene.control.Button;\n+import javafx.scene.control.ButtonBar;\n+import javafx.scene.control.DialogPane;\n+import javafx.scene.control.Label;\n+import javafx.scene.control.ListCell;\n+import javafx.scene.control.ListView;\n+import javafx.scene.text.Text;\n+import javafx.stage.Stage;\n+import javafx.util.Callback;\n+\n+import net.sf.jabref.gui.FXAlert;\n+import net.sf.jabref.gui.IconTheme;\n+import net.sf.jabref.logic.error.LogMessageWithPriority;\n+import net.sf.jabref.logic.error.MessagePriority;\n+import net.sf.jabref.logic.l10n.Localization;\n+import net.sf.jabref.logic.logging.LogMessage;\n+\n+import com.airhacks.afterburner.views.FXMLView;\n+\n+public class ErrorConsoleView extends FXMLView {\n+\n+    private final ErrorConsoleViewModel errorViewModel = new ErrorConsoleViewModel();\n+\n+    @FXML\n+    private Button closeButton;\n+    @FXML\n+    private Button copyLogButton;\n+    @FXML\n+    private Button createIssueButton;\n+    @FXML\n+    private ListView<LogMessageWithPriority> allMessage;\n+    @FXML\n+    private Label descriptionLabel;\n+\n+    public ErrorConsoleView() {\n+        super();\n+        bundle = Localization.getMessages();\n+    }\n+\n+    public void show() {\n+        FXAlert errorConsole = new FXAlert(AlertType.ERROR, Localization.lang(\"Event log\"), false);\n+        DialogPane pane = (DialogPane) this.getView();\n+        errorConsole.setDialogPane(pane);\n+        errorConsole.setResizable(true);\n+        errorConsole.show();\n+    }\n+\n+    @FXML\n+    private void initialize() {\n+        ButtonBar.setButtonData(copyLogButton, ButtonBar.ButtonData.LEFT);\n+        ButtonBar.setButtonData(createIssueButton, ButtonBar.ButtonData.LEFT);\n+\n+        ObservableList<LogMessageWithPriority> masterData = LogMessage.getInstance().messagesProperty();","path":"src/main/java/net/sf/jabref/gui/errorconsole/ErrorConsoleView.java","position":73,"original_position":73,"commit_id":"0cbf8ec03c0adc74475f21e38a563dae23341719","original_commit_id":"0cbf8ec03c0adc74475f21e38a563dae23341719","user":{"login":"tobiasdiez","id":5037600,"avatar_url":"https://avatars.githubusercontent.com/u/5037600?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiasdiez","html_url":"https://github.com/tobiasdiez","followers_url":"https://api.github.com/users/tobiasdiez/followers","following_url":"https://api.github.com/users/tobiasdiez/following{/other_user}","gists_url":"https://api.github.com/users/tobiasdiez/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasdiez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasdiez/subscriptions","organizations_url":"https://api.github.com/users/tobiasdiez/orgs","repos_url":"https://api.github.com/users/tobiasdiez/repos","events_url":"https://api.github.com/users/tobiasdiez/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasdiez/received_events","type":"User","site_admin":false},"body":"The view shouldn't know about the datasource (in this case `LogMessage`) but ask the viewmodel. Could you please add a pass-through getter in errorViewModel.\r\nAlso inline `masterData`, i.e. `allMessages.setItems(errorViewModel.getMessages())`","created_at":"2016-09-07T18:29:50Z","updated_at":"2016-09-07T18:29:50Z","html_url":"https://github.com/JabRef/jabref/pull/1383#discussion_r77878577","pull_request_url":"https://api.github.com/repos/JabRef/jabref/pulls/1383","_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments/77878577"},"html":{"href":"https://github.com/JabRef/jabref/pull/1383#discussion_r77878577"},"pull_request":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1383"}}},"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/1383","id":69657543,"html_url":"https://github.com/JabRef/jabref/pull/1383","diff_url":"https://github.com/JabRef/jabref/pull/1383.diff","patch_url":"https://github.com/JabRef/jabref/pull/1383.patch","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/1383","number":1383,"state":"open","locked":false,"title":"Implemented error console in JavaFX","user":{"login":"motokito","id":13031192,"avatar_url":"https://avatars.githubusercontent.com/u/13031192?v=3","gravatar_id":"","url":"https://api.github.com/users/motokito","html_url":"https://github.com/motokito","followers_url":"https://api.github.com/users/motokito/followers","following_url":"https://api.github.com/users/motokito/following{/other_user}","gists_url":"https://api.github.com/users/motokito/gists{/gist_id}","starred_url":"https://api.github.com/users/motokito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motokito/subscriptions","organizations_url":"https://api.github.com/users/motokito/orgs","repos_url":"https://api.github.com/users/motokito/repos","events_url":"https://api.github.com/users/motokito/events{/privacy}","received_events_url":"https://api.github.com/users/motokito/received_events","type":"User","site_admin":false},"body":"This is the error console in JabRef being implemented in JavaFX. The Console is highly flexible in positioning and styling its components through a fxml and corresponding css stylesheet.\r\n\r\nAlso to show better the error console content (Log, Output, Exception), i have allowed to resize error console windows manually.\r\n\r\n![error console dialog](https://cloud.githubusercontent.com/assets/13031192/17971852/ca6d07dc-6adc-11e6-91f3-88541458fcd3.PNG)\r\n\r\nPS:\r\n* update the error console screenshot\r\n* new feature:\r\n * copy log: user can copy the log\r\n * report issue: user can report directly issues from console.\r\n\r\n#872: have done\r\n\r\n- [X] Change in CHANGELOG.md described\r\n- [X] Screenshots added (for bigger UI changes)\r\n","created_at":"2016-05-11T11:42:51Z","updated_at":"2016-09-07T18:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fec7a76e21e96c3d3578e7d34c4d7d354aa11a3a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JabRef/jabref/pulls/1383/commits","review_comments_url":"https://api.github.com/repos/JabRef/jabref/pulls/1383/comments","review_comment_url":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/1383/comments","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/0cbf8ec03c0adc74475f21e38a563dae23341719","head":{"label":"motokito:ErrorConsoleDialogFX","ref":"ErrorConsoleDialogFX","sha":"0cbf8ec03c0adc74475f21e38a563dae23341719","user":{"login":"motokito","id":13031192,"avatar_url":"https://avatars.githubusercontent.com/u/13031192?v=3","gravatar_id":"","url":"https://api.github.com/users/motokito","html_url":"https://github.com/motokito","followers_url":"https://api.github.com/users/motokito/followers","following_url":"https://api.github.com/users/motokito/following{/other_user}","gists_url":"https://api.github.com/users/motokito/gists{/gist_id}","starred_url":"https://api.github.com/users/motokito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motokito/subscriptions","organizations_url":"https://api.github.com/users/motokito/orgs","repos_url":"https://api.github.com/users/motokito/repos","events_url":"https://api.github.com/users/motokito/events{/privacy}","received_events_url":"https://api.github.com/users/motokito/received_events","type":"User","site_admin":false},"repo":{"id":48035753,"name":"jabref","full_name":"motokito/jabref","owner":{"login":"motokito","id":13031192,"avatar_url":"https://avatars.githubusercontent.com/u/13031192?v=3","gravatar_id":"","url":"https://api.github.com/users/motokito","html_url":"https://github.com/motokito","followers_url":"https://api.github.com/users/motokito/followers","following_url":"https://api.github.com/users/motokito/following{/other_user}","gists_url":"https://api.github.com/users/motokito/gists{/gist_id}","starred_url":"https://api.github.com/users/motokito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motokito/subscriptions","organizations_url":"https://api.github.com/users/motokito/orgs","repos_url":"https://api.github.com/users/motokito/repos","events_url":"https://api.github.com/users/motokito/events{/privacy}","received_events_url":"https://api.github.com/users/motokito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/motokito/jabref","description":"Graphical Java application for managing bibtex (.bib) databases","fork":true,"url":"https://api.github.com/repos/motokito/jabref","forks_url":"https://api.github.com/repos/motokito/jabref/forks","keys_url":"https://api.github.com/repos/motokito/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motokito/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motokito/jabref/teams","hooks_url":"https://api.github.com/repos/motokito/jabref/hooks","issue_events_url":"https://api.github.com/repos/motokito/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/motokito/jabref/events","assignees_url":"https://api.github.com/repos/motokito/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/motokito/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/motokito/jabref/tags","blobs_url":"https://api.github.com/repos/motokito/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motokito/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motokito/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/motokito/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motokito/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/motokito/jabref/languages","stargazers_url":"https://api.github.com/repos/motokito/jabref/stargazers","contributors_url":"https://api.github.com/repos/motokito/jabref/contributors","subscribers_url":"https://api.github.com/repos/motokito/jabref/subscribers","subscription_url":"https://api.github.com/repos/motokito/jabref/subscription","commits_url":"https://api.github.com/repos/motokito/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/motokito/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/motokito/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/motokito/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/motokito/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/motokito/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motokito/jabref/merges","archive_url":"https://api.github.com/repos/motokito/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motokito/jabref/downloads","issues_url":"https://api.github.com/repos/motokito/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/motokito/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/motokito/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/motokito/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motokito/jabref/labels{/name}","releases_url":"https://api.github.com/repos/motokito/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/motokito/jabref/deployments","created_at":"2015-12-15T10:23:25Z","updated_at":"2016-05-11T12:08:59Z","pushed_at":"2016-09-07T17:32:02Z","git_url":"git://github.com/motokito/jabref.git","ssh_url":"git@github.com:motokito/jabref.git","clone_url":"https://github.com/motokito/jabref.git","svn_url":"https://github.com/motokito/jabref","homepage":"http://www.jabref.org/","size":91020,"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":"JabRef:javafx","ref":"javafx","sha":"ec8423924e91264156ed160b6a92d51faaffdd3e","user":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars.githubusercontent.com/u/3914421?v=3","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"repo":{"id":17634071,"name":"jabref","full_name":"JabRef/jabref","owner":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars.githubusercontent.com/u/3914421?v=3","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JabRef/jabref","description":"Graphical Java application for managing BibTeX and Biblatex (.bib) databases","fork":false,"url":"https://api.github.com/repos/JabRef/jabref","forks_url":"https://api.github.com/repos/JabRef/jabref/forks","keys_url":"https://api.github.com/repos/JabRef/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JabRef/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JabRef/jabref/teams","hooks_url":"https://api.github.com/repos/JabRef/jabref/hooks","issue_events_url":"https://api.github.com/repos/JabRef/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/JabRef/jabref/events","assignees_url":"https://api.github.com/repos/JabRef/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/JabRef/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/JabRef/jabref/tags","blobs_url":"https://api.github.com/repos/JabRef/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JabRef/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JabRef/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/JabRef/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/JabRef/jabref/languages","stargazers_url":"https://api.github.com/repos/JabRef/jabref/stargazers","contributors_url":"https://api.github.com/repos/JabRef/jabref/contributors","subscribers_url":"https://api.github.com/repos/JabRef/jabref/subscribers","subscription_url":"https://api.github.com/repos/JabRef/jabref/subscription","commits_url":"https://api.github.com/repos/JabRef/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/JabRef/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/JabRef/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/JabRef/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/JabRef/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/JabRef/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JabRef/jabref/merges","archive_url":"https://api.github.com/repos/JabRef/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JabRef/jabref/downloads","issues_url":"https://api.github.com/repos/JabRef/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/JabRef/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/JabRef/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/JabRef/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JabRef/jabref/labels{/name}","releases_url":"https://api.github.com/repos/JabRef/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/JabRef/jabref/deployments","created_at":"2014-03-11T14:48:42Z","updated_at":"2016-09-02T12:31:12Z","pushed_at":"2016-09-07T18:12:19Z","git_url":"git://github.com/JabRef/jabref.git","ssh_url":"git@github.com:JabRef/jabref.git","clone_url":"https://github.com/JabRef/jabref.git","svn_url":"https://github.com/JabRef/jabref","homepage":"http://www.jabref.org/","size":98475,"stargazers_count":344,"watchers_count":344,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":202,"forks":256,"open_issues":202,"watchers":344,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1383"},"html":{"href":"https://github.com/JabRef/jabref/pull/1383"},"issue":{"href":"https://api.github.com/repos/JabRef/jabref/issues/1383"},"comments":{"href":"https://api.github.com/repos/JabRef/jabref/issues/1383/comments"},"review_comments":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1383/comments"},"review_comment":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1383/commits"},"statuses":{"href":"https://api.github.com/repos/JabRef/jabref/statuses/0cbf8ec03c0adc74475f21e38a563dae23341719"}}}}
{"actor":{"display_login":"tobiasdiez"}}