You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JemmyDriver.java 2.8KB

21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Eclipse Public License v 2.0
  7. * which accompanies this distribution and is available at
  8. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.tools.ajbrowser;
  14. //
  15. //import org.netbeans.jemmy.Test;
  16. //import org.netbeans.jemmy.Scenario;
  17. //import org.netbeans.jemmy.ClassReference;
  18. //import org.netbeans.jemmy.operators.JFrameOperator;
  19. //import org.netbeans.jemmy.operators.JButtonOperator;
  20. //
  21. ///**
  22. // * Programmatically drives AJBrowser gui,
  23. // * currently to do a build.
  24. // */
  25. //public class JemmyDriver implements Scenario {
  26. //
  27. // public static final String CUT
  28. // = "org.aspectj.tools.ajbrowser.Main";
  29. // public static final String DRIVER
  30. // = "org.aspectj.tools.ajbrowser.JemmyDriver";
  31. //
  32. // // XXX need to fix literal path locations
  33. // public static final String USERDIR
  34. // = "j:/home/wes/dev/tools/aj/examples";
  35. // public static final String FILENAME_RELATIVE
  36. // = USERDIR + "spacewar/debug.lst";
  37. // public static final String FILENAME
  38. // = USERDIR + "/" + FILENAME_RELATIVE;
  39. //
  40. // public static void main(String[] argv) {
  41. // // 0 is (this) class name
  42. // // 1 is the location of the work directory
  43. // // others are parameters
  44. // String[] params = {DRIVER, USERDIR, FILENAME};
  45. // Test.main(params);
  46. // }
  47. //
  48. // public int runIt(Object param) {
  49. // try {
  50. // String[] args = new String[]{};
  51. // // grab parameter - pass in .lst file
  52. // if (null != param) {
  53. // Class c = param.getClass();
  54. // if (c.isArray() &&
  55. // (String.class == c.getComponentType())) {
  56. // args = (String[]) param;
  57. // if (0 < args.length) {
  58. // if (FILENAME.equals(args[0])) {
  59. // System.out.println("got file...");
  60. // }
  61. // }
  62. // }
  63. // }
  64. // // start application with our .lst file
  65. // new ClassReference(CUT).startApplication(args);
  66. // // wait frame
  67. // JFrameOperator mainFrame = new JFrameOperator("AspectJ Browser");
  68. // // do a build - hangs if no list file
  69. // new JButtonOperator(mainFrame, "Build").push();
  70. //
  71. // } catch(Exception e) {
  72. // e.printStackTrace();
  73. // return(1);
  74. // }
  75. // return(0);
  76. // }
  77. //
  78. //}