Codota Logo
Window$IExceptionHandler
Code IndexAdd Codota to your IDE (free)

How to use
Window$IExceptionHandler
in
org.eclipse.jface.window

Best Java code snippets using org.eclipse.jface.window.Window$IExceptionHandler (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * Runs the event loop for the given shell.
 *
 * @param loopShell
 *            the shell
 */
private void runEventLoop(Shell loopShell) {
  //Use the display provided by the shell if possible
  Display display;
  if (shell == null) {
    display = Display.getCurrent();
  } else {
    display = loopShell.getDisplay();
  }
  while (loopShell != null && !loopShell.isDisposed()) {
    try {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    } catch (Throwable e) {
      exceptionHandler.handleException(e);
    }
  }
  if (!display.isDisposed()) display.update();
}
origin: org.eclipse.rap/org.eclipse.rap.jface

  /**
   * Runs the event loop for the given shell.
   * 
   * @param loopShell
   *            the shell
   */
  private void runEventLoop(Shell loopShell) {

    //Use the display provided by the shell if possible
    Display display;
    if (shell == null) {
      display = Display.getCurrent();
    } else {
      display = loopShell.getDisplay();
    }

    while (loopShell != null && !loopShell.isDisposed()) {
      try {
        if (!display.readAndDispatch()) {
          display.sleep();
        }
      } catch (Throwable e) {
// RAP [if] Session scoped exceptionHandler
//                exceptionHandler.handleException(e);
        getExceptionHandler().handleException( e );
      }
    }
    if (!display.isDisposed()) display.update();
  }

origin: org.eclipse.platform/org.eclipse.jface

/**
 * Runs the event loop for the given shell.
 *
 * @param loopShell
 *            the shell
 */
private void runEventLoop(Shell loopShell) {
  //Use the display provided by the shell if possible
  Display display;
  if (shell == null) {
    display = Display.getCurrent();
  } else {
    display = loopShell.getDisplay();
  }
  while (loopShell != null && !loopShell.isDisposed()) {
    try {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    } catch (Throwable e) {
      exceptionHandler.handleException(e);
    }
  }
  if (!display.isDisposed()) display.update();
}
origin: org.eclipse.platform/org.eclipse.ui.workbench

  handler.handleException(e);
} else {
  String msg = "Exception in Workbench.runUI after display was disposed"; //$NON-NLS-1$
org.eclipse.jface.windowWindow$IExceptionHandler

Javadoc

This interface defines a Exception Handler which can be set as a global handler and will be called if an exception happens in the event loop.

Most used methods

  • handleException
    Handle the exception.

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now