DumbService: do not try to show notifications in test-mode

This commit is contained in:
Anton.Makeev
2009-11-09 12:28:08 +03:00
parent 5a2ce276f9
commit 3295fe1b42
@@ -153,6 +153,13 @@ public class DumbServiceImpl extends DumbService {
@Override
public BalloonHandler showDumbModeNotification(final String message) {
if (ApplicationManager.getApplication().isUnitTestMode() || ApplicationManager.getApplication().isHeadlessEnvironment()) {
return new BalloonHandler() {
public void hide() {
}
};
}
StatusBarEx statusBar = (StatusBarEx)WindowManager.getInstance().getIdeFrame(myProject).getStatusBar();
HyperlinkListener listener = new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {