diff options
author | Andy Clement <aclement@pivotal.io> | 2019-01-30 11:51:42 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2019-01-30 11:51:42 -0800 |
commit | 2ea72e189303b144ac28fd665c667da984a56a0e (patch) | |
tree | 488f61e77ca19a72109c616e0ef7e189d2718715 /ajbrowser/src | |
parent | 06733da053901eeee363a05f8fbe6b9c27056a77 (diff) | |
download | aspectj-2ea72e189303b144ac28fd665c667da984a56a0e.tar.gz aspectj-2ea72e189303b144ac28fd665c667da984a56a0e.zip |
mavenizing ajbrowser - wip
Diffstat (limited to 'ajbrowser/src')
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/Main.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/Main.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserBuildProgressMonitor.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserBuildProgressMonitor.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserCompilerConfiguration.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserCompilerConfiguration.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserErrorHandler.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserErrorHandler.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/PreferenceStoreConstants.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/core/PreferenceStoreConstants.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BasicEditor.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BasicEditor.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserRuntimeProperties.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserRuntimeProperties.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserUIAdapter.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserUIAdapter.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/EditorManager.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/BrowserOptionsPanel.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/BrowserOptionsPanel.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/MessageHandlerPanel.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/MessageHandlerPanel.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/TopFrame.java (renamed from ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/TopFrame.java) | 0 | ||||
-rw-r--r-- | ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java | 30 | ||||
-rw-r--r-- | ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java | 35 | ||||
-rw-r--r-- | ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java | 80 |
18 files changed, 145 insertions, 0 deletions
diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java index 84bb63683..84bb63683 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/Main.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/Main.java index 76c1b50e2..76c1b50e2 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/Main.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/Main.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserBuildProgressMonitor.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserBuildProgressMonitor.java index aab3e3b3a..aab3e3b3a 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserBuildProgressMonitor.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserBuildProgressMonitor.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserCompilerConfiguration.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserCompilerConfiguration.java index 35f676e1b..35f676e1b 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserCompilerConfiguration.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserCompilerConfiguration.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserErrorHandler.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserErrorHandler.java index 9d8e3857c..9d8e3857c 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserErrorHandler.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserErrorHandler.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java index 1b754d2f1..1b754d2f1 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/PreferenceStoreConstants.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/PreferenceStoreConstants.java index 6ad9b448c..6ad9b448c 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/core/PreferenceStoreConstants.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/PreferenceStoreConstants.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BasicEditor.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BasicEditor.java index 7830f8b19..7830f8b19 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BasicEditor.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BasicEditor.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java index b8dcf1c41..b8dcf1c41 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserRuntimeProperties.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserRuntimeProperties.java index a00c51d0d..a00c51d0d 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserRuntimeProperties.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserRuntimeProperties.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserUIAdapter.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserUIAdapter.java index 2388c3390..2388c3390 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/BrowserUIAdapter.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserUIAdapter.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/EditorManager.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java index 12a7f8938..12a7f8938 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/EditorManager.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/BrowserOptionsPanel.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/BrowserOptionsPanel.java index e01c01f12..e01c01f12 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/BrowserOptionsPanel.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/BrowserOptionsPanel.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/MessageHandlerPanel.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/MessageHandlerPanel.java index 32224832c..32224832c 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/MessageHandlerPanel.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/MessageHandlerPanel.java diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/TopFrame.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/TopFrame.java index 5949e2e07..5949e2e07 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/ui/swing/TopFrame.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/swing/TopFrame.java diff --git a/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java new file mode 100644 index 000000000..d0d87f133 --- /dev/null +++ b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java @@ -0,0 +1,30 @@ +package org.aspectj.tools.ajbrowser; +/* ******************************************************************* + * Copyright (c) 1999-2001 Xerox Corporation, + * 2002 Palo Alto Research Center, Incorporated (PARC). + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Xerox/PARC initial implementation + * ******************************************************************/ + + +// default package + +import junit.framework.*; + +public class AjbrowserModuleTests extends TestCase { + + public static TestSuite suite() { + TestSuite suite = new TestSuite(AjbrowserModuleTests.class.getName()); + suite.addTest(org.aspectj.tools.ajbrowser.AjbrowserTests.suite()); + return suite; + } + + public AjbrowserModuleTests(String name) { super(name); } + +} diff --git a/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java new file mode 100644 index 000000000..dab5e791a --- /dev/null +++ b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java @@ -0,0 +1,35 @@ +/* ******************************************************************* + * Copyright (c) 1999-2001 Xerox Corporation, + * 2002 Palo Alto Research Center, Incorporated (PARC). + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Xerox/PARC initial implementation + * ******************************************************************/ + + +package org.aspectj.tools.ajbrowser; + +import junit.framework.*; + +public class AjbrowserTests extends TestCase { + + public static Test suite() { + TestSuite suite = new TestSuite(AjbrowserTests.class.getName()); + suite.addTestSuite(AjbrowserTests.class); + //$JUnit-BEGIN$ + //suite.addTestSuite(BrowserManagerTest.class); + //$JUnit-END$ + return suite; + } + + public AjbrowserTests(String name) { super(name); } + + // AjBrowser is waiting for some tests - have to have a placeholder to + // keep JUnit happy... + public void testNothing() {} +} diff --git a/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java new file mode 100644 index 000000000..b993713ca --- /dev/null +++ b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java @@ -0,0 +1,80 @@ +/* ******************************************************************* + * Copyright (c) 1999-2001 Xerox Corporation, + * 2002 Palo Alto Research Center, Incorporated (PARC). + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Xerox/PARC initial implementation + * ******************************************************************/ + + +package org.aspectj.tools.ajbrowser; +// +//import org.netbeans.jemmy.Test; +//import org.netbeans.jemmy.Scenario; +//import org.netbeans.jemmy.ClassReference; +//import org.netbeans.jemmy.operators.JFrameOperator; +//import org.netbeans.jemmy.operators.JButtonOperator; +// +///** +// * Programmatically drives AJBrowser gui, +// * currently to do a build. +// */ +//public class JemmyDriver implements Scenario { +// +// public static final String CUT +// = "org.aspectj.tools.ajbrowser.Main"; +// public static final String DRIVER +// = "org.aspectj.tools.ajbrowser.JemmyDriver"; +// +// // XXX need to fix literal path locations +// public static final String USERDIR +// = "j:/home/wes/dev/tools/aj/examples"; +// public static final String FILENAME_RELATIVE +// = USERDIR + "spacewar/debug.lst"; +// public static final String FILENAME +// = USERDIR + "/" + FILENAME_RELATIVE; +// +// public static void main(String[] argv) { +// // 0 is (this) class name +// // 1 is the location of the work directory +// // others are parameters +// String[] params = {DRIVER, USERDIR, FILENAME}; +// Test.main(params); +// } +// +// public int runIt(Object param) { +// try { +// String[] args = new String[]{}; +// // grab parameter - pass in .lst file +// if (null != param) { +// Class c = param.getClass(); +// if (c.isArray() && +// (String.class == c.getComponentType())) { +// args = (String[]) param; +// if (0 < args.length) { +// if (FILENAME.equals(args[0])) { +// System.out.println("got file..."); +// } +// } +// } +// } +// // start application with our .lst file +// new ClassReference(CUT).startApplication(args); +// // wait frame +// JFrameOperator mainFrame = new JFrameOperator("AspectJ Browser"); +// // do a build - hangs if no list file +// new JButtonOperator(mainFrame, "Build").push(); +// +// } catch(Exception e) { +// e.printStackTrace(); +// return(1); +// } +// return(0); +// } +// +//} |