*
* @param installDir the product installation directory
* @param result a collection into which Eclipse installation directories are placed.
*/
private static void findEclipseDirs(File installDir, Collection result) throws ScanFailedException {
InstallLog log = readLog(installDir);
if (log == null)
return;
// Extract Eclipse installations from the log file
File eclipseDir;
for (Iterator iter = log.getEntries().iterator(); iter.hasNext();) {
InstallLogEntry entry = (InstallLogEntry) iter.next();
switch (entry.getOperationCode()) {
case InstallLog.LINK_CREATED_ENTRY :
int tokenIndex = entry.getArgument().indexOf(InstallLogEntry.LINK_ENTRY_TOKEN);