vmassol 2002/10/22 02:33:08
Modified: Eclipse-Plugin/src/java/org/apache/cactus/eclipse/ui
CactusPreferencePage.java
Log:
* minor reformatting to be more in line with cactus coding conventions (really
minor!)
* checkstyle correction
Revision Changes Path
1.2 +19 -30
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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CactusPreferencePage.java 22 Oct 2002 08:53:48 -0000 1.1
+++ CactusPreferencePage.java 22 Oct 2002 09:33:08 -0000 1.2
@@ -81,23 +81,21 @@
*
* @version $Id$
* @author <a href="mailto:cmlenz@;apache.org">Christopher Lenz</a>
+ * @author <a href="mailto:vmassol@;apache.org">Vincent Massol</a>
*/
-public class CactusPreferencePage
- extends FieldEditorPreferencePage
+public class CactusPreferencePage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage
{
-
/**
- * Constructor.
+ * Sets default plugin preferences.
*/
public CactusPreferencePage()
{
super(GRID);
setPreferenceStore(CactusPlugin.getDefault().getPreferenceStore());
// TODO: externalize
- setDescription(
- "Preferences of the Apache Cactus plug-in "
- + "for in-container unit testing");
+ setDescription("Preferences of the Apache Cactus plug-in "
+ + "for in-container unit testing");
initializeDefaults();
}
@@ -123,33 +121,24 @@
{
// TODO: externalize labels
addField(new RadioGroupFieldEditor(
- CactusPreferences.CONTEXT_URL_SCHEME,
- "Protocol:",
- 1,
- new String[][] { { "HTTP", "http" }, {
- "HTTP over SSL", "https" }
- }, getFieldEditorParent()));
- addField(
- new StringFieldEditor(
- CactusPreferences.CONTEXT_URL_HOST,
- "Host:",
- getFieldEditorParent()));
- addField(
- new IntegerFieldEditor(
- CactusPreferences.CONTEXT_URL_PORT,
- "Port:",
- getFieldEditorParent()));
- addField(
- new StringFieldEditor(
- CactusPreferences.CONTEXT_URL_PATH,
- "Context:",
- getFieldEditorParent()));
+ CactusPreferences.CONTEXT_URL_SCHEME, "Protocol:", 1,
+ new String[][] { { "HTTP", "http" }, { "HTTP over SSL", "https" } },
+ getFieldEditorParent()));
+ addField(new StringFieldEditor(
+ CactusPreferences.CONTEXT_URL_HOST, "Host:",
+ getFieldEditorParent()));
+ addField(new IntegerFieldEditor(
+ CactusPreferences.CONTEXT_URL_PORT, "Port:",
+ getFieldEditorParent()));
+ addField(new StringFieldEditor(
+ CactusPreferences.CONTEXT_URL_PATH, "Context:",
+ getFieldEditorParent()));
}
/**
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(IWorkbench)
- */
- public void init(IWorkbench workbench)
+ */
+ public void init(IWorkbench theWorkbench)
{
// nothing to do (yet)
}
--
To unsubscribe, e-mail: <mailto:cactus-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-dev-help@;jakarta.apache.org>