Examples of MessageType


Examples of com.baulsupp.kolja.log.line.type.MessageType

  private ExceptionType parseExceptionType(Element e) {
    return new ExceptionType(e.getAttribute("name"));
  }

  private MessageType parseMessageType(Element e) {
    return new MessageType(e.getAttribute("name"));
  }
View Full Code Here

Examples of com.briman0094.irc.MessageType

        }
        else if (cmd.equalsIgnoreCase("quote"))
        {
          if (split.length > 1)
          {
            MessageType type = MessageType.getMessageType(split[1]);
            if (type != null)
            {
              String[] newArgs = new String[split.length - 2];
              for (int i = 0; i < newArgs.length; i++)
              {
View Full Code Here

Examples of com.dci.intellij.dbn.common.message.MessageType

        else if (value instanceof CompilerMessageNode) {
            CompilerMessageNode node = (CompilerMessageNode) value;
            CompilerMessage message = node.getCompilerMessage();
            append(message.getText(), SimpleTextAttributes.REGULAR_ATTRIBUTES);

            MessageType messageType = message.getType();
            Icon icon =
                    messageType == MessageType.ERROR ? Icons.EXEC_MESSAGES_ERROR :
                    messageType == MessageType.WARNING ? Icons.EXEC_MESSAGES_WARNING :
                    messageType == MessageType.INFO ? Icons.EXEC_MESSAGES_INFO : null;
            setIcon(icon);
        }
        else if (value instanceof StatementExecutionMessageNode) {
            StatementExecutionMessageNode execMessageNode = (StatementExecutionMessageNode) value;
            StatementExecutionMessage message = execMessageNode.getExecutionMessage();
            boolean isOrphan = message.isOrphan();

            MessageType messageType = message.getType();
            Icon icon =
                    messageType == MessageType.ERROR ? (isOrphan ? Icons.EXEC_MESSAGES_WARNING : Icons.EXEC_MESSAGES_ERROR) :
                    messageType == MessageType.WARNING ? Icons.EXEC_MESSAGES_WARNING :
                    messageType == MessageType.INFO ? Icons.EXEC_MESSAGES_INFO : null;
View Full Code Here

Examples of com.google.gwt.dev.shell.BrowserChannel.MessageType

    int minVersion = BrowserChannel.PROTOCOL_VERSION_OLDEST;
    int maxVersion = BrowserChannel.PROTOCOL_VERSION_CURRENT;
    String hostedHtmlVersion = HostedHtmlVersion.EXPECTED_GWT_ONLOAD_VERSION;
    new CheckVersionsMessage(channel, minVersion, maxVersion,
        hostedHtmlVersion).send();
    MessageType type = channel.readMessageType();
    assertEquals(MessageType.CHECK_VERSIONS, type);
    CheckVersionsMessage message = CheckVersionsMessage.receive(channel);
    assertEquals(minVersion, message.getMinVersion());
    assertEquals(maxVersion, message.getMaxVersion());
    assertEquals(hostedHtmlVersion, message.getHostedHtmlVersion());
View Full Code Here

Examples of com.google.gwt.dev.shell.BrowserChannel.MessageType

  public void testChooseTransport() throws IOException,
      BrowserChannelException {
    String[] transports = new String[] { "shm" };
    new ChooseTransportMessage(channel, transports).send();
    MessageType type = channel.readMessageType();
    assertEquals(MessageType.CHOOSE_TRANSPORT, type);
    ChooseTransportMessage message = ChooseTransportMessage.receive(channel);
    String[] transportsRecv = message.getTransports();
    assertTrue(Arrays.equals(transports, transportsRecv));
  }
View Full Code Here

Examples of com.google.gwt.dev.shell.BrowserChannel.MessageType

  public void testFatalErrorMessage() throws IOException,
      BrowserChannelException {
    String error = "Fatal error";
    new FatalErrorMessage(channel, error).send();
    MessageType type = channel.readMessageType();
    assertEquals(MessageType.FATAL_ERROR, type);
    FatalErrorMessage message = FatalErrorMessage.receive(channel);
    assertEquals(error, message.getError());
  }
View Full Code Here

Examples of com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.MessageType

  }

  private void processMessage(final Message message)
      throws InterruptedException {

    MessageType messageType = message.getMessageType();
    if (messageType == null) {
      processUnknownMessageType(message.getMessageId(), "unknown");
      return;
    }

    switch (messageType) {
      case RESPONSE: {
        processServerResponse(message.getMessageId(), message.getResponse());
        break;
      }

      case REQUEST: {
        processClientRequest(message.getMessageId(), message.getRequest());
        break;
      }

      case FAILURE: {
        processFailure(message.getMessageId(), message.getFailure());
        break;
      }

      default: {
        processUnknownMessageType(message.getMessageId(), messageType.name());
        break;
      }
    }
  }
View Full Code Here

Examples of com.intellij.openapi.ui.MessageType

        {
          available = true;
        }
      }).start();

      MessageType messageType = message.getType().getMessageType();

      label.setIcon(messageType.getDefaultIcon());
      label.setText(RevuBundle.message("statusPopup.alert.text", message.getTitle()));

      StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
      if (statusBar != null)
      {
        statusBar.fireNotificationPopup(label, messageType.getPopupBackground());
      }
    }
View Full Code Here

Examples of com.intellij.openapi.ui.MessageType

    _createBalloon(project, parent, orientation, builder);
  }


  public static void showInfoPopup(final Project project, final Component parent, final String html, final Orientation orientation) {
    final MessageType type = MessageType.INFO;
    final BalloonBuilder builder = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(html, type.getDefaultIcon(), type.getPopupBackground(), null);
    _createBalloon(project, parent, orientation, builder);
  }
View Full Code Here

Examples of com.intellij.openapi.ui.MessageType

    _createBalloon(project, parent, orientation, builder);
  }


  public static void showWarnPopup(final Project project, final Component parent, final String html, final Orientation orientation) {
    final MessageType type = MessageType.WARNING;
    final BalloonBuilder builder = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(html, type.getDefaultIcon(), type.getPopupBackground(), null);
    _createBalloon(project, parent, orientation, builder);
  }
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.