From a423175f9dc32ccb5a2af574c78ffcb256d1ad17 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 16 Jul 2009 21:27:59 +0200 Subject: Added icon to frame, set background color of found eclipses to WHITE, use platform path separator in installer "What do I do" text. --- src/lombok/installer/Installer.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lombok/installer/Installer.java') 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 { "
  • Then, I unpack lombok.eclipse.agent.jar like so:
    " + "
    jar xvf lombok.jar lombok.eclipse.agent.jar
  • " + "
  • Then, I edit the eclipse.ini file to add the following two entries:
    " + - "
    -Xbootclasspath/a:lombok.jar:lombok.eclipse.agent.jar
    " + + "
    -Xbootclasspath/a:lombok.jar%1$slombok.eclipse.agent.jar
    " + "-javaagent:lombok.jar
  • " + "
    " + "That's all there is to it. Note that on Mac OS X, eclipse.ini is hidden in
    " + -- cgit