, (DefaultTreeModel)bTree.getModel());
((DefaultTreeModel)bTree.getModel()).nodeChanged(root.getChildAt(i));
}
bTree.repaint();
AxisEmpty axisEmpty=new AxisEmpty(removeComments(textArea.getText()));
// Getting TreeNode Objects from Root, With, Axis and Slicer node.
Object r = root.getUserObject();
DefaultMutableTreeNode withTreeNode=(DefaultMutableTreeNode)root.getChildAt(0);
DefaultMutableTreeNode colTreeNode=(DefaultMutableTreeNode)root.getChildAt(1);
DefaultMutableTreeNode rowTreeNode=(DefaultMutableTreeNode)root.getChildAt(2);
DefaultMutableTreeNode pageTreeNode=(DefaultMutableTreeNode)root.getChildAt(3);
DefaultMutableTreeNode whereTreeNode=(DefaultMutableTreeNode)root.getChildAt(5);
((DefaultMBTAxisNode)((MBTNode)colTreeNode.getUserObject())).setNonEmpty(axisEmpty.isColumnEmpty());
((DefaultMBTAxisNode)((MBTNode)rowTreeNode.getUserObject())).setNonEmpty(axisEmpty.isRowEmpty());
// Getting MBTNode Objects array associated with MDX Builder Tree.
MBTNode[] children = (MBTNode[])((MBTNode)(r)).getMdxBuilderTreeNodes();
// Getting Dimension list element and Tree Root.
TreeElement dimTreeRoot=(TreeElement)((DimensionTreeModel)((dimTree.getTree()).getModel())).getRoot();