Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class OpenBrowserUtil {

/**
* Opens the given url in the browser as choosen in the preferences.
* Opens the given url in the browser as chosen in the preferences.
*
* @param url the URL
* @param display the display
Expand All @@ -39,6 +39,16 @@ public static void open(final URL url, Display display) {
display.syncExec(() -> internalOpen(url, false));
}

/**
* Asynchronously opens the given url in the browser as chosen in the preferences.
*
* @param url the URL
* @param display the display
*/
public static void openAsync(final URL url, Display display) {
display.asyncExec(() -> internalOpen(url, false));
}

/**
* Opens the given URL in an external browser.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public boolean handleExternalLink(URL url, Display display) {
control.dispose(); //FIXME: should have protocol to hide, rather than dispose

// Open attached Javadoc links
OpenBrowserUtil.open(url, display);
OpenBrowserUtil.openAsync(url, display);

return true;
}
Expand Down
Loading