/** * DO NOT REMOVE, used in a product. * * @param url the URL * @param display the display * @param title the title * @deprecated As of 3.6, replaced by {@link #open(URL, Display)} */ @Deprecated public static void open(final URL url, Display display, String title) { open(url, display); }
public void spawnInBrowser(URL url) { OpenBrowserUtil.openExternal(url, fShell.getDisplay()); }
/** * Opens the given URL in the browser. * * @param url the URL */ protected void open(URL url) { if (forceExternalBrowser()) OpenBrowserUtil.openExternal(url, getShell().getDisplay()); else OpenBrowserUtil.open(url, getShell().getDisplay()); }
/** * Opens the given URL in the browser. * * @param url the URL */ protected void open(URL url) { if (forceExternalBrowser()) OpenBrowserUtil.openExternal(url, getShell().getDisplay()); else OpenBrowserUtil.open(url, getShell().getDisplay()); }
/** * DO NOT REMOVE, used in a product. * * @param url the URL * @param display the display * @param title the title * @deprecated As of 3.6, replaced by {@link #open(URL, Display)} */ @Deprecated public static void open(final URL url, Display display, String title) { open(url, display); }
public void spawnInBrowser(URL url) { OpenBrowserUtil.openExternal(url, fShell.getDisplay()); }
public void spawnInBrowser(URL url) { OpenBrowserUtil.open(url, fShell.getDisplay(), fTitle); }
private void spawnInBrowser(Display display) { if (fOpenInBrowser) { try { IPath indexFile= fDestination.append("index.html"); //$NON-NLS-1$ URL url= indexFile.toFile().toURI().toURL(); OpenBrowserUtil.open(url, display); } catch (MalformedURLException e) { JavaPlugin.log(e); } } }
private void spawnInBrowser(Display display) { if (fOpenInBrowser) { try { IPath indexFile= fDestination.append("index.html"); //$NON-NLS-1$ URL url= indexFile.toFile().toURI().toURL(); OpenBrowserUtil.open(url, display); } catch (MalformedURLException e) { JavaPlugin.log(e); } } }
private void spawnInBrowser(Display display) { if (fOpenInBrowser) { try { IPath indexFile= fDestination.append("index.html"); //$NON-NLS-1$ URL url= indexFile.toFile().toURL(); OpenBrowserUtil.open(url, display, getWindowTitle()); } catch (MalformedURLException e) { JavaPlugin.log(e); } } }
private void spawnInBrowser(Display display) { if (fOpenInBrowser) { try { IPath indexFile = fDestination.append("index.html"); //$NON-NLS-1$ URL url = indexFile.toFile().toURL(); OpenBrowserUtil.open(url, display, getWindowTitle()); } catch (MalformedURLException e) { JavaPlugin.log(e); } } }
@Override public boolean handleExternalLink(URL url, Display display) { control.notifyDelayedInputChange(null); control.dispose(); //FIXME: should have protocol to hide, rather than dispose // Open attached Javadoc links OpenBrowserUtil.open(url, display); return true; }
@Override public boolean handleExternalLink(URL url, Display display) { control.notifyDelayedInputChange(null); control.dispose(); //FIXME: should have protocol to hide, rather than dispose // Open attached Javadoc links OpenBrowserUtil.open(url, display); return true; }
public void run(IJavaElement element) { if (element == null) return; Shell shell= getShell(); try { String labelName= JavaElementLabels.getElementLabel(element, JavaElementLabels.ALL_DEFAULT); URL baseURL= JavaUI.getJavadocBaseLocation(element); if (baseURL == null) { IPackageFragmentRoot root= JavaModelUtil.getPackageFragmentRoot(element); if (root != null && root.getKind() == IPackageFragmentRoot.K_BINARY) { String message= ActionMessages.OpenExternalJavadocAction_libraries_no_location; showMessage(shell, Messages.format(message, new String[] { labelName, root.getElementName() }), false); } else { IJavaElement annotatedElement= element.getJavaProject(); String message= ActionMessages.OpenExternalJavadocAction_source_no_location; showMessage(shell, Messages.format(message, new String[] { labelName, annotatedElement.getElementName() }), false); } return; } URL url= JavaUI.getJavadocLocation(element, true); if (url != null) { OpenBrowserUtil.open(url, shell.getDisplay(), getTitle()); } } catch (CoreException e) { JavaPlugin.log(e); showMessage(shell, ActionMessages.OpenExternalJavadocAction_opening_failed, true); } }