Browse Source

REPORT-58833 js编辑器埋点

new-design
pengda 3 years ago
parent
commit
6dbe6fa6ab
  1. 16
      designer-base/src/main/java/com/fr/design/javascript/JSContentWithDescriptionPane.java

16
designer-base/src/main/java/com/fr/design/javascript/JSContentWithDescriptionPane.java

@ -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

Loading…
Cancel
Save