Examples of IDebugElement


Examples of org.eclipse.debug.core.model.IDebugElement

          }
          break;
        case DebugEvent.SUSPEND:
          if (event.getDetail() != DebugEvent.EVALUATION_IMPLICIT &&
              event.getSource() instanceof IDebugElement) {
            IDebugElement source = (IDebugElement) event.getSource();
            if (source.getDebugTarget().equals(getDebugTarget())) {
              DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {
                  new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT) });
            }
          }
          break;
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

          }
          break;
        case DebugEvent.SUSPEND:
          if (event.getDetail() != DebugEvent.EVALUATION_IMPLICIT &&
              event.getSource() instanceof IDebugElement) {
            IDebugElement source = (IDebugElement) event.getSource();
            if (source.getDebugTarget().equals(getDebugTarget())) {
              DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {
                  new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT) });
            }
          }
          break;
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

    IDebugTarget debugTarget;
    if (element instanceof ILaunch) {
      ILaunch launch = (ILaunch) element;
      debugTarget = launch.getDebugTarget();
    } else if (element instanceof IDebugElement) {
      IDebugElement debugElement = (IDebugElement) element;
      debugTarget = debugElement.getDebugTarget();
    } else {
      return null;
    }
    if (debugTarget instanceof DebugTargetImpl == false) {
      return null;
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

    private void createExpression(String variable) {
        IWatchExpression expression = DebugPlugin.getDefault().getExpressionManager().newWatchExpression(variable);

        DebugPlugin.getDefault().getExpressionManager().addExpression(expression);
        IAdaptable object = DebugUITools.getDebugContext();
        IDebugElement context = null;
        if (object instanceof IDebugElement) {
            context = (IDebugElement) object;
        } else if (object instanceof ILaunch) {
            context = ((ILaunch) object).getDebugTarget();
        }
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

     * @return the created expression.
     */
    public static IWatchExpression createWatchExpression(final String expr) {
        final IWatchExpression expression = DebugPlugin.getDefault().getExpressionManager().newWatchExpression(expr);
        IAdaptable object = DebugUITools.getDebugContext();
        IDebugElement context = null;
        if (object instanceof IDebugElement) {
            context = (IDebugElement) object;
        } else if (object instanceof ILaunch) {
            context = ((ILaunch) object).getDebugTarget();
        }
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

            return null;
        }

        IAdaptable object = DebugUITools.getDebugContext();

        IDebugElement context = null;
        if (object instanceof IDebugElement) {
            context = (IDebugElement) object;
        } else if (object instanceof ILaunch) {
            context = ((ILaunch) object).getDebugTarget();
        }

        if (context != null) {
            IDebugTarget debugTarget = context.getDebugTarget();
            if (debugTarget == null || debugTarget.isTerminated()) {
                return null;
            }
            String act = null;
            ITextSelection textSelection = (ITextSelection) selection;
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

   */
  public static IDebugTarget getActiveDebugTarget() {
    IDebugTarget debugTarget = null;
    IAdaptable adaptable = DebugUITools.getDebugContext();
    if (adaptable != null) {
      IDebugElement element = (IDebugElement) adaptable
          .getAdapter(IDebugElement.class);
      if (element != null) {
        debugTarget = element.getDebugTarget();
      }
    }
    if (debugTarget == null) {
      IProcess process = DebugUITools.getCurrentProcess();
      if (process instanceof PHPProcess) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

import org.eclipse.php.internal.debug.core.xdebug.dbgp.model.IDBGpModelConstants;

public class DebugViewHelper {

  public IPHPDebugTarget getSelectionElement(ISelection selection) {
    IDebugElement element = getAdaptableElement();
    if (element == null) {
      if (selection != null) {
        if (selection instanceof StructuredSelection) {
          StructuredSelection sSelection = (StructuredSelection) selection;
          if (!sSelection.isEmpty()) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

    return target;
  }

  private IDebugElement getAdaptableElement() {
    IDebugElement element = null;
    IAdaptable adaptable = DebugUITools.getDebugContext();
    if (adaptable != null) {
      element = (IDebugElement) adaptable.getAdapter(IDebugElement.class);
    }
    if (element == null) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugElement

    if (!isVisible) {
      return;
    }
    IAdaptable adaptable = DebugUITools.getDebugContext();
    fTarget = null;
    IDebugElement element = null;
    if (adaptable != null) {
      element = (IDebugElement) adaptable.getAdapter(IDebugElement.class);
      if (element != null) {
        if (element.getModelIdentifier().equals(
            IPHPDebugConstants.ID_PHP_DEBUG_CORE)) {
          fTarget = (PHPDebugTarget) element.getDebugTarget();
        }
      }
    }
    Object input = null;
    if (fTarget != null && fTarget.isSuspended()) {
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.