{"action":"created","comment":{"url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/comments/22410271","id":22410271,"diff_hunk":"@@ -138,6 +145,31 @@ public void handleSettingsChanged(@NotNull final MarkdownGlobalSettings newSetti\n         jEditorPane.addHyperlinkListener(new MarkdownLinkListener(jEditorPane, project, document));\n     }\n \n+    private void resetStyleSheet(HTMLEditorKit kit) {\n+        final StyleSheet style = new StyleSheet();\n+        String customStylesheetPath = MarkdownGlobalSettings.getInstance().getCustomStylesheetPath();\n+        URL styleSheetResource = null;\n+        if (customStylesheetPath != null && customStylesheetPath.trim().length() > 0) {","path":"src/main/java/net/nicoulaj/idea/markdown/editor/MarkdownPreviewEditor.java","position":61,"original_position":61,"commit_id":"83356f97cabaf460c9fceed7682837870d4d214c","original_commit_id":"83356f97cabaf460c9fceed7682837870d4d214c","user":{"login":"victor-homyakov","id":121449,"avatar_url":"https://avatars.githubusercontent.com/u/121449?v=3","gravatar_id":"","url":"https://api.github.com/users/victor-homyakov","html_url":"https://github.com/victor-homyakov","followers_url":"https://api.github.com/users/victor-homyakov/followers","following_url":"https://api.github.com/users/victor-homyakov/following{/other_user}","gists_url":"https://api.github.com/users/victor-homyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/victor-homyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victor-homyakov/subscriptions","organizations_url":"https://api.github.com/users/victor-homyakov/orgs","repos_url":"https://api.github.com/users/victor-homyakov/repos","events_url":"https://api.github.com/users/victor-homyakov/events{/privacy}","received_events_url":"https://api.github.com/users/victor-homyakov/received_events","type":"User","site_admin":false},"body":"Are utility methods like [Strings.isNullOrEmpty](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Strings.html#isNullOrEmpty(java.lang.String)) not available?","created_at":"2015-01-02T13:34:16Z","updated_at":"2015-01-02T13:34:16Z","html_url":"https://github.com/nicoulaj/idea-markdown/pull/213#discussion_r22410271","pull_request_url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213","_links":{"self":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/comments/22410271"},"html":{"href":"https://github.com/nicoulaj/idea-markdown/pull/213#discussion_r22410271"},"pull_request":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213"}}},"pull_request":{"url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213","id":25398003,"html_url":"https://github.com/nicoulaj/idea-markdown/pull/213","diff_url":"https://github.com/nicoulaj/idea-markdown/pull/213.diff","patch_url":"https://github.com/nicoulaj/idea-markdown/pull/213.patch","issue_url":"https://api.github.com/repos/nicoulaj/idea-markdown/issues/213","number":213,"state":"open","locked":false,"title":"#12 Custom stylesheet support. ","user":{"login":"nickhristov","id":42384,"avatar_url":"https://avatars.githubusercontent.com/u/42384?v=3","gravatar_id":"","url":"https://api.github.com/users/nickhristov","html_url":"https://github.com/nickhristov","followers_url":"https://api.github.com/users/nickhristov/followers","following_url":"https://api.github.com/users/nickhristov/following{/other_user}","gists_url":"https://api.github.com/users/nickhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhristov/subscriptions","organizations_url":"https://api.github.com/users/nickhristov/orgs","repos_url":"https://api.github.com/users/nickhristov/repos","events_url":"https://api.github.com/users/nickhristov/events{/privacy}","received_events_url":"https://api.github.com/users/nickhristov/received_events","type":"User","site_admin":false},"body":"Also added a Darcula themed stylesheet and the ability to pick between the default and dark style.\r\n\r\nThe pattern that I chose for the settings panel is a bit different from what is currently in the project: I chose to wrap the logic of the several different UI components within the settings panel and keep in encapsulated there.\r\n\r\nOne additional todo would be to update the Markdown preview panel when the user changes the settings of the plugin on the fly.","created_at":"2014-12-03T06:05:15Z","updated_at":"2015-01-02T13:34:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a9749d36af9935085dd71f6a273dcb809f5728e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213/commits","review_comments_url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213/comments","review_comment_url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nicoulaj/idea-markdown/issues/213/comments","statuses_url":"https://api.github.com/repos/nicoulaj/idea-markdown/statuses/83356f97cabaf460c9fceed7682837870d4d214c","head":{"label":"nickhristov:master","ref":"master","sha":"83356f97cabaf460c9fceed7682837870d4d214c","user":{"login":"nickhristov","id":42384,"avatar_url":"https://avatars.githubusercontent.com/u/42384?v=3","gravatar_id":"","url":"https://api.github.com/users/nickhristov","html_url":"https://github.com/nickhristov","followers_url":"https://api.github.com/users/nickhristov/followers","following_url":"https://api.github.com/users/nickhristov/following{/other_user}","gists_url":"https://api.github.com/users/nickhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhristov/subscriptions","organizations_url":"https://api.github.com/users/nickhristov/orgs","repos_url":"https://api.github.com/users/nickhristov/repos","events_url":"https://api.github.com/users/nickhristov/events{/privacy}","received_events_url":"https://api.github.com/users/nickhristov/received_events","type":"User","site_admin":false},"repo":{"id":27446014,"name":"idea-markdown","full_name":"nickhristov/idea-markdown","owner":{"login":"nickhristov","id":42384,"avatar_url":"https://avatars.githubusercontent.com/u/42384?v=3","gravatar_id":"","url":"https://api.github.com/users/nickhristov","html_url":"https://github.com/nickhristov","followers_url":"https://api.github.com/users/nickhristov/followers","following_url":"https://api.github.com/users/nickhristov/following{/other_user}","gists_url":"https://api.github.com/users/nickhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhristov/subscriptions","organizations_url":"https://api.github.com/users/nickhristov/orgs","repos_url":"https://api.github.com/users/nickhristov/repos","events_url":"https://api.github.com/users/nickhristov/events{/privacy}","received_events_url":"https://api.github.com/users/nickhristov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickhristov/idea-markdown","description":"Markdown language support for IntelliJ IDEA.","fork":true,"url":"https://api.github.com/repos/nickhristov/idea-markdown","forks_url":"https://api.github.com/repos/nickhristov/idea-markdown/forks","keys_url":"https://api.github.com/repos/nickhristov/idea-markdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickhristov/idea-markdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickhristov/idea-markdown/teams","hooks_url":"https://api.github.com/repos/nickhristov/idea-markdown/hooks","issue_events_url":"https://api.github.com/repos/nickhristov/idea-markdown/issues/events{/number}","events_url":"https://api.github.com/repos/nickhristov/idea-markdown/events","assignees_url":"https://api.github.com/repos/nickhristov/idea-markdown/assignees{/user}","branches_url":"https://api.github.com/repos/nickhristov/idea-markdown/branches{/branch}","tags_url":"https://api.github.com/repos/nickhristov/idea-markdown/tags","blobs_url":"https://api.github.com/repos/nickhristov/idea-markdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickhristov/idea-markdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickhristov/idea-markdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickhristov/idea-markdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickhristov/idea-markdown/statuses/{sha}","languages_url":"https://api.github.com/repos/nickhristov/idea-markdown/languages","stargazers_url":"https://api.github.com/repos/nickhristov/idea-markdown/stargazers","contributors_url":"https://api.github.com/repos/nickhristov/idea-markdown/contributors","subscribers_url":"https://api.github.com/repos/nickhristov/idea-markdown/subscribers","subscription_url":"https://api.github.com/repos/nickhristov/idea-markdown/subscription","commits_url":"https://api.github.com/repos/nickhristov/idea-markdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickhristov/idea-markdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickhristov/idea-markdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickhristov/idea-markdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/nickhristov/idea-markdown/contents/{+path}","compare_url":"https://api.github.com/repos/nickhristov/idea-markdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickhristov/idea-markdown/merges","archive_url":"https://api.github.com/repos/nickhristov/idea-markdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickhristov/idea-markdown/downloads","issues_url":"https://api.github.com/repos/nickhristov/idea-markdown/issues{/number}","pulls_url":"https://api.github.com/repos/nickhristov/idea-markdown/pulls{/number}","milestones_url":"https://api.github.com/repos/nickhristov/idea-markdown/milestones{/number}","notifications_url":"https://api.github.com/repos/nickhristov/idea-markdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickhristov/idea-markdown/labels{/name}","releases_url":"https://api.github.com/repos/nickhristov/idea-markdown/releases{/id}","created_at":"2014-12-02T18:07:38Z","updated_at":"2014-12-03T05:59:09Z","pushed_at":"2014-12-03T05:59:09Z","git_url":"git://github.com/nickhristov/idea-markdown.git","ssh_url":"git@github.com:nickhristov/idea-markdown.git","clone_url":"https://github.com/nickhristov/idea-markdown.git","svn_url":"https://github.com/nickhristov/idea-markdown","homepage":"plugins.intellij.net/plugin?id=5970","size":3208,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"nicoulaj:master","ref":"master","sha":"afd059d05b72b244269d34700ac805a8a5a22b72","user":{"login":"nicoulaj","id":3162,"avatar_url":"https://avatars.githubusercontent.com/u/3162?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoulaj","html_url":"https://github.com/nicoulaj","followers_url":"https://api.github.com/users/nicoulaj/followers","following_url":"https://api.github.com/users/nicoulaj/following{/other_user}","gists_url":"https://api.github.com/users/nicoulaj/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoulaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoulaj/subscriptions","organizations_url":"https://api.github.com/users/nicoulaj/orgs","repos_url":"https://api.github.com/users/nicoulaj/repos","events_url":"https://api.github.com/users/nicoulaj/events{/privacy}","received_events_url":"https://api.github.com/users/nicoulaj/received_events","type":"User","site_admin":false},"repo":{"id":1415684,"name":"idea-markdown","full_name":"nicoulaj/idea-markdown","owner":{"login":"nicoulaj","id":3162,"avatar_url":"https://avatars.githubusercontent.com/u/3162?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoulaj","html_url":"https://github.com/nicoulaj","followers_url":"https://api.github.com/users/nicoulaj/followers","following_url":"https://api.github.com/users/nicoulaj/following{/other_user}","gists_url":"https://api.github.com/users/nicoulaj/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoulaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoulaj/subscriptions","organizations_url":"https://api.github.com/users/nicoulaj/orgs","repos_url":"https://api.github.com/users/nicoulaj/repos","events_url":"https://api.github.com/users/nicoulaj/events{/privacy}","received_events_url":"https://api.github.com/users/nicoulaj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicoulaj/idea-markdown","description":"Markdown language support for IntelliJ IDEA.","fork":false,"url":"https://api.github.com/repos/nicoulaj/idea-markdown","forks_url":"https://api.github.com/repos/nicoulaj/idea-markdown/forks","keys_url":"https://api.github.com/repos/nicoulaj/idea-markdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicoulaj/idea-markdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicoulaj/idea-markdown/teams","hooks_url":"https://api.github.com/repos/nicoulaj/idea-markdown/hooks","issue_events_url":"https://api.github.com/repos/nicoulaj/idea-markdown/issues/events{/number}","events_url":"https://api.github.com/repos/nicoulaj/idea-markdown/events","assignees_url":"https://api.github.com/repos/nicoulaj/idea-markdown/assignees{/user}","branches_url":"https://api.github.com/repos/nicoulaj/idea-markdown/branches{/branch}","tags_url":"https://api.github.com/repos/nicoulaj/idea-markdown/tags","blobs_url":"https://api.github.com/repos/nicoulaj/idea-markdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicoulaj/idea-markdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicoulaj/idea-markdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicoulaj/idea-markdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicoulaj/idea-markdown/statuses/{sha}","languages_url":"https://api.github.com/repos/nicoulaj/idea-markdown/languages","stargazers_url":"https://api.github.com/repos/nicoulaj/idea-markdown/stargazers","contributors_url":"https://api.github.com/repos/nicoulaj/idea-markdown/contributors","subscribers_url":"https://api.github.com/repos/nicoulaj/idea-markdown/subscribers","subscription_url":"https://api.github.com/repos/nicoulaj/idea-markdown/subscription","commits_url":"https://api.github.com/repos/nicoulaj/idea-markdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicoulaj/idea-markdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicoulaj/idea-markdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicoulaj/idea-markdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/nicoulaj/idea-markdown/contents/{+path}","compare_url":"https://api.github.com/repos/nicoulaj/idea-markdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicoulaj/idea-markdown/merges","archive_url":"https://api.github.com/repos/nicoulaj/idea-markdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicoulaj/idea-markdown/downloads","issues_url":"https://api.github.com/repos/nicoulaj/idea-markdown/issues{/number}","pulls_url":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls{/number}","milestones_url":"https://api.github.com/repos/nicoulaj/idea-markdown/milestones{/number}","notifications_url":"https://api.github.com/repos/nicoulaj/idea-markdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicoulaj/idea-markdown/labels{/name}","releases_url":"https://api.github.com/repos/nicoulaj/idea-markdown/releases{/id}","created_at":"2011-02-26T19:32:43Z","updated_at":"2015-01-02T12:23:52Z","pushed_at":"2014-09-24T21:47:54Z","git_url":"git://github.com/nicoulaj/idea-markdown.git","ssh_url":"git@github.com:nicoulaj/idea-markdown.git","clone_url":"https://github.com/nicoulaj/idea-markdown.git","svn_url":"https://github.com/nicoulaj/idea-markdown","homepage":"plugins.intellij.net/plugin?id=5970","size":3425,"stargazers_count":340,"watchers_count":340,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":60,"forks":71,"open_issues":60,"watchers":340,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213"},"html":{"href":"https://github.com/nicoulaj/idea-markdown/pull/213"},"issue":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/issues/213"},"comments":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/nicoulaj/idea-markdown/statuses/83356f97cabaf460c9fceed7682837870d4d214c"}}}}