diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-07-16 21:27:59 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-07-16 21:27:59 +0200 |
commit | a423175f9dc32ccb5a2af574c78ffcb256d1ad17 (patch) | |
tree | 1a58b4cbe4f417e9fe4e2186aae9c6360682b890 /src/lombok/installer/Installer.java | |
parent | 02a8102dd13aafd6b342251043d6908f9bb58246 (diff) | |
download | lombok-a423175f9dc32ccb5a2af574c78ffcb256d1ad17.tar.gz lombok-a423175f9dc32ccb5a2af574c78ffcb256d1ad17.tar.bz2 lombok-a423175f9dc32ccb5a2af574c78ffcb256d1ad17.zip |
Added icon to frame, set background color of found eclipses to WHITE, use
platform path separator in installer "What do I do" text.
Diffstat (limited to 'src/lombok/installer/Installer.java')
-rw-r--r-- | src/lombok/installer/Installer.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lombok/installer/Installer.java b/src/lombok/installer/Installer.java index 07c9ec83..9377f9a5 100644 --- a/src/lombok/installer/Installer.java +++ b/src/lombok/installer/Installer.java @@ -34,6 +34,7 @@ import java.awt.GridBagLayout; import java.awt.HeadlessException; import java.awt.Insets; import java.awt.Rectangle; +import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.font.TextAttribute; @@ -143,6 +144,7 @@ public class Installer { appWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); appWindow.setResizable(false); + appWindow.setIconImage(Toolkit.getDefaultToolkit().getImage(Installer.class.getResource("lombokIcon.png"))); try { javacArea = buildJavacArea(); @@ -179,7 +181,7 @@ public class Installer { constraints.gridy = 1; constraints.insets = new Insets(8, 0, 0, 16); - container.add(new JLabel(HOW_I_WORK_EXPLANATION), constraints); + container.add(new JLabel(String.format(HOW_I_WORK_EXPLANATION, File.pathSeparator)), constraints); Box buttonBar = Box.createHorizontalBox(); JButton backButton = new JButton("Okay - Good to know!"); @@ -619,6 +621,7 @@ public class Installer { Box box = Box.createHorizontalBox(); box.setBackground(Color.WHITE); final JCheckBox checkbox = new JCheckBox(location.getPath()); + checkbox.setBackground(Color.WHITE); box.add(checkbox); checkbox.setSelected(true); checkbox.addActionListener(new ActionListener() { @@ -809,7 +812,7 @@ public class Installer { "<li>Then, I unpack lombok.eclipse.agent.jar like so:<br>" + "<pre>jar xvf lombok.jar lombok.eclipse.agent.jar</pre></li>" + "<li>Then, I edit the eclipse.ini file to add the following two entries:<br>" + - "<pre>-Xbootclasspath/a:lombok.jar:lombok.eclipse.agent.jar<br>" + + "<pre>-Xbootclasspath/a:lombok.jar%1$slombok.eclipse.agent.jar<br>" + "-javaagent:lombok.jar</pre></li></ol>" + "<br>" + "That's all there is to it. Note that on Mac OS X, eclipse.ini is hidden in<br>" + |