jruaux      2003/02/24 05:56:05

  Modified:    integration/eclipse/src/java/org/apache/cactus/eclipse/launcher
                        CactusLaunchShortcut.java
  Log:
  Moved the code around to centralize the Ant related code.
  
  Revision  Changes    Path
  1.5       +29 -4     
jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/launcher/CactusLaunchShortcut.java
  
  Index: CactusLaunchShortcut.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/launcher/CactusLaunchShortcut.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CactusLaunchShortcut.java 22 Feb 2003 11:43:59 -0000      1.4
  +++ CactusLaunchShortcut.java 24 Feb 2003 13:56:05 -0000      1.5
  @@ -101,7 +101,14 @@
        * The provider to use for container setup.
        */
       private IContainerProvider provider;
  -
  +    /**
  +     * The current search to launch on.
  +     */
  +    private Object[] search;
  +    /**
  +     * The current mode to launch with.
  +     */
  +    private String mode;
       /**
        * @return the Cactus launch configuration type. This method overrides
        *         the one in [EMAIL PROTECTED] JUnitLaunchShortcut} so that we can 
return
  @@ -172,6 +179,9 @@
               // Register the instance of CactusLaunchShortcut to the JUnitPlugin
               // for TestRun end notification.
               JUnitPlugin.getDefault().addTestRunListener(this);
  +            this.search = theSearch;
  +            this.mode = theMode;
  +            CactusPlugin.getDefault().addCactusLaunchShortcut(this);
               final IJavaProject theJavaProject = type.getJavaProject();
               final IRunnableWithProgress runnable = new IRunnableWithProgress()
               {
  @@ -221,9 +231,24 @@
                       }
                   }
               });
  -            CactusPlugin.log("Launching tests");
  -            super.launchType(theSearch, theMode);
           }
  +    }
  +
  +    /**
  +     * Launches the Junit tests.
  +     */
  +    public void launchJunitTests()
  +    {
  +        CactusPlugin.log("Launching tests");
  +        super.launchType(search, mode);
  +    }
  +    /**
  +     * Returns the provider associated with this CactusLaunchShortcut instance.
  +     * @return the provider associated with this instance
  +     */
  +    public IContainerProvider getContainerProvider()
  +    {
  +        return provider;
       }
       /**
        * Launches a new progress dialog for preparation cancellation.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to