5959import com .junichi11 .netbeans .modules .github .issues .repository .GitHubRepository ;
6060import com .junichi11 .netbeans .modules .github .issues .ui .AttributesListCellRenderer ;
6161import com .junichi11 .netbeans .modules .github .issues .utils .GitHubIssuesUtils ;
62+ import com .junichi11 .netbeans .modules .github .issues .utils .StringUtils ;
6263import com .junichi11 .netbeans .modules .github .issues .utils .UiUtils ;
6364import java .awt .Color ;
6465import java .awt .Dimension ;
99100import org .eclipse .egit .github .core .PullRequestMarker ;
100101import org .eclipse .egit .github .core .RepositoryCommit ;
101102import org .eclipse .egit .github .core .User ;
103+ import org .eclipse .egit .github .core .client .IGitHubConstants ;
102104import org .eclipse .egit .github .core .service .IssueService ;
103105import org .netbeans .api .annotations .common .CheckForNull ;
104106import org .openide .DialogDescriptor ;
107109import org .openide .util .ChangeSupport ;
108110import org .openide .util .NbBundle ;
109111import org .openide .util .RequestProcessor ;
110- import org .pegdown .PegDownProcessor ;
111112
112113/**
113114 *
@@ -411,10 +412,9 @@ public void update() {
411412 List <Comment > comments = gitHubIssue .getComments ();
412413 // set count
413414 commentsCollapsibleSectionPanel .setLabel (Bundle .GitHubIssuePanel_comment_count (comments .size ()));
414- PegDownProcessor processor = GitHubIssues .getInstance ().getPegDownProcessor ();
415415 for (Comment comment : comments ) {
416416 String body = comment .getBody ();
417- String bodyHtml = processor .markdownToHtml (body );
417+ String bodyHtml = StringUtils .markdownToHtml (body );
418418 comment .setBodyHtml (String .format ("<html>%s</html>" , bodyHtml )); // NOI18N
419419 }
420420 commentsPanel .addComments (comments , repository );
@@ -439,8 +439,12 @@ public void update() {
439439 List <CommitFile > pullRequestsFiles = repository .getPullRequestsFiles (issue .getNumber ());
440440 filesChangedPanel .setDisplayName (String .format ("[Diff] #%s - %s" , id , summary )); // NOI18N
441441 filesChangedPanel .removeAllFiles ();
442+ String hostname = repository .getHostname ();
442443 for (CommitFile file : pullRequestsFiles ) {
443- filesChangedPanel .addFile (file , base );
444+ if (hostname .equals (GitHubIssues .DEFAULT_HOSTNAME )) {
445+ hostname = IGitHubConstants .HOST_DEFAULT ;
446+ }
447+ filesChangedPanel .addFile (file , base , hostname );
444448 }
445449 filesChangedPanel .setDetails (pullRequest );
446450 filesChangedcollapsibleSectionPanel .setLabel (Bundle .GitHubIssuePanel_files_changed_count (pullRequestsFiles .size ()));
0 commit comments