diff options
Diffstat (limited to 'build/src/main/java/$installer$/org/aspectj/Main.java')
-rw-r--r-- | build/src/main/java/$installer$/org/aspectj/Main.java | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/build/src/main/java/$installer$/org/aspectj/Main.java b/build/src/main/java/$installer$/org/aspectj/Main.java index cf408425b..d11ba8f6b 100644 --- a/build/src/main/java/$installer$/org/aspectj/Main.java +++ b/build/src/main/java/$installer$/org/aspectj/Main.java @@ -284,125 +284,6 @@ class DocsInstaller extends Installer { } } -class AJDEForJBuilderInstaller extends Installer { - public String getTitle() { - return "AspectJ(TM) Support for JBuilder"; - } - - public String getPrefix() { - return "ajdeForJBuilder"; - } - - public AJDEForJBuilderInstaller() { - InstallPane installPane = new InstallPane(false); - setInstallPane(installPane); - panes = new WizardPane[] { new IntroPane(), new LocationPane() { - public String getDefaultLocation() { - if (context.onWindows()) { - // check some default locations - String[] paths = { "c:\\JBuilder6\\lib\\ext", "c:\\apps\\JBuilder6\\lib\\ext", - "c:\\Program Files\\JBuilder6\\lib\\ext" }; - int pathIndex = 0; - for (; pathIndex < paths.length; pathIndex++) { - if (new File(paths[pathIndex]).exists()) { - return paths[pathIndex]; - } - } - return "c:\\JBuilder6\\lib\\ext"; - } else { - return "/usr/JBuilder6/lib/ext"; - } - } - - /** - * Make sure that the old jar file gets removed. - */ - public void verify() { - File jbuilder = new File(location.getText() + "/../../lib/jbuilder.jar"); - if (!jbuilder.exists() && hasGui()) { - int ret = JOptionPane.showConfirmDialog(frame, "The location you specified does not seem to be a " - + "valid JBuilder install directory." + " Continue?", "Confirm Install", JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE); - if (ret != JOptionPane.YES_OPTION) { - Main.exit(-1); - } else { - // do nothing - } - } - - File oldFile = new File(location.getText() + "/ajbuilder.jar"); - if (oldFile.exists() && hasGui()) { - int ret = JOptionPane.showConfirmDialog(frame, - "This old version of AJDE for JBuilder (\"ajbuilder.jar\") exists" - + " and must be removed from the install directory." + " OK to delete?", "Confirm Delete", - JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); - if (ret != JOptionPane.YES_OPTION) { - Main.exit(-1); - } else { - oldFile.delete(); - } - } - } - }, installPane, new FinishPane() }; - } -} - -class AJDEForForteInstaller extends Installer { - public String getTitle() { - return "AspectJ(TM) Support for Forte 4J"; - } - - public String getPrefix() { - return "ajdeForForte"; - } - - private String installLoc = ""; - - public AJDEForForteInstaller() { - InstallPane installPane = new InstallPane(false); - setInstallPane(installPane); - panes = new WizardPane[] { new IntroPane(), new LocationPane() { - public String getDefaultLocation() { - if (context.onWindows()) { - // check some default locations - String[] paths = { "c:\\forte4j\\modules", "c:\\apps\\forte4j\\modules", "c:\\Program Files\\forte4j\\modules" }; - int pathIndex = 0; - for (; pathIndex < paths.length; pathIndex++) { - if (new File(paths[pathIndex]).exists()) { - return paths[pathIndex]; - } - } - return "c:\\forte4j\\modules"; - } else { - return "/usr/forte4j/modules"; - } - } - - public void verify() { - File forte = new File(location.getText() + "/../lib/openide.jar"); - installLoc = location.getText(); - if (!forte.exists() && hasGui()) { - int ret = JOptionPane.showConfirmDialog(frame, "The location you specified does not seem to be a " - + "valid Forte install directory." + " Continue?", "Confirm Install", JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE); - if (ret != JOptionPane.YES_OPTION) { - Main.exit(-1); - } else { - // do nothing - } - } - } - }, installPane, new FinishPane() { - public void finalActions() { // todo verify dir ../lib/ext exists? - // !!! this should be done with two install locations, not by moving a file - new File(installLoc + "/../lib/ext/aspectjrt.jar").delete(); - new File(installLoc + "/aspectjrt.jar").renameTo(new File((installLoc + "/../lib/ext/aspectjrt.jar"))); - new File(installLoc + "/aspectjrt.jar").delete(); - } - } }; - } -} - class SrcInstaller extends Installer { public String getTitle() { return "AspectJ(TM) Compiler and Core Tools Sources Installer"; |