Skip to content

Commit

Permalink
code cleanup. issue #2037
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Oct 6, 2024
1 parent cc68f33 commit d80931a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,21 +737,14 @@ public static JComponent getDocumentViewer(ArchiveFileBean caseDto, String id, S
return ptp;
} else if (lFileName.endsWith(".md")) {
MarkdownPanel mdp = new MarkdownPanel(id, readOnly);
// try {
// SwingUtilities.invokeAndWait(() -> {
mdp.setSize(new Dimension(width, height));
mdp.setMaximumSize(new Dimension(width, height));
mdp.setPreferredSize(new Dimension(width, height));
try {
mdp.showContent(id, previewProvider.getPreview().getBytes());
} catch (Exception ex) {
mdp.showContent(id, ("FEHLER: " + ex.getMessage()).getBytes());
}
// });
// } catch (Exception ex) {
// log.error("Could not instantiate Markdown panel", ex);
// }

mdp.setSize(new Dimension(width, height));
mdp.setMaximumSize(new Dimension(width, height));
mdp.setPreferredSize(new Dimension(width, height));
try {
mdp.showContent(id, previewProvider.getPreview().getBytes());
} catch (Exception ex) {
mdp.showContent(id, ("FEHLER: " + ex.getMessage()).getBytes());
}
return mdp;
} else if (lFileName.endsWith(".wav") || lFileName.endsWith(".ogg") || lFileName.endsWith(".mp3")) {
SoundplayerPanel spp = new SoundplayerPanel(id, readOnly, saveCallback);
Expand Down

This file was deleted.

0 comments on commit d80931a

Please sign in to comment.