reverting back dumb service message propagation. It seems like PsiModificationTracker do the trick (propagates to the parent).

This commit is contained in:
Alexey Pegov
2011-09-22 14:21:58 +04:00
parent c5f0391ac9
commit 6749348ba0
2 changed files with 1 additions and 13 deletions
@@ -44,7 +44,7 @@ public abstract class DumbService {
/**
* @see com.intellij.openapi.project.Project#getMessageBus()
*/
public static final Topic<DumbModeListener> DUMB_MODE = new Topic<DumbModeListener>("dumb mode", DumbModeListener.class, Topic.BroadcastDirection.TO_PARENT);
public static final Topic<DumbModeListener> DUMB_MODE = new Topic<DumbModeListener>("dumb mode", DumbModeListener.class);
/**
* @return whether IntelliJ IDEA is in dumb mode, which means that right now indices are updated in background.
@@ -20,7 +20,6 @@
package com.intellij.ui;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.DumbService;
import com.intellij.psi.util.PsiModificationTracker;
import com.intellij.util.Function;
import com.intellij.util.messages.MessageBus;
@@ -43,17 +42,6 @@ public class IconDeferrerImpl extends IconDeferrer {
clear();
}
});
connection.subscribe(DumbService.DUMB_MODE, new DumbService.DumbModeListener() {
@Override
public void enteredDumbMode() {
}
@Override
public void exitDumbMode() {
clear();
}
});
}
private void clear() {