aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgrootjans <grootjans@gmail.com>2011-05-16 21:09:41 +0200
committergrootjans <grootjans@gmail.com>2011-05-16 21:09:41 +0200
commit8b2ee73cc46a8629d61abd0dde70ecb0748e2b0e (patch)
tree8ba9d7aa22fd781644648ad41affc87b5fd88a2c /src
parent12b0753336e25aab11476234553b9058dc592eb2 (diff)
downloadlombok-8b2ee73cc46a8629d61abd0dde70ecb0748e2b0e.tar.gz
lombok-8b2ee73cc46a8629d61abd0dde70ecb0748e2b0e.tar.bz2
lombok-8b2ee73cc46a8629d61abd0dde70ecb0748e2b0e.zip
EclipseLocationProvider now checks the current directory if it matches the eclipse-like executable patterns. Probably fixes issue #196
Diffstat (limited to 'src')
-rw-r--r--src/installer/lombok/installer/eclipse/EclipseLocationProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/installer/lombok/installer/eclipse/EclipseLocationProvider.java b/src/installer/lombok/installer/eclipse/EclipseLocationProvider.java
index 2a2ca31c..29c3b918 100644
--- a/src/installer/lombok/installer/eclipse/EclipseLocationProvider.java
+++ b/src/installer/lombok/installer/eclipse/EclipseLocationProvider.java
@@ -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;