Package org.eclipse.wst.sse.core.internal.text

Examples of org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument


  private synchronized void update(IPHPDebugTarget target) {
    IPHPDebugTarget oldTarget = fTarget;
    int oldcount = fUpdateCount;
    fTarget = target;
    HTMLDocumentLoader ss = new HTMLDocumentLoader();
    BasicStructuredDocument dd = (BasicStructuredDocument) ss
        .createNewStructuredDocument();
    Object input = dd;
    if (fTarget != null) {
      if ((fTarget.isSuspended()) || (fTarget.isTerminated())
          || (fTarget.isWaiting())) {
        DebugOutput outputBuffer = fTarget.getOutputBuffer();
        fUpdateCount = outputBuffer.getUpdateCount();

        // check if output hasn't been updated
        if (fTarget == oldTarget && fUpdateCount == oldcount)
          return;

        String output = outputBuffer.toString();
        dd.setText(this, output);
      } else {
        // Not Suspended or Terminated

        // the following is a fix for bug
        // https://bugs.eclipse.org/bugs/show_bug.cgi?id=205688
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument

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.