{"action":"created","comment":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/comments/105650566","pull_request_review_id":26539067,"id":105650566,"diff_hunk":"@@ -808,6 +811,33 @@ private void paste() {\n         }\n     }\n \n+    private void copyTitle() {\n+        List<BibEntry> bes = mainTable.getSelectedEntries();\n+        if (!bes.isEmpty()) {\n+            storeCurrentEdit();\n+            List<String> titles = new ArrayList<>(bes.size());\n+\n+            // Collect all non-null keys.\n+            for (BibEntry be : bes) {\n+                be.getTitle().ifPresent(titles::add);","path":"src/main/java/org/jabref/gui/BasePanel.java","position":null,"original_position":22,"commit_id":"24651c600d438270f76104c0794b92da5e001548","original_commit_id":"cf68b5a28654fd3aea85bb249592ee4c8c8ab7e3","user":{"login":"ohuang12","id":5990999,"avatar_url":"https://avatars1.githubusercontent.com/u/5990999?v=3","gravatar_id":"","url":"https://api.github.com/users/ohuang12","html_url":"https://github.com/ohuang12","followers_url":"https://api.github.com/users/ohuang12/followers","following_url":"https://api.github.com/users/ohuang12/following{/other_user}","gists_url":"https://api.github.com/users/ohuang12/gists{/gist_id}","starred_url":"https://api.github.com/users/ohuang12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohuang12/subscriptions","organizations_url":"https://api.github.com/users/ohuang12/orgs","repos_url":"https://api.github.com/users/ohuang12/repos","events_url":"https://api.github.com/users/ohuang12/events{/privacy}","received_events_url":"https://api.github.com/users/ohuang12/received_events","type":"User","site_admin":false},"body":"I couldn't find the helper to transform an optional into a stream in the [Optional](https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html) documentation. \r\nI believe this is something that was added later in JDK 9.\r\nI looked into [other ways](http://stackoverflow.com/questions/22725537/using-java-8s-optional-with-streamflatmap) to use flatMap, but these did not look very nice to me.\r\n\r\nDo you think I should change it any way or just leave it like it is now (with the filter + map)?","created_at":"2017-03-13T12:42:58Z","updated_at":"2017-03-13T12:42:58Z","html_url":"https://github.com/JabRef/jabref/pull/2639#discussion_r105650566","pull_request_url":"https://api.github.com/repos/JabRef/jabref/pulls/2639","_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments/105650566"},"html":{"href":"https://github.com/JabRef/jabref/pull/2639#discussion_r105650566"},"pull_request":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/2639"}}},"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/2639","id":110315542,"html_url":"https://github.com/JabRef/jabref/pull/2639","diff_url":"https://github.com/JabRef/jabref/pull/2639.diff","patch_url":"https://github.com/JabRef/jabref/pull/2639.patch","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/2639","number":2639,"state":"open","locked":false,"title":"Add option to copy title of bibentries","user":{"login":"ohuang12","id":5990999,"avatar_url":"https://avatars1.githubusercontent.com/u/5990999?v=3","gravatar_id":"","url":"https://api.github.com/users/ohuang12","html_url":"https://github.com/ohuang12","followers_url":"https://api.github.com/users/ohuang12/followers","following_url":"https://api.github.com/users/ohuang12/following{/other_user}","gists_url":"https://api.github.com/users/ohuang12/gists{/gist_id}","starred_url":"https://api.github.com/users/ohuang12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohuang12/subscriptions","organizations_url":"https://api.github.com/users/ohuang12/orgs","repos_url":"https://api.github.com/users/ohuang12/repos","events_url":"https://api.github.com/users/ohuang12/events{/privacy}","received_events_url":"https://api.github.com/users/ohuang12/received_events","type":"User","site_admin":false},"body":"Implements issue [#210](https://github.com/koppor/jabref/issues/210) from [@koppor](https://github.com/koppor).\r\n\r\nAdds an option to copy the title of a bibtex entry when right clicking one (or more) to the clipboard.\r\nAlso adds the option to copy the title using `Edit -> Copy title`.\r\n\r\n![edit_menu](https://cloud.githubusercontent.com/assets/5990999/23835666/c444515e-076b-11e7-919f-fe0ee3b74333.png)\r\n![right_click_menu](https://cloud.githubusercontent.com/assets/5990999/23835669/cc9c01a8-076b-11e7-8bbd-68bf62335c8e.png)\r\n\r\n- [x] Change in CHANGELOG.md described\r\n- [ ] Tests created for changes\r\n- [x] Screenshots added (for bigger UI changes)\r\n- [x] Manually tested changed features in running JabRef\r\n- [ ] Check documentation status (Issue created for outdated help page at [help.jabref.org](https://github.com/JabRef/help.jabref.org/issues)?)\r\n- [x] If you changed the localization: Did you run `gradle localizationUpdate`?\r\n\r\n","created_at":"2017-03-12T21:12:57Z","updated_at":"2017-03-13T12:42:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"459e282f831449fff4695a8ee307cf6c66a08b0c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JabRef/jabref/pulls/2639/commits","review_comments_url":"https://api.github.com/repos/JabRef/jabref/pulls/2639/comments","review_comment_url":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/2639/comments","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/24651c600d438270f76104c0794b92da5e001548","head":{"label":"delftswa2017:bibentryCopyTitle","ref":"bibentryCopyTitle","sha":"24651c600d438270f76104c0794b92da5e001548","user":{"login":"delftswa2017","id":24945322,"avatar_url":"https://avatars2.githubusercontent.com/u/24945322?v=3","gravatar_id":"","url":"https://api.github.com/users/delftswa2017","html_url":"https://github.com/delftswa2017","followers_url":"https://api.github.com/users/delftswa2017/followers","following_url":"https://api.github.com/users/delftswa2017/following{/other_user}","gists_url":"https://api.github.com/users/delftswa2017/gists{/gist_id}","starred_url":"https://api.github.com/users/delftswa2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delftswa2017/subscriptions","organizations_url":"https://api.github.com/users/delftswa2017/orgs","repos_url":"https://api.github.com/users/delftswa2017/repos","events_url":"https://api.github.com/users/delftswa2017/events{/privacy}","received_events_url":"https://api.github.com/users/delftswa2017/received_events","type":"Organization","site_admin":false},"repo":{"id":82314244,"name":"jabref","full_name":"delftswa2017/jabref","owner":{"login":"delftswa2017","id":24945322,"avatar_url":"https://avatars2.githubusercontent.com/u/24945322?v=3","gravatar_id":"","url":"https://api.github.com/users/delftswa2017","html_url":"https://github.com/delftswa2017","followers_url":"https://api.github.com/users/delftswa2017/followers","following_url":"https://api.github.com/users/delftswa2017/following{/other_user}","gists_url":"https://api.github.com/users/delftswa2017/gists{/gist_id}","starred_url":"https://api.github.com/users/delftswa2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delftswa2017/subscriptions","organizations_url":"https://api.github.com/users/delftswa2017/orgs","repos_url":"https://api.github.com/users/delftswa2017/repos","events_url":"https://api.github.com/users/delftswa2017/events{/privacy}","received_events_url":"https://api.github.com/users/delftswa2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/delftswa2017/jabref","description":"Graphical Java application for managing BibTeX and BibLaTeX (.bib) databases","fork":true,"url":"https://api.github.com/repos/delftswa2017/jabref","forks_url":"https://api.github.com/repos/delftswa2017/jabref/forks","keys_url":"https://api.github.com/repos/delftswa2017/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delftswa2017/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delftswa2017/jabref/teams","hooks_url":"https://api.github.com/repos/delftswa2017/jabref/hooks","issue_events_url":"https://api.github.com/repos/delftswa2017/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/delftswa2017/jabref/events","assignees_url":"https://api.github.com/repos/delftswa2017/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/delftswa2017/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/delftswa2017/jabref/tags","blobs_url":"https://api.github.com/repos/delftswa2017/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delftswa2017/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delftswa2017/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/delftswa2017/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delftswa2017/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/delftswa2017/jabref/languages","stargazers_url":"https://api.github.com/repos/delftswa2017/jabref/stargazers","contributors_url":"https://api.github.com/repos/delftswa2017/jabref/contributors","subscribers_url":"https://api.github.com/repos/delftswa2017/jabref/subscribers","subscription_url":"https://api.github.com/repos/delftswa2017/jabref/subscription","commits_url":"https://api.github.com/repos/delftswa2017/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/delftswa2017/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/delftswa2017/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/delftswa2017/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/delftswa2017/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/delftswa2017/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delftswa2017/jabref/merges","archive_url":"https://api.github.com/repos/delftswa2017/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delftswa2017/jabref/downloads","issues_url":"https://api.github.com/repos/delftswa2017/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/delftswa2017/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/delftswa2017/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/delftswa2017/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delftswa2017/jabref/labels{/name}","releases_url":"https://api.github.com/repos/delftswa2017/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/delftswa2017/jabref/deployments","created_at":"2017-02-17T16:09:44Z","updated_at":"2017-02-17T16:09:51Z","pushed_at":"2017-03-13T11:00:21Z","git_url":"git://github.com/delftswa2017/jabref.git","ssh_url":"git@github.com:delftswa2017/jabref.git","clone_url":"https://github.com/delftswa2017/jabref.git","svn_url":"https://github.com/delftswa2017/jabref","homepage":"https://www.jabref.org/","size":94727,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"JabRef:master","ref":"master","sha":"f0d79f87657b039b738a8157ebdc951414494421","user":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars2.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://avatars2.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":"2017-03-12T13:57:18Z","pushed_at":"2017-03-13T11:34:30Z","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":"https://www.jabref.org/","size":94779,"stargazers_count":469,"watchers_count":469,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":292,"mirror_url":null,"open_issues_count":146,"forks":292,"open_issues":146,"watchers":469,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/2639"},"html":{"href":"https://github.com/JabRef/jabref/pull/2639"},"issue":{"href":"https://api.github.com/repos/JabRef/jabref/issues/2639"},"comments":{"href":"https://api.github.com/repos/JabRef/jabref/issues/2639/comments"},"review_comments":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/2639/comments"},"review_comment":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/2639/commits"},"statuses":{"href":"https://api.github.com/repos/JabRef/jabref/statuses/24651c600d438270f76104c0794b92da5e001548"}}}}
{"actor":{"display_login":"ohuang12"}}