Browse Source

Pull request #7997: REPORT-58833 js编辑器埋点

Merge in DESIGN/design from ~PENGDA/design:final/11.0 to final/11.0

* commit '6dbe6fa6ab99f93e9d109a6eba34944b9c4c82bd':
  REPORT-58833 js编辑器埋点
new-design
pengda 3 years ago
parent
commit
a067c69b16
  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();
if (value instanceof HelpDocument) {
String url = ((HelpDocument) value).getDocumentUrl();
try {
Desktop.getDesktop().browse(new URI(url));
} catch (IOException ex) {
FineLoggerFactory.getLogger().error(ex.getMessage(), ex);
} catch (URISyntaxException ex) {
FineLoggerFactory.getLogger().error(ex.getMessage(), ex);
}
browse(url);
}
}
}
});
}
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() {
helpDOCList.setCellRenderer(new DefaultListCellRenderer() {
@Override

Loading…
Cancel
Save