* Fire a node change event.
*
* @param node Node that changed.
*/
public void fireNodeAdded(DOMNode node) {
DOMNode parent = node.getParentNode();
TreeModelEvent event = null;
if(parent == null) {
event = new TreeModelEvent(this, getPathToRoot(node));
}
else {
DOMNode[] path = getPathToRoot(parent);
int[] indicies = null;
DOMNode[] children = new DOMNode[] { node };
// XXX Right now we assume that the node was added at the end.
// This may not be the case in the future.
if(parent.getLastChild() == node) {
List filteredChildren = getChildren(parent);
indicies = new int[] { filteredChildren.indexOf(node) };
}
else {
throw new UnsupportedOperationException(