}
if (!errorOccurred)
{
treePane.getTree().setRootVisible(displayAll);
treePane.getTree().setShowsRootHandles(!displayAll);
BasicNode rootNode =
(BasicNode)controller.getTree().getModel().getRoot();
boolean isSubordinate = false;
for (BackendDescriptor backend : ev.getBackends())
{
for (BaseDNDescriptor baseDN : backend.getBaseDns())
{
boolean isBaseDN = false;
if ((theDN != null) && baseDN.getDn().equals(theDN))
{
isBaseDN = true;
}
else if ((theDN != null) && baseDN.getDn().isAncestorOf(theDN))
{
isSubordinate = true;
}
String dn = Utilities.unescapeUtf8(baseDN.getDn().toString());
if (displayAll || isBaseDN)
{
try
{
if (!controller.hasSuffix(dn))
{
controller.addSuffix(dn, null);
}
else
{
int index = controller.findChildNode(rootNode, dn);
if (index >= 0)
{
TreeNode node = rootNode.getChildAt(index);
if (node != null)
{
TreePath path = new TreePath(
controller.getTreeModel().getPathToRoot(node));
controller.startRefresh(