diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
commit | bd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (patch) | |
tree | aef91399af0bef930dd18acb8bf0bb0f4817557e /src/lombok/installer | |
parent | 56616f3bec6d8eda8c2bcf0550490f0098fb7fed (diff) | |
parent | 1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (diff) | |
download | lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.gz lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.bz2 lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.zip |
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/lombok/installer')
-rw-r--r-- | src/lombok/installer/Installer.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lombok/installer/Installer.java b/src/lombok/installer/Installer.java index 07830964..b19649a7 100644 --- a/src/lombok/installer/Installer.java +++ b/src/lombok/installer/Installer.java @@ -40,7 +40,6 @@ import java.awt.event.ActionListener; import java.awt.font.TextAttribute; import java.io.File; import java.io.FilenameFilter; -import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.Collections; @@ -276,7 +275,7 @@ public class Installer { return container; } - private Component buildEclipseArea() throws IOException { + private Component buildEclipseArea() { JPanel container = new JPanel(); container.setLayout(new GridBagLayout()); @@ -357,17 +356,16 @@ public class Installer { buttonBar.add(specifyEclipseLocationButton); specifyEclipseLocationButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent event) { - final String name = EclipseFinder.getEclipseExecutableName(); + final String exeName = EclipseFinder.getEclipseExecutableName(); String file = null; if (EclipseFinder.getOS() == OS.MAC_OS_X) { FileDialog chooser = new FileDialog(appWindow); chooser.setMode(FileDialog.LOAD); chooser.setFilenameFilter(new FilenameFilter() { - @Override public boolean accept(File dir, String name) { - if (name.equalsIgnoreCase(name)) return true; - if (new File(dir, name).isDirectory()) return true; - + @Override public boolean accept(File dir, String fileName) { + if (exeName.equalsIgnoreCase(fileName)) return true; + if (new File(dir, fileName).isDirectory()) return true; return false; } }); @@ -381,7 +379,7 @@ public class Installer { chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); chooser.setFileFilter(new FileFilter() { @Override public boolean accept(File f) { - if (f.getName().equalsIgnoreCase(name)) return true; + if (f.getName().equalsIgnoreCase(exeName)) return true; if (f.isDirectory()) return true; return false; @@ -668,7 +666,7 @@ public class Installer { @Override public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } - }; + } private void buildChrome(Container appWindowContainer) { JLabel leftGraphic = new JLabel(new ImageIcon(Installer.class.getResource("/lombok/installer/lombok.png"))); |