do not show balloon in headless mode in tests

This commit is contained in:
anna
2011-03-17 21:26:16 +01:00
parent 59f29c05c3
commit fd6573cbf2
@@ -348,6 +348,7 @@ public class VariableInplaceIntroducer extends VariableInplaceRenamer {
private void showBalloon() {
final JComponent component = getComponent();
if (component == null) return;
if (ApplicationManager.getApplication().isHeadlessEnvironment()) return;
final BalloonBuilder balloonBuilder = JBPopupFactory.getInstance().createBalloonBuilder(component);
balloonBuilder.setFadeoutTime(0)
.setFillColor(IdeTooltipManager.GRAPHITE_COLOR)