From 81f6149b08e46503ebe82407c09574d943295320 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 30 Jan 2012 21:47:23 +0100 Subject: Made LombokApp an abstract class and added isDebugTool. --- src/installer/lombok/installer/Installer.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/installer/lombok') 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 getAppAliases() { - return Arrays.asList("installer", ""); + return Arrays.asList(""); } @Override public int runApp(List 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 getAppAliases() { - return Arrays.asList("install"); - } - @Override public int runApp(List 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 getAppAliases() { - return Arrays.asList("uninstall"); - } - @Override public int runApp(List args) throws Exception { return cliInstaller(true, args); } -- cgit