for (int i=0; i<fileList.getRowCount(); i++) {
FileListEntry flEntry = fileList.getEntry(i);
String description = flEntry.getDescription();
if ((description == null) || (description.trim().length() == 0))
description = flEntry.getLink();
menu.add(new ExternalFileMenuItem(panel.frame(), entry, description,
flEntry.getLink(), flEntry.getType().getIcon(), panel.metaData(),
flEntry.getType()));
count++;
}
}
else {
for (int i=0; i<iconType.length; i++) {
Object o = entry.getField(iconType[i]);
if (o != null) {
menu.add(new ExternalFileMenuItem(panel.frame(), entry, (String)o, (String)o,
GUIGlobals.getTableIcon(iconType[i]).getIcon(),
panel.metaData(), iconType[i]));
count++;
}
}