IDEA-152049 Favorites collapses in unpinned mode after some time and changes in editor

This commit is contained in:
Sergey Malenkov
2016-09-17 18:47:13 +03:00
parent 48e2ed8b08
commit 481243d0fe
3 changed files with 6 additions and 1 deletions
@@ -28,6 +28,7 @@ import com.intellij.openapi.progress.Progressive;
import com.intellij.openapi.progress.util.StatusBarProgress;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.*;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.wm.FocusRequestor;
import com.intellij.openapi.wm.IdeFocusManager;
@@ -59,6 +60,7 @@ public abstract class BaseProjectTreeBuilder extends AbstractTreeBuilder {
@NotNull AbstractTreeStructure treeStructure,
@Nullable Comparator<NodeDescriptor> comparator) {
init(tree, treeModel, treeStructure, comparator, DEFAULT_UPDATE_INACTIVE);
getUi().setClearOnHideDelay(Registry.intValue("ide.tree.clearOnHideTime"));
myProject = project;
}
@@ -2299,7 +2299,7 @@ public class AbstractTreeUi {
}
public long getClearOnHideDelay() {
return myClearOnHideDelay > 0 ? myClearOnHideDelay : Registry.intValue("ide.tree.clearOnHideTime");
return myClearOnHideDelay;
}
@NotNull
@@ -105,7 +105,10 @@ passwordSafe.memorySafe.ttl=-1
ide.tree.yieldingUiUpdate=true
ide.tree.showBusyIndicator=true
ide.tree.waitForReadyTimeout=250
ide.tree.clearOnHideTime=120000
ide.tree.clearOnHideTime.description=Time in milliseconds when the hidden project view tree will be deactivated.
ide.tree.autoscrollToVCenter=true
ide.tree.ensureSelectionOnFocusGained=true
ide.tree.autoExpandMaxDepth=5