{
lastSelectedNode = (DefaultMutableTreeNode)path.getLastPathComponent();
}
TreePath newSelectionPath = null;
BackendDescriptor backend = null;
String backendName = (String)backends.getSelectedItem();
if (backendName != null)
{
for (BackendDescriptor b : getInfo().getServerDescriptor().getBackends())
{
if (b.getBackendID().equalsIgnoreCase(backendName))
{
backend = b;
break;
}
}
}
ArrayList<ArrayList<? extends AbstractIndexTreeNode>> nodes =
new ArrayList<ArrayList<? extends AbstractIndexTreeNode>>();
ArrayList<IndexTreeNode> standardIndexNodes =
new ArrayList<IndexTreeNode>();
ArrayList<VLVIndexTreeNode> vlvIndexNodes =
new ArrayList<VLVIndexTreeNode>();
nodes.add(standardIndexNodes);
nodes.add(vlvIndexNodes);
if (backend != null)
{
for (IndexDescriptor index : backend.getIndexes())
{
standardIndexNodes.add(new IndexTreeNode(index.getName(), index));
}
for (VLVIndexDescriptor index : backend.getVLVIndexes())
{
vlvIndexNodes.add(new VLVIndexTreeNode(index.getName(), index));
}
}