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

项目:intellij-ce-playground    文件:SelectExternalProjectDialog.java   
@Override
protected void doOKAction() {
  SimpleNode node = getSelectedNode();
  if (node instanceof NullNode) node = null;

  myResult = node instanceof ProjectNode ? ((ProjectNode)node).getData() : null;
  super.doOKAction();
}
项目:intellij-ce-playground    文件:SelectExternalTaskDialog.java   
@Override
protected void doOKAction() {
  SimpleNode node = getSelectedNode();
  if (node instanceof NullNode) node = null;

  myResult = node instanceof TaskNode ? Pair.create(((TaskNode)node).getModuleOwnerName(), ((TaskNode)node).getData()) : null;
  super.doOKAction();
}
项目:intellij-ce-playground    文件:SelectMavenGoalDialog.java   
@Override
protected void doOKAction() {
  SimpleNode node = getSelectedNode();
  if (node instanceof NullNode) node = null;

  myResult = node instanceof MavenProjectsStructure.GoalNode ? ((MavenProjectsStructure.GoalNode)node) : null;
  super.doOKAction();
}
项目:intellij-ce-playground    文件:SelectMavenProjectDialog.java   
@Override
protected void doOKAction() {
  SimpleNode node = getSelectedNode();
  if (node instanceof NullNode) node = null;

  myResult = node instanceof MavenProjectsStructure.ProjectNode ? ((MavenProjectsStructure.ProjectNode)node).getMavenProject() : null;
  super.doOKAction();
}
项目:tools-idea    文件:SelectMavenProjectDialog.java   
@Override
protected void doOKAction() {
  SimpleNode node = getSelectedNode();
  if (node instanceof NullNode) node = null;

  if (node != null) {
    if (!(node instanceof MavenProjectsStructure.ProjectNode)) {
      ((MavenProjectsStructure.MavenSimpleNode)node).findParent(MavenProjectsStructure.ProjectNode.class);
    }
  }
  myResult = node != null ? ((MavenProjectsStructure.ProjectNode)node).getMavenProject() : null;

  super.doOKAction();
}
项目:vso-intellij    文件:WorkItemsPanel.java   
private void setupWorkItemQueries() {
  myTreeBuilder = new WorkItemQueriesTreeBuilder(myWorkItemQueriesTree, new SimpleTreeStructure.Impl(new NullNode()));
  Disposer.register(this, myTreeBuilder);
}