*/
public void notifyExpander(TreeBrowser browser, TreeNode nd) {
if(tl != null) {
tl.focusChanged((RemoteResourceWrapper)nd.getItem());
}
RemoteResourceWrapper rrw = null;
RemoteResource rr = null;
boolean ic = false;
boolean authorized;
rrw = (RemoteResourceWrapper)nd.getItem();
if(rrw == null)
return;
rr = rrw.getResource();
try {
ic = rr.isContainer();
} catch(Exception ex) {
ex.printStackTrace();
}
if(ic) {
String names[] = null;
setCursor(Frame.WAIT_CURSOR);
authorized = false;
while(!authorized) {
authorized = true;
try {
names = rr.enumerateResourceIdentifiers();
} catch (RemoteAccessException ex) {
if( ex.getMessage().equals("Unauthorized")) {
authorized = false;
} else {
names = new String[0];
errorPopup("RemoteAccessException", ex);
ex.printStackTrace();
}
} finally {
if(!authorized) {
popupDialog("admin");
}
}
}
Sorter.sortStringArray(names, true);
if (debug)
System.out.println("Found "+names.length+" identifiers");
for(int i = 0; i <names.length; i++) {
boolean nic = false;
RemoteResourceWrapper nrrw = getResources(rrw, names[i]);
RemoteResource nrr = nrrw.getResource();
try {
nic = nrr.isContainer();
} catch(Exception ex) {
ex.printStackTrace();
}