summaryrefslogtreecommitdiff
path: root/platform/platform-api/src/com/intellij/ide/util
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-api/src/com/intellij/ide/util')
-rw-r--r--platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java4
-rw-r--r--platform/platform-api/src/com/intellij/ide/util/treeView/UpdaterTreeState.java5
2 files changed, 5 insertions, 4 deletions
diff --git a/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java b/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java
index 10285d05fbee..cd8499850430 100644
--- a/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java
+++ b/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java
@@ -1305,7 +1305,7 @@ public class AbstractTreeUi {
}
if (isSelectionInside(node)) {
- addSelectionPath(getPathFor(node), true, Condition.TRUE, null);
+ addSelectionPath(getPathFor(node), true, Conditions.alwaysTrue(), null);
}
processInnerChange(new Runnable() {
@@ -4853,7 +4853,7 @@ public class AbstractTreeUi {
}
if (pathToSelect != null && myTree.isSelectionEmpty()) {
- addSelectionPath(pathToSelect, true, Condition.FALSE, null);
+ addSelectionPath(pathToSelect, true, Conditions.alwaysFalse(), null);
}
}
}
diff --git a/platform/platform-api/src/com/intellij/ide/util/treeView/UpdaterTreeState.java b/platform/platform-api/src/com/intellij/ide/util/treeView/UpdaterTreeState.java
index d8ab18646aee..e1b0d7f63fe6 100644
--- a/platform/platform-api/src/com/intellij/ide/util/treeView/UpdaterTreeState.java
+++ b/platform/platform-api/src/com/intellij/ide/util/treeView/UpdaterTreeState.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2000-2009 JetBrains s.r.o.
+ * Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ package com.intellij.ide.util.treeView;
import com.intellij.openapi.util.ActionCallback;
import com.intellij.openapi.util.Condition;
+import com.intellij.openapi.util.Conditions;
import com.intellij.util.ArrayUtil;
import com.intellij.util.Function;
import com.intellij.util.containers.ContainerUtil;
@@ -214,7 +215,7 @@ public class UpdaterTreeState {
if (!children.contains(eachToSelect)) {
toSelect.remove();
if (!myToSelect.containsKey(readyElement) && !myUi.getSelectedElements().contains(eachToSelect)) {
- addAdjustedSelection(eachToSelect, Condition.FALSE, null);
+ addAdjustedSelection(eachToSelect, Conditions.alwaysFalse(), null);
}
}
}