jruaux      2003/02/27 02:34:54

  Modified:    integration/eclipse/src/java/org/apache/cactus/eclipse/ui
                        CactusPreferences.java
  Log:
  Added a Web App directory preference
  
  Revision  Changes    Path
  1.2       +24 -4     
jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ui/CactusPreferences.java
  
  Index: CactusPreferences.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ui/CactusPreferences.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CactusPreferences.java    3 Feb 2003 10:52:39 -0000       1.1
  +++ CactusPreferences.java    27 Feb 2003 10:34:54 -0000      1.2
  @@ -102,6 +102,11 @@
       public static final String TEMP_DIR = "temp_Dir";
   
       /**
  +     * The directory where the plugin can find the web application.
  +     */
  +    public static final String WEBAPP_DIR = "webapp_Dir";
  +
  +    /**
        * Home directory of Tomcat 4.x.
        */
       public static final String TOMCAT4X_DIR = "tomcat4x";
  @@ -110,10 +115,10 @@
        * Home directory of Resin 2.0.
        */
       public static final String RESIN20_DIR = "resin.20";
  - 
  +
       /**
        * Home directory of Weblogic 7.0.
  -     */   
  +     */
       public static final String WEBLOGIC70_DIR = "weblogic.70";
   
       /**
  @@ -196,6 +201,21 @@
           CactusPlugin.log("Cactus preference : TempDir = [" + result + "]");
           return result;
       }
  +
  +    /**
  +     * Returns the Webapp directory used by cactus, as 
  +     * configured in the plug-in preferences.
  +     * 
  +     * @return the context path
  +     */
  +    public static String getWebappDir()
  +    {
  +        IPreferenceStore store = CactusPlugin.getDefault().getPreferenceStore();
  +        String result = store.getString(WEBAPP_DIR);
  +        CactusPlugin.log("Cactus preference : WebappDir = [" + result + "]");
  +        return result;
  +    }
  +
       /**
        * Returns the TOMCAT4X_DIR.
        * @return String
  @@ -232,7 +252,7 @@
               "Cactus preference : Weblogic70Dir = [" + result + "]");
           return result;
       }
  -    
  +
       /**
        * Returns the ContainerHome array.
        * @return String
  
  
  

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

Reply via email to