Java 类com.intellij.ui.treeStructure.WeightBasedComparator 实例源码

项目:intellij-ce-playground    文件:SourceItemsTree.java   
public SourceItemsTree(ArtifactEditorContext editorContext, ArtifactEditorImpl artifactsEditor) {
  myArtifactsEditor = artifactsEditor;
  myBuilder = new SimpleTreeBuilder(this, this.getBuilderModel(), new SourceItemsTreeStructure(editorContext, artifactsEditor), new WeightBasedComparator(true));
  setRootVisible(false);
  setShowsRootHandles(true);
  Disposer.register(this, myBuilder);
  PopupHandler.installPopupHandler(this, createPopupGroup(), ActionPlaces.UNKNOWN, ActionManager.getInstance());
  installDnD();
}
项目:tools-idea    文件:SourceItemsTree.java   
public SourceItemsTree(ArtifactEditorContext editorContext, ArtifactEditorImpl artifactsEditor) {
  myArtifactsEditor = artifactsEditor;
  myBuilder = new SimpleTreeBuilder(this, this.getBuilderModel(), new SourceItemsTreeStructure(editorContext, artifactsEditor), new WeightBasedComparator(true));
  setRootVisible(false);
  setShowsRootHandles(true);
  Disposer.register(this, myBuilder);
  PopupHandler.installPopupHandler(this, createPopupGroup(), ActionPlaces.UNKNOWN, ActionManager.getInstance());
  installDnD();
}
项目:consulo    文件:SourceItemsTree.java   
public SourceItemsTree(ArtifactEditorContext editorContext, ArtifactEditorImpl artifactsEditor) {
  myArtifactsEditor = artifactsEditor;
  myBuilder = new SimpleTreeBuilder(this, this.getBuilderModel(), new SourceItemsTreeStructure(editorContext, artifactsEditor), new WeightBasedComparator(true));
  setRootVisible(false);
  setShowsRootHandles(true);
  Disposer.register(this, myBuilder);
  PopupHandler.installPopupHandler(this, createPopupGroup(), ActionPlaces.UNKNOWN, ActionManager.getInstance());
  installDnD();
}
项目:intellij-ce-playground    文件:LayoutTreeComponent.java   
@Nullable
private WeightBasedComparator getComparator() {
  return mySortElements ? new WeightBasedComparator(true) : null;
}
项目:tools-idea    文件:LayoutTreeComponent.java   
@Nullable
private WeightBasedComparator getComparator() {
  return mySortElements ? new WeightBasedComparator(true) : null;
}
项目:consulo    文件:LayoutTreeComponent.java   
@Nullable
private WeightBasedComparator getComparator() {
  return mySortElements ? new WeightBasedComparator(true) : null;
}