Package org.eclipse.php.debug.core.debugger.messages

Examples of org.eclipse.php.debug.core.debugger.messages.IDebugMessage


        if (!isAlive)
          break;

        try {
          IDebugMessage newInputMessage = (IDebugMessage) inputMessageQueue
              .queueOut();

          if (PHPDebugPlugin.DEBUG) {
            System.out.println("New message received: " //$NON-NLS-1$
                + newInputMessage);
View Full Code Here


              shutDown();
              return;
            }
            validProtocol = true;

            IDebugMessage message = DebugMessagesRegistry
                .getMessage(messageType);
            if (message != null) {
              if (message instanceof OutputNotification) {
                message.setTransferEncoding(outputEncoding);
              } else {
                message.setTransferEncoding(transferEncoding);
              }
            }

            // handle the message
            if (message instanceof IDebugNotificationMessage) {
              message.deserialize(in);
              // getCommunicationClient().handleNotification((Notification)message);
              // PUT NOTIFICATION TO NOTIFICATION QUEUE
              inputMessageHandler.queueIn(message);
            } else if (message instanceof IDebugResponseMessage) {
              message.deserialize(in);
              int idd = ((IDebugResponseMessage) message).getID();
              // responseQueue.queueIn(message);
              // INSERT RESPONSE TO TABLE AND RELEASE THE THREAD
              // WAITING FOR THE REQUEST
              ResponseHandler handler = responseHandlers
                  .get(Integer.valueOf(idd)); // find the handler.
              if (handler == null) {
                responseTable.put(/* requestId */idd, message);
                IDebugRequestMessage req = (IDebugRequestMessage) requestsTable
                    .remove(idd); // find the request.
                if (req != null) {
                  synchronized (req) {
                    req.notifyAll(); // Notify the response
                              // is here.
                  }
                } else {
                  // Remove this message.
                  responseTable.remove(idd);
                }
              } else {
                inputMessageHandler.queueIn(message);
              }
            } else if (message instanceof IDebugRequestMessage) { // this
                                        // is
                                        // a
                                        // request.
              message.deserialize(in);
              // Response response =
              // getCommunicationClient().handleRequest((Request)message);
              inputMessageHandler.queueIn(message);
            }
          } // end of synchronized part.
View Full Code Here

        .values();
    while (configElements.remove(null))
      ; // remove null elements

    for (final IConfigurationElement element : configElements) {
      final IDebugMessage messages[] = new IDebugMessage[1];

      SafeRunnable
          .run(new SafeRunnable(
              "Error creation extension for extension-point org.eclipse.php.internal.debug.core.phpDebugMessages") { //$NON-NLS-1$
            public void run() throws Exception {
View Full Code Here

TOP

Related Classes of org.eclipse.php.debug.core.debugger.messages.IDebugMessage

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.