IDEA-320564 Remove toggleClickCount != 2 check from ProjectViewTree

Now with the Open Directories with Single Click feature this invariant
no longer holds.

GitOrigin-RevId: 5c6b00410962515e94018ed5582d82ee8b7106ee
This commit is contained in:
Sergei Tachenov
2023-05-17 13:41:55 +00:00
committed by intellij-monorepo-bot
parent b47890217a
commit cefb31e756
@@ -6,7 +6,6 @@ import com.intellij.ide.dnd.aware.DnDAwareTree;
import com.intellij.ide.util.treeView.PresentableNodeDescriptor;
import com.intellij.openapi.actionSystem.DataProvider;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.presentation.FilePresentationService;
import com.intellij.psi.PsiElement;
@@ -35,7 +34,6 @@ import java.awt.*;
* @author Konstantin Bulenkov
*/
public class ProjectViewTree extends DnDAwareTree implements SpeedSearchSupply.SpeedSearchLocator {
private static final Logger LOG = Logger.getInstance(ProjectViewTree.class);
/**
* @deprecated use another constructor instead
@@ -88,12 +86,6 @@ public class ProjectViewTree extends DnDAwareTree implements SpeedSearchSupply.S
return path == null ? null : ObjectUtils.tryCast(path.getLastPathComponent(), DefaultMutableTreeNode.class);
}
@Override
public void setToggleClickCount(int count) {
if (count != 2) LOG.info(new IllegalStateException("setToggleClickCount: unexpected count = " + count));
super.setToggleClickCount(count);
}
@Override
public boolean isFileColorsEnabled() {
return isFileColorsEnabledFor(this);