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;
}
Aggregations