Node root = parser.getRootNode();
Adapter rootAdapter = Utilities.buildTree(root.jjtGetChild(0),
sql, ds);
ParseTreeFrame parseTree = new ParseTreeFrame();
parseTree.setTreeModel(new GDBMSParseTreeModel(
(SimpleNode) root));
parseTree.show();
ParseTreeFrame parseTree2 = new ParseTreeFrame();
parseTree2.setTreeModel(new GDBMSAdapterTreeModel(rootAdapter));
parseTree2.show();
Utilities.simplify(rootAdapter);
/*
* ParseTreeFrame parseTree3 = new ParseTreeFrame();
* parseTree3.setTreeModel(new