congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Window$IExceptionHandler.handleException
Code IndexAdd Tabnine to your IDE (free)

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

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

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.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.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.ui.workbench

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

Javadoc

Handle the exception.

Popular methods of Window$IExceptionHandler

    Popular in Java

    • Finding current android device location
    • notifyDataSetChanged (ArrayAdapter)
    • compareTo (BigDecimal)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • SecureRandom (java.security)
      This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
    • SQLException (java.sql)
      An exception that indicates a failed JDBC operation. It provides the following information about pro
    • Timestamp (java.sql)
      A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
    • PriorityQueue (java.util)
      A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
    • BoxLayout (javax.swing)
    • Top 12 Jupyter Notebook Extensions
    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