congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OpenBrowserUtil.open
Code IndexAdd Tabnine to your IDE (free)

How to use
open
method
in
org.eclipse.jdt.internal.ui.actions.OpenBrowserUtil

Best Java code snippets using org.eclipse.jdt.internal.ui.actions.OpenBrowserUtil.open (Showing top 12 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * 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);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * 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());
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * 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);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * 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());
}
origin: org.eclipse/org.eclipse.jdt.ui

public void spawnInBrowser(URL url) {
  OpenBrowserUtil.open(url, fShell.getDisplay(), fTitle);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

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);
    }
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

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);
    }
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

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);
    }
  }
}
origin: org.eclipse/org.eclipse.ajdt.ui

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);
    }
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@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;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@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;
}
origin: org.eclipse/org.eclipse.jdt.ui

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); 
  }
}

org.eclipse.jdt.internal.ui.actionsOpenBrowserUtilopen

Javadoc

Opens the given url in the browser as choosen in the preferences.

Popular methods of OpenBrowserUtil

  • openExternal
    Opens the given URL in an external browser.

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Collectors (java.util.stream)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now