jruaux      2003/02/24 05:57:25

  Modified:    integration/eclipse/src/java/org/apache/cactus/eclipse/ui
                        CactusPlugin.java
  Log:
  Moved the code around to centralize the Ant related code.
  
  Revision  Changes    Path
  1.4       +27 -4     
jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ui/CactusPlugin.java
  
  Index: CactusPlugin.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ui/CactusPlugin.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CactusPlugin.java 6 Feb 2003 16:44:41 -0000       1.3
  +++ CactusPlugin.java 24 Feb 2003 13:57:25 -0000      1.4
  @@ -58,6 +58,7 @@
   
   import org.apache.cactus.eclipse.containers.IContainerProvider;
   import org.apache.cactus.eclipse.containers.ant.GenericAntProvider;
  +import org.apache.cactus.eclipse.launcher.CactusLaunchShortcut;
   import org.eclipse.core.runtime.CoreException;
   import org.eclipse.core.runtime.IPluginDescriptor;
   import org.eclipse.core.runtime.IStatus;
  @@ -83,6 +84,10 @@
        * The single instance of this plug-in runtime class.
        */
       private static CactusPlugin plugin;
  +    /**
  +     * The current instance of CactusLaunchShortcut.
  +     */
  +    private CactusLaunchShortcut launchShortcut;
   
       /**
        * @see org.eclipse.core.runtime.Plugin#Plugin(IPluginDescriptor)
  @@ -284,7 +289,7 @@
       {
           return createCoreException(theMessageKey, "", theException);
       }
  -    
  +
       /**
        * Helper method for other classes. Returns a CoreException with a message
        * corresponding to the given message key and the additional String.
  @@ -307,5 +312,23 @@
                   IStatus.OK,
                   message,
                   theException));
  -    }      
  -}
  +    }
  +
  +    /**
  +     * @return the current CactusLaunchShortcut instance.
  +     */
  +    public CactusLaunchShortcut getCactusLaunchShortcut()
  +    {
  +        return launchShortcut;
  +    }
  +
  +    /**
  +     * Sets the current CactusLaunchShortcut
  +     * @param theCactusLaunchShortcut the instance to set
  +     */
  +    public void addCactusLaunchShortcut(
  +        CactusLaunchShortcut theCactusLaunchShortcut)
  +    {
  +        this.launchShortcut = theCactusLaunchShortcut;
  +    }
  +}
  \ No newline at end of file
  
  
  

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

Reply via email to