Search in sources :

Example 1 with ChangesBrowserNodeRenderer

use of com.intellij.openapi.vcs.changes.ui.ChangesBrowserNodeRenderer in project intellij-community by JetBrains.

the class IntersectingLocalChangesPanel method createTree.

@NotNull
private SimpleTree createTree() {
    SimpleTree tree = new SimpleTree(TreeModelBuilder.buildFromFilePaths(myProject, true, myFiles)) {

        @Override
        protected void configureUiHelper(@NotNull TreeUIHelper helper) {
            super.configureUiHelper(helper);
            helper.installEditSourceOnDoubleClick(this);
            helper.installEditSourceOnEnterKeyHandler(this);
        }
    };
    tree.setRootVisible(false);
    tree.setShowsRootHandles(false);
    tree.setCellRenderer(new ChangesBrowserNodeRenderer(myProject, BooleanGetter.TRUE, false));
    return tree;
}
Also used : ChangesBrowserNodeRenderer(com.intellij.openapi.vcs.changes.ui.ChangesBrowserNodeRenderer) TreeUIHelper(com.intellij.ui.TreeUIHelper) SimpleTree(com.intellij.ui.treeStructure.SimpleTree) NotNull(org.jetbrains.annotations.NotNull) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ChangesBrowserNodeRenderer (com.intellij.openapi.vcs.changes.ui.ChangesBrowserNodeRenderer)1 TreeUIHelper (com.intellij.ui.TreeUIHelper)1 SimpleTree (com.intellij.ui.treeStructure.SimpleTree)1 NotNull (org.jetbrains.annotations.NotNull)1