DirectoriesScanner scannerHelp = new DirectoriesScanner("phelp");
File[] helpFiles = scannerHelp.findFiles(fdir);
for (int i = 0; i < helpFiles.length; i++) {
File helpFile = helpFiles[i];
PanelHelp pHelp = null;
try {
pHelp = loadHelpFile(helpFile);
} catch (IOException e) {
log.error("Error loading help file:", e);
} catch (SAXException e) {
log.error("Error loading help file:", e);
}
if (pHelp != null) {
String[] ids = pHelp.getIds();
for (int j = 0; j < ids.length; j++) {
String id = ids[j];
PanelProvider provider = getProvider(id);
if (provider != null) {
provider.setPanelHelp(pHelp);