@Override public Object[] doGetChildElements(Object element) { onElementAction("getChildren", (NodeElement) element); final AbstractTreeBuilderTest.Node node = myElement2Node.get((NodeElement) element); return node.getChildElements(); }
void buildStructure(final Node root, final boolean activate) throws Exception { doAndWaitForBuilder( () -> { myCom = root.addChild("com"); myIntellij = myCom.addChild("intellij"); myOpenApi = myIntellij.addChild("openapi"); myFabrique = root.addChild("jetbrains").addChild("fabrique"); myIde = myFabrique.addChild("ide"); myRunner = root.addChild("xUnit").addChild("runner"); myRcp = root.addChild("org").addChild("eclipse").addChild("rcp"); if (activate) { getBuilder().getUi().activate(true); } }); }