jar = new JarFile(file);
Enumeration<JarEntry> jarEntries = jar.entries();
// Check in all jars - maybe we have context help files in
// jar resources
while (jarEntries.hasMoreElements()) {
JarEntry jarEntry = jarEntries.nextElement();
String jarEntryName = jarEntry.getName();
// TODO:FG: check for \\ instead of / for windows, rare case
if (jarEntryName.indexOf("/" + CHELP_DIR + "/") != -1) {
if (!jarEntry.isDirectory()) {
// Add file from jar to help page list
// extract class name without trailing slashes
int staticDirPos = jarEntryName.indexOf(CHELP_DIR);
String packageName = jarEntryName.substring(0, staticDirPos - 1);
packageName = packageName.replace("/", ".");