Package org.eclipse.php.internal.debug.core.model

Examples of org.eclipse.php.internal.debug.core.model.IPHPDebugTarget


  public boolean isWaiting() {
    boolean isWaiting = (targetState == STATE_INIT_SESSION_WAIT);
    synchronized (debugTargets) {
      for (int i = 0; i < debugTargets.size() && !isWaiting; i++) {
        IPHPDebugTarget target = debugTargets.get(i);
        isWaiting = isWaiting | target.isWaiting();
      }
    }
    return isWaiting;
  }
View Full Code Here


   * @seeorg.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.
   * IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
   */
  public void selectionChanged(IWorkbenchPart part, ISelection selection) {

    IPHPDebugTarget target = debugViewHelper.getSelectionElement(selection);
    update(target);
  }
View Full Code Here

    IPHPDebugTarget target = debugViewHelper.getSelectionElement(selection);
    update(target);
  }

  private synchronized void update(IPHPDebugTarget target) {
    IPHPDebugTarget oldTarget = fTarget;
    int oldcount = fUpdateCount;
    fTarget = target;
    HTMLDocumentLoader ss = new HTMLDocumentLoader();
    BasicStructuredDocument dd = (BasicStructuredDocument) ss
        .createNewStructuredDocument();
View Full Code Here

  }

  protected void becomesVisible() {
    super.becomesVisible();
    IPHPDebugTarget target = debugViewHelper.getSelectionElement(null);
    update(target);
  }
View Full Code Here

   *
   * @seeorg.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.
   * IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
   */
  public void selectionChanged(IWorkbenchPart part, ISelection selection) {
    IPHPDebugTarget target = debugViewHelper.getSelectionElement(selection);
    update(target);
  }
View Full Code Here

   * @seeorg.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.
   * IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
   */
  public void update(IPHPDebugTarget target) {
    if (swtBrowser != null && !swtBrowser.isDisposed()) {
      IPHPDebugTarget oldTarget = fTarget;
      int oldcount = fUpdateCount;
      fTarget = target;

      DebugOutput debugOutput = null;
      if (fTarget != null) {
View Full Code Here

     * @see org.eclipse.ui.IPartListener2#partVisible(IWorkbenchPartReference)
     */
    public void partVisible(IWorkbenchPartReference ref) {
      IWorkbenchPart part = ref.getPart(false);
      if (part == DebugBrowserView.this) {
        IPHPDebugTarget target = debugViewHelper
            .getSelectionElement(null);
        update(target);
      }
    }
View Full Code Here

              element = (IDebugElement) first;
          }
        }
      }
    }
    IPHPDebugTarget target = getDebugTarget(element);
    // If target is null try to get target from the last debug process to
    // run
    if (target == null) {
      IProcess process = DebugUITools.getCurrentProcess();
      if (process != null) {
View Full Code Here

    }
    return element;
  }

  private IPHPDebugTarget getDebugTarget(IDebugElement element) {
    IPHPDebugTarget target = null;
    if (element != null) {
      if (element.getModelIdentifier().equals(
          IPHPDebugConstants.ID_PHP_DEBUG_CORE)
          || element.getModelIdentifier().equals(
              IDBGpModelConstants.DBGP_MODEL_ID)) {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.model.IPHPDebugTarget

Copyright © 2018 www.massapicom. 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.