Package com.intellij.openapi.wm

Examples of com.intellij.openapi.wm.StatusBar


    });
  }

  public void projectOpened()
  {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
    if (statusBar == null)
    {
      return;
    }

    statusBar.addCustomIndicationComponent(this);
    WindowManager.getInstance().getFrame(project).repaint();

    reviewExternalizationListener = new IReviewExternalizationListener()
    {
      public void loadFailed(final File file, Exception exception)
View Full Code Here


      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

    //endregion

    highlightManager.addOccurrenceHighlights(
        editor, usages.toArray(new PsiElement[usages.size()]), textattributes, false, null);
    final WindowManager windowManager = WindowManager.getInstance();
    final StatusBar statusBar = windowManager.getStatusBar(project);
    assert statusBar != null;
    statusBar.setInfo("Press Esc to remove highlighting");
  }
View Full Code Here

      Runnable runnable = new Runnable() {
        public void run() {

          if (!myProject.isDisposed()) {
            final StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
            if (null != statusBar) {
              statusBar.removeWidget(statusWidget.ID());
            }
          }
        }
      };
      try {
View Full Code Here

    });
  }

  public void projectOpened()
  {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
    if (statusBar == null)
    {
      return;
    }

    statusBar.addCustomIndicationComponent(this);
    WindowManager.getInstance().getFrame(project).repaint();

    reviewExternalizationListener = new IReviewExternalizationListener()
    {
      public void loadFailed(final File file, Exception exception)
View Full Code Here

      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

   * @param messageType type of balloon
   * @param message that will be shown
   */
  private void showMessageBubble(final AnActionEvent actionEvent, final MessageType messageType, final String message) {

    StatusBar statusBar = WindowManager.getInstance()
        .getStatusBar(actionEvent.getData(PlatformDataKeys.PROJECT));


    JBPopupFactory.getInstance()
        .createHtmlTextBalloonBuilder(message, messageType, null)
        .setFadeoutTime(7500)
        .createBalloon()
        .show(RelativePoint.getCenterOf(statusBar.getComponent()),
            Balloon.Position.atRight);
  }
View Full Code Here

                        JTextArea area = new JTextArea();
                        area.setOpaque(false);
                        area.setEditable(false);
                        StringBuffer notification = new StringBuffer(statusMessage);
                        area.setText(notification.toString());
                        StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
                        if (statusBar != null)

                        {
                            statusBar.fireNotificationPopup(area, LightColors.GREEN);
                        }
                    }

                }
        );
View Full Code Here

                "OptionPane.questionIcon",
                true,
                ctx.project);
        dialog.show();
        if (!dialog.isOK()) {
            StatusBar statusBar = WindowManager.getInstance().getStatusBar(ctx.project);
            if (statusBar != null) {
                statusBar.setInfo(RefactoringBundle.message("press.escape.to.remove.the.highlighting"));
            }
            return false;
        }
        return true;
    }
View Full Code Here

        ApplicationManager.getApplication().invokeLater(new Runnable() {
            @Override
            public void run() {
                ApplicationManager.getApplication().runWriteAction(new Runnable() {
                    public void run() {
                        StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
                        if (statusBar == null) {
                            return;
                        }
                        JLabel jLabel = new JLabel(message);
                        statusBar.fireNotificationPopup(jLabel, JBColor.WHITE);
                    }
                });
            }
        });
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.wm.StatusBar

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.