Package com.intellij.openapi.ui.popup

Examples of com.intellij.openapi.ui.popup.Balloon.show()


  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());
  }


  private BalloonTipFactory() {
  }
View Full Code Here


        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);
            }
        });
    }

    private Map.Entry<String, Build> getFirstFailedBuild(Map<String, Build> finishedBuilds) {
View Full Code Here

                        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)
View Full Code Here

                    }
                    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

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.