EclipseLocationProvider now checks the current directory if it matches the eclipse-like executable patterns. Probably fixes issue #196

This commit is contained in:
grootjans committed 2011-05-16 21:09:41 +02:00
1 parent 12b0753336
commit 8b2ee73cc4
1 file changed
+4 -4
@@ -89,10 +89,10 @@ public class EclipseLocationProvider implements IdeLocationProvider {
if (p.getName().equalsIgnoreCase(getIniName())) {
return new EclipseLocation(canonical(p.getParentFile()), p);
}
if (getEclipseExecutableNames().contains(p.getName().toLowerCase())) {
return findEclipseIniFromExe(p, 0);
}
}
if (getEclipseExecutableNames().contains(p.getName().toLowerCase())) {
return findEclipseIniFromExe(p, 0);
}
return null;