Examples of Balloon


Examples of com.intellij.openapi.ui.popup.Balloon


  private static void _createBalloon(final Project project, final Component parent, final Orientation orientation, final BalloonBuilder builder) {
    builder.setHideOnClickOutside(true);
    builder.setHideOnKeyOutside(true);
    final Balloon balloon = builder.createBalloon();
    balloon.show(new RelativePoint(parent, new Point(parent.getWidth() / 2, parent.getHeight() / 2)), orientation.getOrientation());
  }
View Full Code Here

Examples of com.intellij.openapi.ui.popup.Balloon

        }
    }

    private void displayErrorMessageInABalloon(String message) {
        BalloonBuilder balloonBuilder = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(message, MessageType.ERROR, null);
        final Balloon balloon = balloonBuilder.setFadeoutTime(TimeUnit.SECONDS.toMillis(1)).createBalloon();
        GuiUtil.runInSwingThread(new Runnable() {
            @Override
            public void run() {
                balloon.show(new RelativePoint(JenkinsWidget.getInstance(project).getComponent(), new Point(0, 0)), Balloon.Position.above);
            }
        });
    }
View Full Code Here

Examples of com.intellij.openapi.ui.popup.Balloon

      if (ToolWindowManager.getInstance(myProject).getToolWindow(PUB_SERVE).isVisible()) {
        return;
      }

      if (myNotification != null && !myNotification.isExpired()) {
        final Balloon balloon1 = myNotification.getBalloon();
        final Balloon balloon2 = ToolWindowManager.getInstance(myProject).getToolWindowBalloon(PUB_SERVE);
        if ((balloon1 != null || balloon2 != null) && (myNotificationAboutErrors || !isError)) {
          return; // already showing correct balloon
        }
        myNotification.expire();
      }
View Full Code Here

Examples of com.intellij.openapi.ui.popup.Balloon

                if (selection instanceof SonarTreeModel.RuleLabel) {
                    if (rulesToolTipMap != null && rulesToolTipMap.size() != 0) {
                        final SonarTreeModel.RuleLabel ruleLabel = (SonarTreeModel.RuleLabel) selection;
                        String toolTipText = rulesToolTipMap.get(ruleLabel.getRuleKey());
                        if (toolTipText != null) {
                            Balloon popup = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(toolTipText, MessageType.INFO, null)
                                    .createBalloon();
                            JComponent component = toolWindow.getComponent();
                            popup.show(new RelativePoint(component, new Point()), Balloon.Position.above);
                            return;
                        }
                    }
                    Balloon popup = JBPopupFactory.getInstance()
                            .createHtmlTextBalloonBuilder("<p>Can't show description</p><p>Check your sonar project configuration</p>", MessageType.WARNING, null)
                            .createBalloon();
                    JComponent component = toolWindow.getComponent();
                    popup.show(new RelativePoint(component, new Point()), Balloon.Position.above);
                    downloadRules();
                }
            }
        }
View Full Code Here

Examples of tray.balloon.Balloon

  @Override
  public void nativeDisplayMessage(int nativeId, final String caption,
      final String text, final MessageType messageType) {
    Point loc = nativeGetIconLocation0(nativeId);
    final Balloon balloon = new Balloon();
    balloon.setBounds(loc.x + 12, loc.y + 12, 1, 1);
    balloon.display(caption, text, messageType);
  }
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.