Examples of IStatusHandler


Examples of org.eclipse.debug.core.IStatusHandler

   * @return boolean result returned by the status handler
   * @throws CoreException
   *           if the status has severity error and no handler is available
   */
  public boolean showPrompt(IStatus status, Object info) throws CoreException {
    IStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(
        PROMPT_STATUS);
    if (prompter == null) {
      if (status.getSeverity() == IStatus.ERROR) {
        throw new CoreException(status);
      } else {
        return true;
      }
    } else {
      return ((Boolean) prompter.handleStatus(status, info)).booleanValue();
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

          monitor);
    }
  }
 
  private boolean showPrompt(IStatus status, Object info) throws CoreException {
    IStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(
        PROMPT_STATUS);
    if (prompter == null) {
      if (status.getSeverity() == IStatus.ERROR) {
        throw new CoreException(status);
      } else {
        return true;
      }
    } else {
      return ((Boolean) prompter.handleStatus(status, info)).booleanValue();
    }   
  }
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

   * @return boolean result returned by the status handler
   * @throws CoreException
   *           if the status has severity error and no handler is available
   */
  private boolean showPrompt(IStatus status, Object info) throws CoreException {
    IStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(
        PROMPT_STATUS);
    if (prompter == null) {
      if (status.getSeverity() == IStatus.ERROR) {
        throw new CoreException(status);
      } else {
        return true;
      }
    } else {
      return ((Boolean) prompter.handleStatus(status, info)).booleanValue();
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

  public boolean preLaunchCheck(ILaunchConfiguration configuration,
      String mode, IProgressMonitor monitor) throws CoreException {
    // First issue inplace instrumentation warning:
    if (hasInplaceInstrumentation(configuration)) {
      IStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(
          PROMPT_STATUS);
      IStatus status = EclEmmaStatus.INPLACE_INSTRUMENTATION_INFO.getStatus();
      if (prompter != null) {
        Boolean result = (Boolean) prompter.handleStatus(status, configuration);
        if (!result.booleanValue()) {
          return false;
        }
      }
    }
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

          monitor);
    }
  }

  private boolean showPrompt(IStatus status, Object info) throws CoreException {
    IStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(
        PROMPT_STATUS);
    if (prompter == null) {
      if (status.getSeverity() == IStatus.ERROR) {
        throw new CoreException(status);
      } else {
        return true;
      }
    } else {
      return ((Boolean) prompter.handleStatus(status, info)).booleanValue();
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

                    } catch (InterruptedIOException e) {
                        checkErrorMessage(process);

                        // timeout, consult status handler if there is one
                        IStatus status = new Status(IStatus.ERROR, LaunchingPlugin.getUniqueIdentifier(), IJavaLaunchConfigurationConstants.ERR_VM_CONNECT_TIMEOUT, "", e); //$NON-NLS-1$
                        IStatusHandler handler = DebugPlugin.getDefault().getStatusHandler(status);

                        retry= false;
                        if (handler == null) {
                            // if there is no handler, throw the exception
                            throw new CoreException(status);
                        }
                        Object result = handler.handleStatus(status, this);
                        if (result instanceof Boolean) {
                            retry = ((Boolean)result).booleanValue();
                        }
                    }
                } while (retry);
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

                    } catch (InterruptedIOException e) {
                        checkErrorMessage(process);

                        // timeout, consult status handler if there is one
                        IStatus status = new Status(IStatus.ERROR, LaunchingPlugin.getUniqueIdentifier(), IJavaLaunchConfigurationConstants.ERR_VM_CONNECT_TIMEOUT, "", e); //$NON-NLS-1$
                        IStatusHandler handler = DebugPlugin.getDefault().getStatusHandler(status);

                        retry= false;
                        if (handler == null) {
                            // if there is no handler, throw the exception
                            throw new CoreException(status);
                        }
                        Object result = handler.handleStatus(status, this);
                        if (result instanceof Boolean) {
                            retry = ((Boolean)result).booleanValue();
                        }
                    }
                } while (retry);
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

     * Return the current stack frame context, or a valid stack frame for the
     * given value.
     */
    public static IJavaStackFrame getStackFrame(IValue value)
            throws CoreException {
        IStatusHandler handler = getStackFrameProvider();
        if (handler != null) {
            IJavaStackFrame stackFrame = (IJavaStackFrame) handler
                    .handleStatus(fgNeedStackFrame, value);
            if (stackFrame != null) {
                return stackFrame;
            }
        }
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

          IStatus.ERROR,
          JDIDebugPlugin.getUniqueIdentifier(),
          NO_LINE_NUMBERS,
          JDIDebugBreakpointMessages.JavaLineBreakpoint_Absent_Line_Number_Information_1,
          null);
      IStatusHandler handler = DebugPlugin.getDefault().getStatusHandler(
          status);
      if (handler != null) {
        try {
          handler.handleStatus(status, type);
        } catch (CoreException e) {
        }
      }
      return null;
    } catch (NativeMethodException e) {
View Full Code Here

Examples of org.eclipse.debug.core.IStatusHandler

                IStatus.ERROR,
                JDIDebugPlugin.getUniqueIdentifier(),
                SUSPEND_TIMEOUT,
                MessageFormat.format(JDIDebugModelMessages.JDIThread_suspend_timeout, new Integer(timeout).toString()),
                null);
            IStatusHandler handler = DebugPlugin.getDefault()
                .getStatusHandler(status);
            if (handler != null) {
              try {
                handler.handleStatus(status, JDIThread.this);
              } catch (CoreException e) {
              }
            }
          }
          setRunning(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.