@Override protected void doOKAction() { SimpleNode node = getSelectedNode(); if (node instanceof NullNode) node = null; myResult = node instanceof ProjectNode ? ((ProjectNode)node).getData() : null; super.doOKAction(); }
@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(); }
@Override protected void doOKAction() { SimpleNode node = getSelectedNode(); if (node instanceof NullNode) node = null; myResult = node instanceof MavenProjectsStructure.GoalNode ? ((MavenProjectsStructure.GoalNode)node) : null; super.doOKAction(); }
@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(); }
@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(); }
private void setupWorkItemQueries() { myTreeBuilder = new WorkItemQueriesTreeBuilder(myWorkItemQueriesTree, new SimpleTreeStructure.Impl(new NullNode())); Disposer.register(this, myTreeBuilder); }