Skip to content

Commit f51de41

Browse files
wezhangdjlan
authored andcommitted
Replace JDK browser with IDE integrated browser to open the link
Signed-off-by: Wei Zhang <[email protected]>
1 parent 2edbd86 commit f51de41

File tree

1 file changed

+2
-2
lines changed
  • Utils/hdinsight-node-common/src/com/microsoft/azure/hdinsight/serverexplore/hdinsightnode

1 file changed

+2
-2
lines changed

Utils/hdinsight-node-common/src/com/microsoft/azure/hdinsight/serverexplore/hdinsightnode/ClusterNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ private static String getClusterNameWitStatus(IClusterDetail clusterDetail) {
169169
return clusterDetail.getTitle();
170170
}
171171

172-
private void openUrlLink(String linkUrl) {
172+
private void openUrlLink(@NotNull String linkUrl) {
173173
if (!StringHelper.isNullOrWhiteSpace(clusterDetail.getName())) {
174174
try {
175-
Desktop.getDesktop().browse(new URI(linkUrl));
175+
DefaultLoader.getIdeHelper().openLinkInBrowser(linkUrl);
176176
} catch (Exception exception) {
177177
DefaultLoader.getUIHelper().showError(exception.getMessage(), "HDInsight Explorer");
178178
}

0 commit comments

Comments
 (0)