Package org.eclipse.jdt.debug.core

Examples of org.eclipse.jdt.debug.core.IJavaObject.sendMessage()


                IStatus.OK,
                NLS.bind(InstructionsEvaluationMessages.Cast_No_class_object,
                        new String[] { typeName() }),
                null));
      }
      IJavaPrimitiveValue resultValue = (IJavaPrimitiveValue) classObject
          .sendMessage(IS_INSTANCE, IS_INSTANCE_SIGNATURE,
              new IJavaValue[] { value }, getContext()
                  .getThread(), false);
      if (!resultValue.getBooleanValue()) {
        throw new CoreException(
View Full Code Here


              IJavaObject modelObject = (IJavaObject) JDIValue
                  .createValue(
                      (JDIDebugTarget) getDebugTarget(),
                      exObject);
              try {
                modelObject
                    .sendMessage(
                        "printStackTrace", "()V", null, jt, false); //$NON-NLS-1$ //$NON-NLS-2$
              } catch (DebugException e) {
                // unable to print stack trace
              }
View Full Code Here

  public void run(IJavaThread thread, IProgressMonitor monitor) {
    IJavaObject codeSnippetInstance = null;
    try {
      codeSnippetInstance = newInstance(getCodeSnippetClassName());
      initializeLocals(codeSnippetInstance);
      codeSnippetInstance.sendMessage(RUN_METHOD,  "()V", null, getThread(), false); //$NON-NLS-1$
      restoreLocals(codeSnippetInstance);

      // now retrieve the description of the result
      IVariable[] fields = codeSnippetInstance.getVariables();
      IJavaVariable resultValue = null;
View Full Code Here

          try {
            try {
              IJavaObject v = (IJavaObject) JDIValue.createValue(
                  (JDIDebugTarget) getDebugTarget(),
                  theException);
              v.sendMessage(
                  "printStackTrace", "()V", null, getThread(), false); //$NON-NLS-2$ //$NON-NLS-1$
            } catch (DebugException de) {
              JDIDebugPlugin.log(de);
            }
          } catch (RuntimeException re) {
View Full Code Here

      IJavaValue[] args = new IJavaValue[] { getDebugTarget().newValue(
          className) };
      IJavaObject classObject = (IJavaObject) classClass
          .sendMessage(
              "forName", "(Ljava/lang/String;)Ljava/lang/Class;", args, getThread()); //$NON-NLS-2$ //$NON-NLS-1$
      object = (IJavaObject) classObject
          .sendMessage(
              "newInstance", "()Ljava/lang/Object;", null, getThread(), false); //$NON-NLS-2$ //$NON-NLS-1$
    } else {
      object = clazz.newInstance("<init>", null, getThread()); //$NON-NLS-1$
    }
View Full Code Here

              IStatus.OK,
              NLS.bind(InstructionsEvaluationMessages.InstanceOfOperator_No_class_object,
                      new String[] { type.getName() }),
              null));
    }
    push(classObject.sendMessage(IS_INSTANCE, IS_INSTANCE_SIGNATURE,
        new IJavaValue[] { object }, getContext().getThread(), false));
  }

  @Override
  public String toString() {
View Full Code Here

              IJavaObject modelObject = (IJavaObject) JDIValue
                  .createValue(
                      (JDIDebugTarget) getDebugTarget(),
                      exObject);
              try {
                modelObject
                    .sendMessage(
                        "printStackTrace", "()V", null, jt, false); //$NON-NLS-1$ //$NON-NLS-2$
              } catch (DebugException e) {
                // unable to print stack trace
              }
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.