* as path, i.e. the whole tree has changed.
*/
protected void fireRootTreeStructureChanged(Object previousRoot) {
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
TreeModelEvent e = null;
// Process the listeners last to first, notifying
// those that are interested in this event
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == TreeModelListener.class) {
// Lazily create the event:
if (e == null) {
e = new TreeModelEvent(this, new Object[] { previousRoot });
}
((TreeModelListener) listeners[i + 1]).treeStructureChanged(e);
}
}
}