deferred icon loading -- registry key

This commit is contained in:
Kirill Kalishev
2010-07-28 13:59:42 +04:00
parent 4a0f00a782
commit 4e4f62ea3b
2 changed files with 5 additions and 1 deletions
@@ -21,6 +21,7 @@ import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.IconLoader;
import com.intellij.openapi.util.Iconable;
import com.intellij.openapi.util.UserDataHolderBase;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.project.IndexNotReadyException;
@@ -95,7 +96,7 @@ public abstract class ElementBase extends UserDataHolderBase implements Iconable
}
protected boolean isToDeferIconLoading() {
return true;
return Registry.is("psi.deferIconLoading");
}
private Icon computeIconNow(PsiElement element, int flags) {
@@ -77,7 +77,10 @@ compiler.perform.outputs.refresh.on.start.description=Whether to perform initial
compiler.perform.outputs.refresh.on.start.restartRequired=false
vcs.show.colored.annotations=true
vcs.showConsole=true
psi.viewer.selection.color=0,153,153
psi.deferIconLoading=true
structureView.coalesceTime=500
jar.build=false