Search in sources :

Example 11 with TreeState

use of com.intellij.ide.util.treeView.TreeState in project intellij-community by JetBrains.

the class HideWhitespaceAction method setSelected.

public void setSelected(AnActionEvent e, boolean state) {
    final TreeState treeState = TreeState.createOn(myStructureTree);
    myEventModel.setFilterWhitespace(state);
    treeState.applyTo(myStructureTree);
}
Also used : TreeState(com.intellij.ide.util.treeView.TreeState)

Aggregations

TreeState (com.intellij.ide.util.treeView.TreeState)11 DefaultTreeModel (javax.swing.tree.DefaultTreeModel)4 InvalidDataException (com.intellij.openapi.util.InvalidDataException)3 TreePath (javax.swing.tree.TreePath)3 ChangesBrowserNode (com.intellij.openapi.vcs.changes.ui.ChangesBrowserNode)2 CheckedTreeNode (com.intellij.ui.CheckedTreeNode)2 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)2 PostfixTemplate (com.intellij.codeInsight.template.postfix.templates.PostfixTemplate)1 Language (com.intellij.lang.Language)1 EmptyRunnable (com.intellij.openapi.util.EmptyRunnable)1 WriteExternalException (com.intellij.openapi.util.WriteExternalException)1 StringUtil (com.intellij.openapi.util.text.StringUtil)1 CheckboxTree (com.intellij.ui.CheckboxTree)1 JBColor (com.intellij.ui.JBColor)1 SimpleTextAttributes (com.intellij.ui.SimpleTextAttributes)1 Consumer (com.intellij.util.Consumer)1 ContainerUtil (com.intellij.util.containers.ContainerUtil)1 MultiMap (com.intellij.util.containers.MultiMap)1 UIUtil (com.intellij.util.ui.UIUtil)1 TreeUtil (com.intellij.util.ui.tree.TreeUtil)1