mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DumbService: do not try to show notifications in test-mode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user