Skip to content

Commit

Permalink
Replace JDK browser with IDE integrated browser to open the link
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Zhang <wezhang@outlook.com>
  • Loading branch information
wezhang authored and djlan committed Jun 20, 2018
1 parent 2edbd86 commit f51de41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ private static String getClusterNameWitStatus(IClusterDetail clusterDetail) {
return clusterDetail.getTitle();
}

private void openUrlLink(String linkUrl) {
private void openUrlLink(@NotNull String linkUrl) {
if (!StringHelper.isNullOrWhiteSpace(clusterDetail.getName())) {
try {
Desktop.getDesktop().browse(new URI(linkUrl));
DefaultLoader.getIdeHelper().openLinkInBrowser(linkUrl);
} catch (Exception exception) {
DefaultLoader.getUIHelper().showError(exception.getMessage(), "HDInsight Explorer");
}
Expand Down

0 comments on commit f51de41

Please sign in to comment.