|
|
@ -441,19 +441,21 @@ public class JSContentWithDescriptionPane extends JSContentPane implements KeyLi |
|
|
|
Object value = helpDOCList.getSelectedValue(); |
|
|
|
Object value = helpDOCList.getSelectedValue(); |
|
|
|
if (value instanceof HelpDocument) { |
|
|
|
if (value instanceof HelpDocument) { |
|
|
|
String url = ((HelpDocument) value).getDocumentUrl(); |
|
|
|
String url = ((HelpDocument) value).getDocumentUrl(); |
|
|
|
try { |
|
|
|
browse(url); |
|
|
|
Desktop.getDesktop().browse(new URI(url)); |
|
|
|
|
|
|
|
} catch (IOException ex) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(ex.getMessage(), ex); |
|
|
|
|
|
|
|
} catch (URISyntaxException ex) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(ex.getMessage(), ex); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void browse(String url){ |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Desktop.getDesktop().browse(new URI(url)); |
|
|
|
|
|
|
|
} catch (IOException | URISyntaxException ex) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(ex.getMessage(), ex); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initHelpDOCListRender() { |
|
|
|
private void initHelpDOCListRender() { |
|
|
|
helpDOCList.setCellRenderer(new DefaultListCellRenderer() { |
|
|
|
helpDOCList.setCellRenderer(new DefaultListCellRenderer() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|