aboutsummaryrefslogtreecommitdiff
path: root/src/installer
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-01-30 21:47:23 +0100
committerRoel Spilker <r.spilker@gmail.com>2012-01-30 21:47:23 +0100
commit81f6149b08e46503ebe82407c09574d943295320 (patch)
tree4b766c355c831bb95580b3640faf3844daeeea86 /src/installer
parent55384884d380fba1a5fe024e1d82329d71c36f02 (diff)
downloadlombok-81f6149b08e46503ebe82407c09574d943295320.tar.gz
lombok-81f6149b08e46503ebe82407c09574d943295320.tar.bz2
lombok-81f6149b08e46503ebe82407c09574d943295320.zip
Made LombokApp an abstract class and added isDebugTool.
Diffstat (limited to 'src/installer')
-rw-r--r--src/installer/lombok/installer/Installer.java16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/installer/lombok/installer/Installer.java b/src/installer/lombok/installer/Installer.java
index 579216c0..29ffde89 100644
--- a/src/installer/lombok/installer/Installer.java
+++ b/src/installer/lombok/installer/Installer.java
@@ -111,7 +111,7 @@ public class Installer {
}
@ProviderFor(LombokApp.class)
- public static class GraphicalInstallerApp implements LombokApp {
+ public static class GraphicalInstallerApp extends LombokApp {
@Override public String getAppName() {
return "installer";
}
@@ -121,7 +121,7 @@ public class Installer {
}
@Override public List<String> getAppAliases() {
- return Arrays.asList("installer", "");
+ return Arrays.asList("");
}
@Override public int runApp(List<String> args) throws Exception {
@@ -130,7 +130,7 @@ public class Installer {
}
@ProviderFor(LombokApp.class)
- public static class CommandLineInstallerApp implements LombokApp {
+ public static class CommandLineInstallerApp extends LombokApp {
@Override public String getAppName() {
return "install";
}
@@ -139,17 +139,13 @@ public class Installer {
return "Runs the 'handsfree' command line scriptable installer.";
}
- @Override public List<String> getAppAliases() {
- return Arrays.asList("install");
- }
-
@Override public int runApp(List<String> args) throws Exception {
return cliInstaller(false, args);
}
}
@ProviderFor(LombokApp.class)
- public static class CommandLineUninstallerApp implements LombokApp {
+ public static class CommandLineUninstallerApp extends LombokApp {
@Override public String getAppName() {
return "uninstall";
}
@@ -158,10 +154,6 @@ public class Installer {
return "Runs the 'handsfree' command line scriptable uninstaller.";
}
- @Override public List<String> getAppAliases() {
- return Arrays.asList("uninstall");
- }
-
@Override public int runApp(List<String> args) throws Exception {
return cliInstaller(true, args);
}