You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by jr...@apache.org on 2002/10/22 15:33:14 UTC

cvs commit: jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui CactusPreferencePage.java CactusPlugin.java

jruaux      2002/10/22 06:33:14

  Modified:    Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui
                        CactusPreferencePage.java CactusPlugin.java
  Log:
  Added patch by Chris
  
  Revision  Changes    Path
  1.3       +0 -1      jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui/CactusPreferencePage.java
  
  Index: CactusPreferencePage.java
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui/CactusPreferencePage.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CactusPreferencePage.java	22 Oct 2002 09:33:08 -0000	1.2
  +++ CactusPreferencePage.java	22 Oct 2002 13:33:14 -0000	1.3
  @@ -96,7 +96,6 @@
           // TODO: externalize
           setDescription("Preferences of the Apache Cactus plug-in "
               + "for in-container unit testing");
  -        initializeDefaults();
       }
   
       /**
  
  
  
  1.6       +13 -0     jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui/CactusPlugin.java
  
  Index: CactusPlugin.java
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui/CactusPlugin.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CactusPlugin.java	19 Oct 2002 18:51:17 -0000	1.5
  +++ CactusPlugin.java	22 Oct 2002 13:33:14 -0000	1.6
  @@ -59,6 +59,7 @@
   import org.eclipse.core.runtime.IPluginDescriptor;
   import org.eclipse.core.runtime.IStatus;
   import org.eclipse.core.runtime.Status;
  +import org.eclipse.jface.preference.IPreferenceStore;
   import org.eclipse.swt.widgets.Display;
   import org.eclipse.swt.widgets.Shell;
   import org.eclipse.ui.IWorkbench;
  @@ -152,6 +153,18 @@
               display = Display.getDefault();
           }
           return display;
  +    }
  +    /**
  +     * Initializes all preferences to their default values.
  +     * 
  +     * @param theStore the preference store
  +     */
  +    protected void initializeDefaultPreferences(IPreferenceStore theStore)
  +    {
  +        theStore.setDefault(CactusPreferences.CONTEXT_URL_SCHEME, "http");
  +        theStore.setDefault(CactusPreferences.CONTEXT_URL_HOST, "localhost");
  +        theStore.setDefault(CactusPreferences.CONTEXT_URL_PORT, 8080);
  +        theStore.setDefault(CactusPreferences.CONTEXT_URL_PATH, "test");
       }
   
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>