@AuraEnabled
public List<TreeNode> getTree() throws QuickFixException {
if (tree == null) {
tree = Lists.newArrayList();
tree.add(new TreeNode("#reference", "Overview"));
tree.add(new TreeNode(null, "Applications", makeTreeNodes("markup", ApplicationDef.class), false));
tree.add(new TreeNode(null, "Components", makeTreeNodes("markup", ComponentDef.class), false));
tree.add(new TreeNode(null, "Interfaces", makeTreeNodes("markup", InterfaceDef.class), false));
tree.add(new TreeNode(null, "Events", makeTreeNodes("markup", EventDef.class), false));
tree.add(new TreeNode(null, "Libraries", makeTreeNodes("markup", LibraryDef.class), false));
if (isRunningInPrivilegedNamespace()) {
tree.add(new TreeNode(null, "Tests", makeTreeNodes("js", TestSuiteDef.class), false));
}
tree.add(new TreeNode(null, "JavaScript API", new ApiContentsModel().getNodes(), false));
/*
* Javadoc not publicly accessible tree.add(new TreeNode( "http://javadoc.auraframework.org/", "Java API"));
*/
}