Package com.intellij.openapi.ui

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


    _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

    _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

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


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

        {
          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

        try {
          errorCount = compileContext.getMessageCount(CompilerMessageCategory.ERROR);
          warningCount = compileContext.getMessageCount(CompilerMessageCategory.WARNING);
          if (!myProject.isDisposed()) {
            final String statusMessage = createStatusMessage(_status, warningCount, errorCount, duration);
            final MessageType messageType = errorCount > 0 ? MessageType.ERROR : warningCount > 0 ? MessageType.WARNING : MessageType.INFO;
            if (duration > ONE_MINUTE_MS) {
              ToolWindowManager.getInstance(myProject).notifyByBalloon(ToolWindowId.MESSAGES_WINDOW, messageType, statusMessage);
            }
            CompilerManager.NOTIFICATION_GROUP.createNotification(statusMessage, messageType).notify(myProject);
            if (_status != ExitStatus.UP_TO_DATE && compileContext.getMessageCount(null) > 0) {
View Full Code Here

TOP

Related Classes of com.intellij.openapi.ui.MessageType

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.