{"action":"created","comment":{"url":"https://api.github.com/repos/WollMux/WollMux/pulls/comments/235644193","pull_request_review_id":177554988,"id":235644193,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTY0NDE5Mw==","diff_hunk":"@@ -0,0 +1,248 @@\n+package de.muenchen.allg.itd51.wollmux.event.handlers;\n+\n+import java.io.IOException;\n+import java.io.StringReader;\n+import java.net.MalformedURLException;\n+import java.net.URL;\n+import java.util.ArrayList;\n+import java.util.Iterator;\n+import java.util.List;\n+import java.util.Vector;\n+\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import com.sun.star.lang.XComponent;\n+\n+import de.muenchen.allg.afid.UNO;\n+import de.muenchen.allg.itd51.wollmux.WollMuxFehlerException;\n+import de.muenchen.allg.itd51.wollmux.WollMuxFiles;\n+import de.muenchen.allg.itd51.wollmux.WollMuxSingleton;\n+import de.muenchen.allg.itd51.wollmux.core.document.VisibleTextFragmentList;\n+import de.muenchen.allg.itd51.wollmux.core.parser.ConfigThingy;\n+import de.muenchen.allg.itd51.wollmux.core.parser.ConfigurationErrorException;\n+import de.muenchen.allg.itd51.wollmux.core.parser.InvalidIdentifierException;\n+import de.muenchen.allg.itd51.wollmux.core.util.L;\n+import de.muenchen.allg.itd51.wollmux.document.DocumentManager;\n+import de.muenchen.allg.itd51.wollmux.document.TextDocumentController;\n+import de.muenchen.allg.itd51.wollmux.event.WollMuxEventHandler;\n+\n+/**\n+ * Öffnet ein oder mehrere Dokumente anhand der Beschreibung openConfStr\n+ * (ConfigThingy-Syntax) und ist ausführlicher beschrieben unter\n+ * http://limux.tvc.muenchen\n+ * .de/wiki/index.php/Schnittstellen_des_WollMux_f%C3%BCr_Experten#wollmux:Open\n+ *\n+ * Dieses Event wird gestartet, wenn der WollMux-Service (...comp.WollMux) das\n+ * Dispatch-Kommando wollmux:open empfängt.\n+ *\n+ * @param openConfStr\n+ *          Die Beschreibung der zu öffnenden Fragmente in ConfigThingy-Syntax\n+ */\n+public class OnOpen extends BasicEvent \n+{\n+\tprivate static final Logger LOGGER = LoggerFactory\n+\t\t      .getLogger(OnOpen.class);\n+\t\n+    private String openConfStr;\n+\n+    public OnOpen(String openConfStr)\n+    {\n+      this.openConfStr = openConfStr;\n+    }\n+\n+    @Override\n+    protected void doit() throws WollMuxFehlerException\n+    {\n+      boolean asTemplate = true;\n+      boolean merged = false;\n+      ConfigThingy conf;\n+      ConfigThingy fragConf;\n+      ConfigThingy buttonAnpassung = null;\n+      try\n+      {\n+        conf = new ConfigThingy(\"OPEN\", null, new StringReader(openConfStr));\n+        fragConf = conf.get(\"Fragmente\");\n+      }\n+      catch (java.lang.Exception e)\n+      {\n+        throw new WollMuxFehlerException(\n+          L.m(\"Fehlerhaftes Kommando 'wollmux:Open'\"), e);\n+      }\n+\n+      try\n+      {\n+        asTemplate = conf.get(\"AS_TEMPLATE\", 1).toString().equalsIgnoreCase(\"true\");\n+      }\n+      catch (java.lang.Exception x)\n+      {}\n+\n+      try\n+      {\n+        buttonAnpassung = conf.get(\"Buttonanpassung\", 1);\n+      }\n+      catch (java.lang.Exception x)\n+      {}\n+\n+      try\n+      {\n+        merged = conf.get(\"FORMGUIS\", 1).toString().equalsIgnoreCase(\"merged\");\n+      }\n+      catch (java.lang.Exception x)\n+      {}\n+\n+      Iterator<ConfigThingy> iter = fragConf.iterator();\n+      List<TextDocumentController> docs = new ArrayList<TextDocumentController>();\n+      while (iter.hasNext())\n+      {\n+        ConfigThingy fragListConf = iter.next();\n+        List<String> fragIds = new Vector<String>();","path":"src/de/muenchen/allg/itd51/wollmux/event/handlers/OnOpen.java","position":99,"original_position":99,"commit_id":"40b3b2e303ea177487a53706b529b0ac404f76ed","original_commit_id":"40b3b2e303ea177487a53706b529b0ac404f76ed","user":{"login":"lhm-jenkins","id":35487075,"node_id":"MDQ6VXNlcjM1NDg3MDc1","avatar_url":"https://avatars1.githubusercontent.com/u/35487075?v=4","gravatar_id":"","url":"https://api.github.com/users/lhm-jenkins","html_url":"https://github.com/lhm-jenkins","followers_url":"https://api.github.com/users/lhm-jenkins/followers","following_url":"https://api.github.com/users/lhm-jenkins/following{/other_user}","gists_url":"https://api.github.com/users/lhm-jenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/lhm-jenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhm-jenkins/subscriptions","organizations_url":"https://api.github.com/users/lhm-jenkins/orgs","repos_url":"https://api.github.com/users/lhm-jenkins/repos","events_url":"https://api.github.com/users/lhm-jenkins/events{/privacy}","received_events_url":"https://api.github.com/users/lhm-jenkins/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR') Replace the synchronized class \"Vector\" by an unsynchronized one such as \"ArrayList\" or \"LinkedList\". [![rule](https://sonarsource.github.io/sonar-github/rule.png)](http://kvm-javabuild/sonar/coding_rules#rule_key=squid%3AS1149)\n![MINOR](https://sonarsource.github.io/sonar-github/severity-minor.png 'Severity: MINOR') Replace the type specification in this constructor call with the diamond operator (\"<>\"). [![rule](https://sonarsource.github.io/sonar-github/rule.png)](http://kvm-javabuild/sonar/coding_rules#rule_key=squid%3AS2293)\n","created_at":"2018-11-22T08:59:38Z","updated_at":"2018-11-22T08:59:39Z","html_url":"https://github.com/WollMux/WollMux/pull/50#discussion_r235644193","pull_request_url":"https://api.github.com/repos/WollMux/WollMux/pulls/50","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/WollMux/WollMux/pulls/comments/235644193"},"html":{"href":"https://github.com/WollMux/WollMux/pull/50#discussion_r235644193"},"pull_request":{"href":"https://api.github.com/repos/WollMux/WollMux/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/WollMux/WollMux/pulls/50","id":232671180,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNjcxMTgw","html_url":"https://github.com/WollMux/WollMux/pull/50","diff_url":"https://github.com/WollMux/WollMux/pull/50.diff","patch_url":"https://github.com/WollMux/WollMux/pull/50.patch","issue_url":"https://api.github.com/repos/WollMux/WollMux/issues/50","number":50,"state":"open","locked":false,"title":"WollMux mit Guava Event Bus","user":{"login":"TranNghiem","id":31673801,"node_id":"MDQ6VXNlcjMxNjczODAx","avatar_url":"https://avatars2.githubusercontent.com/u/31673801?v=4","gravatar_id":"","url":"https://api.github.com/users/TranNghiem","html_url":"https://github.com/TranNghiem","followers_url":"https://api.github.com/users/TranNghiem/followers","following_url":"https://api.github.com/users/TranNghiem/following{/other_user}","gists_url":"https://api.github.com/users/TranNghiem/gists{/gist_id}","starred_url":"https://api.github.com/users/TranNghiem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TranNghiem/subscriptions","organizations_url":"https://api.github.com/users/TranNghiem/orgs","repos_url":"https://api.github.com/users/TranNghiem/repos","events_url":"https://api.github.com/users/TranNghiem/events{/privacy}","received_events_url":"https://api.github.com/users/TranNghiem/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-21T13:52:43Z","updated_at":"2018-11-22T08:59:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5e70e5caf16512efb519414ea0745a00c2409cd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sikelerd","id":19220590,"node_id":"MDQ6VXNlcjE5MjIwNTkw","avatar_url":"https://avatars2.githubusercontent.com/u/19220590?v=4","gravatar_id":"","url":"https://api.github.com/users/sikelerd","html_url":"https://github.com/sikelerd","followers_url":"https://api.github.com/users/sikelerd/followers","following_url":"https://api.github.com/users/sikelerd/following{/other_user}","gists_url":"https://api.github.com/users/sikelerd/gists{/gist_id}","starred_url":"https://api.github.com/users/sikelerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sikelerd/subscriptions","organizations_url":"https://api.github.com/users/sikelerd/orgs","repos_url":"https://api.github.com/users/sikelerd/repos","events_url":"https://api.github.com/users/sikelerd/events{/privacy}","received_events_url":"https://api.github.com/users/sikelerd/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WollMux/WollMux/pulls/50/commits","review_comments_url":"https://api.github.com/repos/WollMux/WollMux/pulls/50/comments","review_comment_url":"https://api.github.com/repos/WollMux/WollMux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WollMux/WollMux/issues/50/comments","statuses_url":"https://api.github.com/repos/WollMux/WollMux/statuses/40b3b2e303ea177487a53706b529b0ac404f76ed","head":{"label":"TranNghiem:WollMux_GuavaEventBus","ref":"WollMux_GuavaEventBus","sha":"40b3b2e303ea177487a53706b529b0ac404f76ed","user":{"login":"TranNghiem","id":31673801,"node_id":"MDQ6VXNlcjMxNjczODAx","avatar_url":"https://avatars2.githubusercontent.com/u/31673801?v=4","gravatar_id":"","url":"https://api.github.com/users/TranNghiem","html_url":"https://github.com/TranNghiem","followers_url":"https://api.github.com/users/TranNghiem/followers","following_url":"https://api.github.com/users/TranNghiem/following{/other_user}","gists_url":"https://api.github.com/users/TranNghiem/gists{/gist_id}","starred_url":"https://api.github.com/users/TranNghiem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TranNghiem/subscriptions","organizations_url":"https://api.github.com/users/TranNghiem/orgs","repos_url":"https://api.github.com/users/TranNghiem/repos","events_url":"https://api.github.com/users/TranNghiem/events{/privacy}","received_events_url":"https://api.github.com/users/TranNghiem/received_events","type":"User","site_admin":false},"repo":{"id":158552266,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1NTIyNjY=","name":"WollMux","full_name":"TranNghiem/WollMux","private":false,"owner":{"login":"TranNghiem","id":31673801,"node_id":"MDQ6VXNlcjMxNjczODAx","avatar_url":"https://avatars2.githubusercontent.com/u/31673801?v=4","gravatar_id":"","url":"https://api.github.com/users/TranNghiem","html_url":"https://github.com/TranNghiem","followers_url":"https://api.github.com/users/TranNghiem/followers","following_url":"https://api.github.com/users/TranNghiem/following{/other_user}","gists_url":"https://api.github.com/users/TranNghiem/gists{/gist_id}","starred_url":"https://api.github.com/users/TranNghiem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TranNghiem/subscriptions","organizations_url":"https://api.github.com/users/TranNghiem/orgs","repos_url":"https://api.github.com/users/TranNghiem/repos","events_url":"https://api.github.com/users/TranNghiem/events{/privacy}","received_events_url":"https://api.github.com/users/TranNghiem/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TranNghiem/WollMux","description":" letterhead, template, form, autotext, mail merge,... extension for OpenOffice and LibreOffice","fork":true,"url":"https://api.github.com/repos/TranNghiem/WollMux","forks_url":"https://api.github.com/repos/TranNghiem/WollMux/forks","keys_url":"https://api.github.com/repos/TranNghiem/WollMux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TranNghiem/WollMux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TranNghiem/WollMux/teams","hooks_url":"https://api.github.com/repos/TranNghiem/WollMux/hooks","issue_events_url":"https://api.github.com/repos/TranNghiem/WollMux/issues/events{/number}","events_url":"https://api.github.com/repos/TranNghiem/WollMux/events","assignees_url":"https://api.github.com/repos/TranNghiem/WollMux/assignees{/user}","branches_url":"https://api.github.com/repos/TranNghiem/WollMux/branches{/branch}","tags_url":"https://api.github.com/repos/TranNghiem/WollMux/tags","blobs_url":"https://api.github.com/repos/TranNghiem/WollMux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TranNghiem/WollMux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TranNghiem/WollMux/git/refs{/sha}","trees_url":"https://api.github.com/repos/TranNghiem/WollMux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TranNghiem/WollMux/statuses/{sha}","languages_url":"https://api.github.com/repos/TranNghiem/WollMux/languages","stargazers_url":"https://api.github.com/repos/TranNghiem/WollMux/stargazers","contributors_url":"https://api.github.com/repos/TranNghiem/WollMux/contributors","subscribers_url":"https://api.github.com/repos/TranNghiem/WollMux/subscribers","subscription_url":"https://api.github.com/repos/TranNghiem/WollMux/subscription","commits_url":"https://api.github.com/repos/TranNghiem/WollMux/commits{/sha}","git_commits_url":"https://api.github.com/repos/TranNghiem/WollMux/git/commits{/sha}","comments_url":"https://api.github.com/repos/TranNghiem/WollMux/comments{/number}","issue_comment_url":"https://api.github.com/repos/TranNghiem/WollMux/issues/comments{/number}","contents_url":"https://api.github.com/repos/TranNghiem/WollMux/contents/{+path}","compare_url":"https://api.github.com/repos/TranNghiem/WollMux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TranNghiem/WollMux/merges","archive_url":"https://api.github.com/repos/TranNghiem/WollMux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TranNghiem/WollMux/downloads","issues_url":"https://api.github.com/repos/TranNghiem/WollMux/issues{/number}","pulls_url":"https://api.github.com/repos/TranNghiem/WollMux/pulls{/number}","milestones_url":"https://api.github.com/repos/TranNghiem/WollMux/milestones{/number}","notifications_url":"https://api.github.com/repos/TranNghiem/WollMux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TranNghiem/WollMux/labels{/name}","releases_url":"https://api.github.com/repos/TranNghiem/WollMux/releases{/id}","deployments_url":"https://api.github.com/repos/TranNghiem/WollMux/deployments","created_at":"2018-11-21T13:29:17Z","updated_at":"2018-11-21T13:29:20Z","pushed_at":"2018-11-21T13:51:37Z","git_url":"git://github.com/TranNghiem/WollMux.git","ssh_url":"git@github.com:TranNghiem/WollMux.git","clone_url":"https://github.com/TranNghiem/WollMux.git","svn_url":"https://github.com/TranNghiem/WollMux","homepage":"","size":38440,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"eupl-1.1","name":"European Union Public License 1.1","spdx_id":"EUPL-1.1","url":"https://api.github.com/licenses/eupl-1.1","node_id":"MDc6TGljZW5zZTI0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WollMux:master","ref":"master","sha":"ffa2b05f06c613a1c75e5c2503375690298a879e","user":{"login":"WollMux","id":10096468,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDk2NDY4","avatar_url":"https://avatars0.githubusercontent.com/u/10096468?v=4","gravatar_id":"","url":"https://api.github.com/users/WollMux","html_url":"https://github.com/WollMux","followers_url":"https://api.github.com/users/WollMux/followers","following_url":"https://api.github.com/users/WollMux/following{/other_user}","gists_url":"https://api.github.com/users/WollMux/gists{/gist_id}","starred_url":"https://api.github.com/users/WollMux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WollMux/subscriptions","organizations_url":"https://api.github.com/users/WollMux/orgs","repos_url":"https://api.github.com/users/WollMux/repos","events_url":"https://api.github.com/users/WollMux/events{/privacy}","received_events_url":"https://api.github.com/users/WollMux/received_events","type":"Organization","site_admin":false},"repo":{"id":27683112,"node_id":"MDEwOlJlcG9zaXRvcnkyNzY4MzExMg==","name":"WollMux","full_name":"WollMux/WollMux","private":false,"owner":{"login":"WollMux","id":10096468,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDk2NDY4","avatar_url":"https://avatars0.githubusercontent.com/u/10096468?v=4","gravatar_id":"","url":"https://api.github.com/users/WollMux","html_url":"https://github.com/WollMux","followers_url":"https://api.github.com/users/WollMux/followers","following_url":"https://api.github.com/users/WollMux/following{/other_user}","gists_url":"https://api.github.com/users/WollMux/gists{/gist_id}","starred_url":"https://api.github.com/users/WollMux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WollMux/subscriptions","organizations_url":"https://api.github.com/users/WollMux/orgs","repos_url":"https://api.github.com/users/WollMux/repos","events_url":"https://api.github.com/users/WollMux/events{/privacy}","received_events_url":"https://api.github.com/users/WollMux/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WollMux/WollMux","description":" letterhead, template, form, autotext, mail merge,... extension for OpenOffice and LibreOffice","fork":false,"url":"https://api.github.com/repos/WollMux/WollMux","forks_url":"https://api.github.com/repos/WollMux/WollMux/forks","keys_url":"https://api.github.com/repos/WollMux/WollMux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WollMux/WollMux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WollMux/WollMux/teams","hooks_url":"https://api.github.com/repos/WollMux/WollMux/hooks","issue_events_url":"https://api.github.com/repos/WollMux/WollMux/issues/events{/number}","events_url":"https://api.github.com/repos/WollMux/WollMux/events","assignees_url":"https://api.github.com/repos/WollMux/WollMux/assignees{/user}","branches_url":"https://api.github.com/repos/WollMux/WollMux/branches{/branch}","tags_url":"https://api.github.com/repos/WollMux/WollMux/tags","blobs_url":"https://api.github.com/repos/WollMux/WollMux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WollMux/WollMux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WollMux/WollMux/git/refs{/sha}","trees_url":"https://api.github.com/repos/WollMux/WollMux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WollMux/WollMux/statuses/{sha}","languages_url":"https://api.github.com/repos/WollMux/WollMux/languages","stargazers_url":"https://api.github.com/repos/WollMux/WollMux/stargazers","contributors_url":"https://api.github.com/repos/WollMux/WollMux/contributors","subscribers_url":"https://api.github.com/repos/WollMux/WollMux/subscribers","subscription_url":"https://api.github.com/repos/WollMux/WollMux/subscription","commits_url":"https://api.github.com/repos/WollMux/WollMux/commits{/sha}","git_commits_url":"https://api.github.com/repos/WollMux/WollMux/git/commits{/sha}","comments_url":"https://api.github.com/repos/WollMux/WollMux/comments{/number}","issue_comment_url":"https://api.github.com/repos/WollMux/WollMux/issues/comments{/number}","contents_url":"https://api.github.com/repos/WollMux/WollMux/contents/{+path}","compare_url":"https://api.github.com/repos/WollMux/WollMux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WollMux/WollMux/merges","archive_url":"https://api.github.com/repos/WollMux/WollMux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WollMux/WollMux/downloads","issues_url":"https://api.github.com/repos/WollMux/WollMux/issues{/number}","pulls_url":"https://api.github.com/repos/WollMux/WollMux/pulls{/number}","milestones_url":"https://api.github.com/repos/WollMux/WollMux/milestones{/number}","notifications_url":"https://api.github.com/repos/WollMux/WollMux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WollMux/WollMux/labels{/name}","releases_url":"https://api.github.com/repos/WollMux/WollMux/releases{/id}","deployments_url":"https://api.github.com/repos/WollMux/WollMux/deployments","created_at":"2014-12-07T20:11:29Z","updated_at":"2018-11-22T08:38:26Z","pushed_at":"2018-11-22T08:38:25Z","git_url":"git://github.com/WollMux/WollMux.git","ssh_url":"git@github.com:WollMux/WollMux.git","clone_url":"https://github.com/WollMux/WollMux.git","svn_url":"https://github.com/WollMux/WollMux","homepage":"","size":38362,"stargazers_count":21,"watchers_count":21,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"eupl-1.1","name":"European Union Public License 1.1","spdx_id":"EUPL-1.1","url":"https://api.github.com/licenses/eupl-1.1","node_id":"MDc6TGljZW5zZTI0"},"forks":10,"open_issues":19,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WollMux/WollMux/pulls/50"},"html":{"href":"https://github.com/WollMux/WollMux/pull/50"},"issue":{"href":"https://api.github.com/repos/WollMux/WollMux/issues/50"},"comments":{"href":"https://api.github.com/repos/WollMux/WollMux/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/WollMux/WollMux/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/WollMux/WollMux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WollMux/WollMux/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/WollMux/WollMux/statuses/40b3b2e303ea177487a53706b529b0ac404f76ed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lhm-jenkins"}}