You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2005/08/24 23:36:53 UTC

svn commit: r239937 [72/73] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.core/src/org/apache/geronimo/core/operations/ org.apache.geronimo.deployment.model/src/org/apac...

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java Wed Aug 24 14:34:34 2005
@@ -1,151 +1,151 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.internal;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * Translated messages.
- */
-public class Messages extends NLS {
-
-    public static String editorTabGeneral;
-
-    public static String editorTabNaming;
-
-    public static String editorTabSecurity;
-
-    public static String editorTabDependencies;
-
-    public static String errorCouldNotOpenFile;
-
-    public static String editorTitle;
-
-    public static String editorSectionGeneralTitle;
-
-    public static String editorSectionGeneralDescription;
-
-    public static String editorConfigId;
-
-    public static String editorParentId;
-
-    public static String editorContextRoot;
-
-    public static String editorClassloader;
-
-    public static String editorClassloaderServer;
-
-    public static String editorClassloaderWebApp;
-
-    public static String securityRealmName;
-
-    //
-
-    public static String editorSectionSecurityRolesTitle;
-
-    public static String editorSectionSecurityRolesDescription;
-
-    //
-
-    public static String editorResourceRefDescription;
-
-    public static String editorResourceRefTitle;
-
-    public static String editorResRefTargetNameTitle;
-
-    public static String editorResRefLinkTitle;
-
-    public static String editorResRefNameTitle;
-
-    //
-
-    public static String editorResourceEnvRefDescription;
-
-    public static String editorResourceEnvRefTitle;
-
-    public static String editorResEnvRefMsgDestTitle;
-
-    public static String editorResEnvRefNameTitle;
-
-    //
-
-    public static String editorEjbLocalRefDescription;
-
-    public static String editorEjbLocalRefTitle;
-
-    public static String editorEjbRefTargetName;
-
-    public static String editorEjbRefEjbLink;
-
-    //
-
-    public static String editorEjbRefDescription;
-
-    public static String editorEjbRefTitle;
-
-    // Buttons
-
-    public static String add;
-
-    public static String remove;
-
-    public static String edit;
-
-    // Wizard/Wizard Pages
-
-    public static String wizardNewTitle_ResRef;
-
-    public static String wizardEditTitle_ResRef;
-
-    public static String wizardPageTitle_ResRef;
-
-    public static String wizardPageDescription_ResRef;
-
-    //
-
-    public static String wizardNewTitle_ResEnvRef;
-
-    public static String wizardEditTitle_ResEnvRef;
-
-    public static String wizardPageTitle_ResEnvRef;
-
-    public static String wizardPageDescription_ResEnvRef;
-
-    //
-
-    public static String wizardNewTitle_EjbRef;
-
-    public static String wizardEditTitle_EjbRef;
-
-    public static String wizardPageTitle_EjbRef;
-
-    public static String wizardPageDescription_EjbRef;
-
-    //
-
-    public static String wizardNewTitle_EjbLocalRef;
-
-    public static String wizardEditTitle_EjbLocalRef;
-
-    public static String wizardPageTitle_EjbLocalRef;
-
-    public static String wizardPageDescription_EjbLocalRef;
-
-    static {
-        NLS.initializeMessages(GeronimoUIPlugin.PLUGIN_ID
-                + ".internal.Messages", Messages.class);
-    }
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.internal;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * Translated messages.
+ */
+public class Messages extends NLS {
+
+    public static String editorTabGeneral;
+
+    public static String editorTabNaming;
+
+    public static String editorTabSecurity;
+
+    public static String editorTabDependencies;
+
+    public static String errorCouldNotOpenFile;
+
+    public static String editorTitle;
+
+    public static String editorSectionGeneralTitle;
+
+    public static String editorSectionGeneralDescription;
+
+    public static String editorConfigId;
+
+    public static String editorParentId;
+
+    public static String editorContextRoot;
+
+    public static String editorClassloader;
+
+    public static String editorClassloaderServer;
+
+    public static String editorClassloaderWebApp;
+
+    public static String securityRealmName;
+
+    //
+
+    public static String editorSectionSecurityRolesTitle;
+
+    public static String editorSectionSecurityRolesDescription;
+
+    //
+
+    public static String editorResourceRefDescription;
+
+    public static String editorResourceRefTitle;
+
+    public static String editorResRefTargetNameTitle;
+
+    public static String editorResRefLinkTitle;
+
+    public static String editorResRefNameTitle;
+
+    //
+
+    public static String editorResourceEnvRefDescription;
+
+    public static String editorResourceEnvRefTitle;
+
+    public static String editorResEnvRefMsgDestTitle;
+
+    public static String editorResEnvRefNameTitle;
+
+    //
+
+    public static String editorEjbLocalRefDescription;
+
+    public static String editorEjbLocalRefTitle;
+
+    public static String editorEjbRefTargetName;
+
+    public static String editorEjbRefEjbLink;
+
+    //
+
+    public static String editorEjbRefDescription;
+
+    public static String editorEjbRefTitle;
+
+    // Buttons
+
+    public static String add;
+
+    public static String remove;
+
+    public static String edit;
+
+    // Wizard/Wizard Pages
+
+    public static String wizardNewTitle_ResRef;
+
+    public static String wizardEditTitle_ResRef;
+
+    public static String wizardPageTitle_ResRef;
+
+    public static String wizardPageDescription_ResRef;
+
+    //
+
+    public static String wizardNewTitle_ResEnvRef;
+
+    public static String wizardEditTitle_ResEnvRef;
+
+    public static String wizardPageTitle_ResEnvRef;
+
+    public static String wizardPageDescription_ResEnvRef;
+
+    //
+
+    public static String wizardNewTitle_EjbRef;
+
+    public static String wizardEditTitle_EjbRef;
+
+    public static String wizardPageTitle_EjbRef;
+
+    public static String wizardPageDescription_EjbRef;
+
+    //
+
+    public static String wizardNewTitle_EjbLocalRef;
+
+    public static String wizardEditTitle_EjbLocalRef;
+
+    public static String wizardPageTitle_EjbLocalRef;
+
+    public static String wizardPageDescription_EjbLocalRef;
+
+    static {
+        NLS.initializeMessages(GeronimoUIPlugin.PLUGIN_ID
+                + ".internal.Messages", Messages.class);
+    }
 }

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Trace.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Trace.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Trace.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Trace.java Wed Aug 24 14:34:34 2005
@@ -1,84 +1,84 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.internal;
-
-/**
- * Helper class to route trace output.
- */
-public class Trace {
-    /**
-     * Config trace event.
-     */
-    public static byte CONFIG = 0;
-
-    /**
-     * Warning trace event.
-     */
-    public static byte WARNING = 1;
-
-    /**
-     * Severe trace event.
-     */
-    public static byte SEVERE = 2;
-
-    /**
-     * Finest trace event.
-     */
-    public static byte FINEST = 3;
-
-    /**
-     * Parsing trace event.
-     */
-    public static byte PARSING = 4;
-
-    /**
-     * Trace constructor comment.
-     */
-    private Trace() {
-        super();
-    }
-
-    /**
-     * Trace the given text.
-     * 
-     * @param level
-     *            the trace level
-     * @param s
-     *            a message
-     */
-    public static void trace(byte level, String s) {
-        trace(level, s, null);
-    }
-
-    /**
-     * Trace the given message and exception.
-     * 
-     * @param level
-     *            the trace level
-     * @param s
-     *            a message
-     * @param t
-     *            a throwable
-     */
-    public static void trace(byte level, String s, Throwable t) {
-        if (!GeronimoUIPlugin.getInstance().isDebugging())
-            return;
-
-        System.out.println(GeronimoUIPlugin.PLUGIN_ID + " " + s);
-        if (t != null)
-            t.printStackTrace();
-    }
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.internal;
+
+/**
+ * Helper class to route trace output.
+ */
+public class Trace {
+    /**
+     * Config trace event.
+     */
+    public static byte CONFIG = 0;
+
+    /**
+     * Warning trace event.
+     */
+    public static byte WARNING = 1;
+
+    /**
+     * Severe trace event.
+     */
+    public static byte SEVERE = 2;
+
+    /**
+     * Finest trace event.
+     */
+    public static byte FINEST = 3;
+
+    /**
+     * Parsing trace event.
+     */
+    public static byte PARSING = 4;
+
+    /**
+     * Trace constructor comment.
+     */
+    private Trace() {
+        super();
+    }
+
+    /**
+     * Trace the given text.
+     * 
+     * @param level
+     *            the trace level
+     * @param s
+     *            a message
+     */
+    public static void trace(byte level, String s) {
+        trace(level, s, null);
+    }
+
+    /**
+     * Trace the given message and exception.
+     * 
+     * @param level
+     *            the trace level
+     * @param s
+     *            a message
+     * @param t
+     *            a throwable
+     */
+    public static void trace(byte level, String s, Throwable t) {
+        if (!GeronimoUIPlugin.getInstance().isDebugging())
+            return;
+
+        System.out.println(GeronimoUIPlugin.PLUGIN_ID + " " + s);
+        if (t != null)
+            t.printStackTrace();
+    }
 }

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Trace.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/NamingFormPage.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/NamingFormPage.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/NamingFormPage.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/NamingFormPage.java Wed Aug 24 14:34:34 2005
@@ -1,87 +1,87 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.pages;
-
-import org.apache.geronimo.ui.editors.DPEditor;
-import org.apache.geronimo.ui.sections.EjbLocalRefSection;
-import org.apache.geronimo.ui.sections.EjbRefSection;
-import org.apache.geronimo.ui.sections.ResourceEnvRefSection;
-import org.apache.geronimo.ui.sections.ResourceRefSection;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.editor.FormPage;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.eclipse.ui.forms.widgets.Section;
-
-public class NamingFormPage extends FormPage {
-
-    public NamingFormPage(FormEditor editor, String id, String title) {
-        super(editor, id, title);
-    }
-
-    public NamingFormPage(String id, String title) {
-        super(id, title);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
-     */
-    protected void createFormContent(IManagedForm managedForm) {
-
-        ScrolledForm form = managedForm.getForm();
-        form.setText(getTitle());
-        GridLayout layout = new GridLayout();
-        layout.numColumns = 2;
-        layout.horizontalSpacing = 20;
-
-        form.getBody().setLayout(layout);
-
-        fillBody(managedForm);
-
-        form.reflow(true);
-
-    }
-
-    private void fillBody(IManagedForm managedForm) {
-
-        WebAppType plan = ((DPEditor) getEditor()).getPlan();
-
-        Composite body = managedForm.getForm().getBody();
-
-        int style = ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
-                | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                | ExpandableComposite.FOCUS_TITLE;
-
-        managedForm.addPart(new ResourceRefSection(plan, body, managedForm
-                .getToolkit(), style));
-
-        managedForm.addPart(new ResourceEnvRefSection(plan, body, managedForm
-                .getToolkit(), style));
-
-        managedForm.addPart(new EjbRefSection(plan, body, managedForm
-                .getToolkit(), style));
-
-        managedForm.addPart(new EjbLocalRefSection(plan, body, managedForm
-                .getToolkit(), style));
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.pages;
+
+import org.apache.geronimo.ui.editors.DPEditor;
+import org.apache.geronimo.ui.sections.EjbLocalRefSection;
+import org.apache.geronimo.ui.sections.EjbRefSection;
+import org.apache.geronimo.ui.sections.ResourceEnvRefSection;
+import org.apache.geronimo.ui.sections.ResourceRefSection;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class NamingFormPage extends FormPage {
+
+    public NamingFormPage(FormEditor editor, String id, String title) {
+        super(editor, id, title);
+    }
+
+    public NamingFormPage(String id, String title) {
+        super(id, title);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
+     */
+    protected void createFormContent(IManagedForm managedForm) {
+
+        ScrolledForm form = managedForm.getForm();
+        form.setText(getTitle());
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 2;
+        layout.horizontalSpacing = 20;
+
+        form.getBody().setLayout(layout);
+
+        fillBody(managedForm);
+
+        form.reflow(true);
+
+    }
+
+    private void fillBody(IManagedForm managedForm) {
+
+        WebAppType plan = ((DPEditor) getEditor()).getPlan();
+
+        Composite body = managedForm.getForm().getBody();
+
+        int style = ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
+                | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
+                | ExpandableComposite.FOCUS_TITLE;
+
+        managedForm.addPart(new ResourceRefSection(plan, body, managedForm
+                .getToolkit(), style));
+
+        managedForm.addPart(new ResourceEnvRefSection(plan, body, managedForm
+                .getToolkit(), style));
+
+        managedForm.addPart(new EjbRefSection(plan, body, managedForm
+                .getToolkit(), style));
+
+        managedForm.addPart(new EjbLocalRefSection(plan, body, managedForm
+                .getToolkit(), style));
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/NamingFormPage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java Wed Aug 24 14:34:34 2005
@@ -1,62 +1,62 @@
-package org.apache.geronimo.ui.pages;
-
-import org.apache.geronimo.ui.editors.DPEditor;
-import org.apache.geronimo.ui.sections.SecuritySection;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.editor.FormPage;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.eclipse.ui.forms.widgets.Section;
-
-public class SecurityPage extends FormPage {
-
-    public SecurityPage(FormEditor editor, String id, String title) {
-        super(editor, id, title);
-        // TODO Auto-generated constructor stub
-    }
-
-    public SecurityPage(String id, String title) {
-        super(id, title);
-        // TODO Auto-generated constructor stub
-    }
-    
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
-     */
-    protected void createFormContent(IManagedForm managedForm) {
-
-        ScrolledForm form = managedForm.getForm();
-        form.setText(getTitle());
-        GridLayout layout = new GridLayout();
-        layout.numColumns = 1;
-        layout.horizontalSpacing = 20;
-
-        form.getBody().setLayout(layout);
-
-        fillBody(managedForm);
-
-        form.reflow(true);
-
-    }
-
-    private void fillBody(IManagedForm managedForm) {
-
-        WebAppType plan = ((DPEditor) getEditor()).getPlan();
-
-        Composite body = managedForm.getForm().getBody();
-
-        int style = ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
-                | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                | ExpandableComposite.FOCUS_TITLE;
-
-        managedForm.addPart(new SecuritySection(plan, body, managedForm
-                .getToolkit(), style));
-    }
-
-}
+package org.apache.geronimo.ui.pages;
+
+import org.apache.geronimo.ui.editors.DPEditor;
+import org.apache.geronimo.ui.sections.SecuritySection;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class SecurityPage extends FormPage {
+
+    public SecurityPage(FormEditor editor, String id, String title) {
+        super(editor, id, title);
+        // TODO Auto-generated constructor stub
+    }
+
+    public SecurityPage(String id, String title) {
+        super(id, title);
+        // TODO Auto-generated constructor stub
+    }
+    
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
+     */
+    protected void createFormContent(IManagedForm managedForm) {
+
+        ScrolledForm form = managedForm.getForm();
+        form.setText(getTitle());
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 1;
+        layout.horizontalSpacing = 20;
+
+        form.getBody().setLayout(layout);
+
+        fillBody(managedForm);
+
+        form.reflow(true);
+
+    }
+
+    private void fillBody(IManagedForm managedForm) {
+
+        WebAppType plan = ((DPEditor) getEditor()).getPlan();
+
+        Composite body = managedForm.getForm().getBody();
+
+        int style = ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
+                | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
+                | ExpandableComposite.FOCUS_TITLE;
+
+        managedForm.addPart(new SecuritySection(plan, body, managedForm
+                .getToolkit(), style));
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java Wed Aug 24 14:34:34 2005
@@ -1,63 +1,63 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.pages;
-
-import org.apache.geronimo.ui.editors.DPEditor;
-import org.apache.geronimo.ui.sections.WebGeneralSection;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.editor.FormPage;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.eclipse.ui.forms.widgets.Section;
-
-public class WebGeneralPage extends FormPage {
-
-    public WebGeneralPage(FormEditor editor, String id, String title) {
-        super(editor, id, title);
-    }
-
-    public WebGeneralPage(String id, String title) {
-        super(id, title);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
-     */
-    protected void createFormContent(IManagedForm managedForm) {
-
-        WebAppType plan = ((DPEditor) getEditor()).getPlan();
-
-        ScrolledForm form = managedForm.getForm();
-        form.setText(getTitle());
-        form.getBody().setLayout(new GridLayout());
-
-        // create web plan general section
-        WebGeneralSection sec = new WebGeneralSection(plan, form.getBody(),
-                managedForm.getToolkit(), ExpandableComposite.TWISTIE
-                        | ExpandableComposite.EXPANDED
-                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                        | ExpandableComposite.FOCUS_TITLE);
-        managedForm.addPart(sec);
-
-        form.reflow(true);
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.pages;
+
+import org.apache.geronimo.ui.editors.DPEditor;
+import org.apache.geronimo.ui.sections.WebGeneralSection;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class WebGeneralPage extends FormPage {
+
+    public WebGeneralPage(FormEditor editor, String id, String title) {
+        super(editor, id, title);
+    }
+
+    public WebGeneralPage(String id, String title) {
+        super(id, title);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
+     */
+    protected void createFormContent(IManagedForm managedForm) {
+
+        WebAppType plan = ((DPEditor) getEditor()).getPlan();
+
+        ScrolledForm form = managedForm.getForm();
+        form.setText(getTitle());
+        form.getBody().setLayout(new GridLayout());
+
+        // create web plan general section
+        WebGeneralSection sec = new WebGeneralSection(plan, form.getBody(),
+                managedForm.getToolkit(), ExpandableComposite.TWISTIE
+                        | ExpandableComposite.EXPANDED
+                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
+                        | ExpandableComposite.FOCUS_TITLE);
+        managedForm.addPart(sec);
+
+        form.reflow(true);
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DynamicTableSection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DynamicTableSection.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DynamicTableSection.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DynamicTableSection.java Wed Aug 24 14:34:34 2005
@@ -1,329 +1,329 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.sections;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.viewers.ColumnWeightData;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableLayout;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.ui.forms.SectionPart;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-public abstract class DynamicTableSection extends SectionPart {
-
-    private EObject plan;
-
-    protected Table table;
-
-    protected TableViewer tableViewer;
-
-    private ImageDescriptor defaultDescriptor = GeronimoUIPlugin
-            .imageDescriptorFromPlugin("org.apache.geronimo.ui",
-                    "icons/obj16/geronimo.gif");
-
-    private Image defaultImage = defaultDescriptor.createImage();
-
-    public DynamicTableSection(Section section) {
-        super(section);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.forms.IFormPart#commit(boolean)
-     * 
-     * Overriding this method as a workaround as switching tabs on a dirty
-     * editor commits the page and marks the part as not dirty.
-     */
-    public void commit(boolean onSave) {
-        boolean currentDirtyState = isDirty();
-        super.commit(onSave);
-        if (!onSave && currentDirtyState) {
-            markDirty();
-        }
-    }
-
-    public DynamicTableSection(EObject plan, Composite parent,
-            FormToolkit toolkit, int style) {
-        super(parent, toolkit, style);
-        this.plan = plan;
-
-        if (isValid()) {
-            createClient(getSection(), toolkit);
-        }
-    }
-
-    private boolean isValid() {
-        return getEFactory() != null && getEReference() != null
-                && getTableColumnEAttributes() != null
-                && getTableColumnNames() != null;
-    }
-
-    public void createClient(Section section, FormToolkit toolkit) {
-
-        section.setText(getTitle());
-        section.setDescription(getDescription());
-        
-        configureSection(section);
-
-        Composite composite = createTableComposite(section, toolkit);
-        createTable(composite);
-        fillTableItems();
-
-        tableViewer = new TableViewer(table);
-
-        if (getTableColumnNames().length > 0) {
-            tableViewer.setColumnProperties(getTableColumnNames());
-        }
-
-        Composite buttonComp = createButtonComposite(toolkit, composite);
-        createAddButton(toolkit, buttonComp);
-        createRemoveButton(toolkit, buttonComp);
-        createEditButton(toolkit, buttonComp);
-
-    }
-
-    protected Composite createTableComposite(Section section,
-            FormToolkit toolkit) {
-        Composite composite = toolkit.createComposite(section);
-        GridLayout layout = new GridLayout();
-        layout.numColumns = 3;
-        layout.marginHeight = 5;
-        layout.marginWidth = 10;
-        layout.verticalSpacing = 5;
-        layout.horizontalSpacing = 15;
-        composite.setLayout(layout);
-        composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-        section.setClient(composite);
-        return composite;
-    }
-
-    protected void configureSection(Section section) {       
-        section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-    }
-
-    protected void fillTableItems() {
-        EList list = (EList) plan.eGet(getEReference());
-
-        for (int j = 0; j < list.size(); j++) {
-            TableItem item = new TableItem(table, SWT.NONE);
-            String[] tableTextData = getTableText((EObject) list.get(j));
-            item.setImage(getImage());
-            item.setText(tableTextData);
-            item.setData((EObject) list.get(j));
-        }
-    }
-
-    protected void createTable(Composite composite) {
-        table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION
-                | SWT.V_SCROLL | SWT.SINGLE);
-        if (getTableColumnNames().length > 0) {
-            table.setHeaderVisible(true);
-        }
-
-        GridData data = new GridData(SWT.FILL, SWT.FILL, false, false);
-        data.heightHint = 60;
-        data.widthHint = 400;
-        table.setLayoutData(data);
-
-        TableLayout tableLayout = new TableLayout();
-        table.setLayout(tableLayout);
-
-        for (int i = 0; i < getTableColumnNames().length; i++) {
-            tableLayout.addColumnData(new ColumnWeightData(35));
-            TableColumn tableColumn = new TableColumn(table, SWT.NONE);
-            tableColumn.setText(getTableColumnNames()[i]);
-
-        }
-
-    }
-
-    protected Composite createButtonComposite(FormToolkit toolkit,
-            Composite parent) {
-        GridLayout layout;
-        Composite buttonComp = new Composite(parent, SWT.NONE);
-        layout = new GridLayout();
-        layout.horizontalSpacing = 2;
-        layout.verticalSpacing = 2;
-        layout.marginWidth = 0;
-        layout.marginHeight = 0;
-        layout.numColumns = 1;
-        buttonComp.setLayout(layout);
-        buttonComp.setBackground(toolkit.getColors().getBackground());
-        buttonComp
-                .setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-        return buttonComp;
-    }
-
-    protected void createRemoveButton(FormToolkit toolkit, Composite buttonComp) {
-        Button del = toolkit
-                .createButton(buttonComp, Messages.remove, SWT.NONE);
-        del.addSelectionListener(new SelectionAdapter() {
-            public void widgetSelected(SelectionEvent e) {
-                int[] selectedIndices = table.getSelectionIndices();
-                for (int i = 0; i < selectedIndices.length; i++) {
-                    TableItem tableItem = table.getItem(selectedIndices[i]);
-                    EObject type = (EObject) (tableItem.getData());
-                    table.remove(selectedIndices[i]);
-                    ((EList) plan.eGet(getEReference())).remove(type);
-                    markDirty();
-                }
-            }
-        });
-        del.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-    }
-
-    protected void createAddButton(FormToolkit toolkit, Composite buttonComp) {
-        Button add = toolkit.createButton(buttonComp, Messages.add, SWT.NONE);
-
-        add.addSelectionListener(new SelectionAdapter() {
-            public void widgetSelected(SelectionEvent e) {
-                DynamicAddEditWizard wizard = getWizard();
-                if (wizard != null) {
-                    WizardDialog dialog = new WizardDialog(Display.getCurrent()
-                            .getActiveShell(), wizard);
-
-                    dialog.open();
-
-                    if (dialog.getReturnCode() == Dialog.OK) {
-                        markDirty();
-                    }
-                }
-            }
-        });
-
-        add.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-    }
-
-    protected void createEditButton(FormToolkit toolkit, Composite buttonComp) {
-        Button add = toolkit.createButton(buttonComp, Messages.edit, SWT.NONE);
-
-        add.addSelectionListener(new SelectionAdapter() {
-            public void widgetSelected(SelectionEvent e) {
-                Object o = ((StructuredSelection) getTableViewer()
-                        .getSelection()).getFirstElement();
-
-                if (o != null) {
-
-                    DynamicAddEditWizard wizard = getWizard();
-                    if (wizard != null) {
-                        wizard.setEObject((EObject) o);
-
-                        WizardDialog dialog = new WizardDialog(Display
-                                .getCurrent().getActiveShell(), wizard);
-
-                        dialog.open();
-
-                        if (dialog.getReturnCode() == Dialog.OK) {
-                            markDirty();
-                        }
-                    }
-                }
-
-            }
-        });
-        add.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-    }
-
-    public String[] getTableText(EObject eObject) {
-        List tableText = new ArrayList();
-        for (int i = 0; i < getTableColumnEAttributes().length; i++) {
-            String value = (String) eObject
-                    .eGet(getTableColumnEAttributes()[i]);
-            if (value != null) {
-                tableText.add(value);
-            } else {
-                tableText.add("");
-            }
-        }
-        return (String[]) tableText.toArray(new String[tableText.size()]);
-    }
-
-    public Image getImage() {
-        return defaultImage;
-    }
-
-    public TableViewer getTableViewer() {
-        return tableViewer;
-    }
-
-    public EObject getPlan() {
-        return plan;
-    }
-
-    /**
-     * @return
-     */
-    abstract public String getTitle();
-
-    /**
-     * @return
-     */
-    abstract public String getDescription();
-
-    /**
-     * @return
-     */
-    abstract public EFactory getEFactory();
-
-    /**
-     * @return
-     */
-    abstract public EReference getEReference();
-
-    /**
-     * @return
-     */
-    abstract public String[] getTableColumnNames();
-
-    /**
-     * @return
-     */
-    abstract public EAttribute[] getTableColumnEAttributes();
-
-    /**
-     * @return
-     */
-    abstract public DynamicAddEditWizard getWizard();
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.sections;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.TableLayout;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.ui.forms.SectionPart;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+public abstract class DynamicTableSection extends SectionPart {
+
+    private EObject plan;
+
+    protected Table table;
+
+    protected TableViewer tableViewer;
+
+    private ImageDescriptor defaultDescriptor = GeronimoUIPlugin
+            .imageDescriptorFromPlugin("org.apache.geronimo.ui",
+                    "icons/obj16/geronimo.gif");
+
+    private Image defaultImage = defaultDescriptor.createImage();
+
+    public DynamicTableSection(Section section) {
+        super(section);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.forms.IFormPart#commit(boolean)
+     * 
+     * Overriding this method as a workaround as switching tabs on a dirty
+     * editor commits the page and marks the part as not dirty.
+     */
+    public void commit(boolean onSave) {
+        boolean currentDirtyState = isDirty();
+        super.commit(onSave);
+        if (!onSave && currentDirtyState) {
+            markDirty();
+        }
+    }
+
+    public DynamicTableSection(EObject plan, Composite parent,
+            FormToolkit toolkit, int style) {
+        super(parent, toolkit, style);
+        this.plan = plan;
+
+        if (isValid()) {
+            createClient(getSection(), toolkit);
+        }
+    }
+
+    private boolean isValid() {
+        return getEFactory() != null && getEReference() != null
+                && getTableColumnEAttributes() != null
+                && getTableColumnNames() != null;
+    }
+
+    public void createClient(Section section, FormToolkit toolkit) {
+
+        section.setText(getTitle());
+        section.setDescription(getDescription());
+        
+        configureSection(section);
+
+        Composite composite = createTableComposite(section, toolkit);
+        createTable(composite);
+        fillTableItems();
+
+        tableViewer = new TableViewer(table);
+
+        if (getTableColumnNames().length > 0) {
+            tableViewer.setColumnProperties(getTableColumnNames());
+        }
+
+        Composite buttonComp = createButtonComposite(toolkit, composite);
+        createAddButton(toolkit, buttonComp);
+        createRemoveButton(toolkit, buttonComp);
+        createEditButton(toolkit, buttonComp);
+
+    }
+
+    protected Composite createTableComposite(Section section,
+            FormToolkit toolkit) {
+        Composite composite = toolkit.createComposite(section);
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 3;
+        layout.marginHeight = 5;
+        layout.marginWidth = 10;
+        layout.verticalSpacing = 5;
+        layout.horizontalSpacing = 15;
+        composite.setLayout(layout);
+        composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+        section.setClient(composite);
+        return composite;
+    }
+
+    protected void configureSection(Section section) {       
+        section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+    }
+
+    protected void fillTableItems() {
+        EList list = (EList) plan.eGet(getEReference());
+
+        for (int j = 0; j < list.size(); j++) {
+            TableItem item = new TableItem(table, SWT.NONE);
+            String[] tableTextData = getTableText((EObject) list.get(j));
+            item.setImage(getImage());
+            item.setText(tableTextData);
+            item.setData((EObject) list.get(j));
+        }
+    }
+
+    protected void createTable(Composite composite) {
+        table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION
+                | SWT.V_SCROLL | SWT.SINGLE);
+        if (getTableColumnNames().length > 0) {
+            table.setHeaderVisible(true);
+        }
+
+        GridData data = new GridData(SWT.FILL, SWT.FILL, false, false);
+        data.heightHint = 60;
+        data.widthHint = 400;
+        table.setLayoutData(data);
+
+        TableLayout tableLayout = new TableLayout();
+        table.setLayout(tableLayout);
+
+        for (int i = 0; i < getTableColumnNames().length; i++) {
+            tableLayout.addColumnData(new ColumnWeightData(35));
+            TableColumn tableColumn = new TableColumn(table, SWT.NONE);
+            tableColumn.setText(getTableColumnNames()[i]);
+
+        }
+
+    }
+
+    protected Composite createButtonComposite(FormToolkit toolkit,
+            Composite parent) {
+        GridLayout layout;
+        Composite buttonComp = new Composite(parent, SWT.NONE);
+        layout = new GridLayout();
+        layout.horizontalSpacing = 2;
+        layout.verticalSpacing = 2;
+        layout.marginWidth = 0;
+        layout.marginHeight = 0;
+        layout.numColumns = 1;
+        buttonComp.setLayout(layout);
+        buttonComp.setBackground(toolkit.getColors().getBackground());
+        buttonComp
+                .setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+        return buttonComp;
+    }
+
+    protected void createRemoveButton(FormToolkit toolkit, Composite buttonComp) {
+        Button del = toolkit
+                .createButton(buttonComp, Messages.remove, SWT.NONE);
+        del.addSelectionListener(new SelectionAdapter() {
+            public void widgetSelected(SelectionEvent e) {
+                int[] selectedIndices = table.getSelectionIndices();
+                for (int i = 0; i < selectedIndices.length; i++) {
+                    TableItem tableItem = table.getItem(selectedIndices[i]);
+                    EObject type = (EObject) (tableItem.getData());
+                    table.remove(selectedIndices[i]);
+                    ((EList) plan.eGet(getEReference())).remove(type);
+                    markDirty();
+                }
+            }
+        });
+        del.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
+    }
+
+    protected void createAddButton(FormToolkit toolkit, Composite buttonComp) {
+        Button add = toolkit.createButton(buttonComp, Messages.add, SWT.NONE);
+
+        add.addSelectionListener(new SelectionAdapter() {
+            public void widgetSelected(SelectionEvent e) {
+                DynamicAddEditWizard wizard = getWizard();
+                if (wizard != null) {
+                    WizardDialog dialog = new WizardDialog(Display.getCurrent()
+                            .getActiveShell(), wizard);
+
+                    dialog.open();
+
+                    if (dialog.getReturnCode() == Dialog.OK) {
+                        markDirty();
+                    }
+                }
+            }
+        });
+
+        add.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
+    }
+
+    protected void createEditButton(FormToolkit toolkit, Composite buttonComp) {
+        Button add = toolkit.createButton(buttonComp, Messages.edit, SWT.NONE);
+
+        add.addSelectionListener(new SelectionAdapter() {
+            public void widgetSelected(SelectionEvent e) {
+                Object o = ((StructuredSelection) getTableViewer()
+                        .getSelection()).getFirstElement();
+
+                if (o != null) {
+
+                    DynamicAddEditWizard wizard = getWizard();
+                    if (wizard != null) {
+                        wizard.setEObject((EObject) o);
+
+                        WizardDialog dialog = new WizardDialog(Display
+                                .getCurrent().getActiveShell(), wizard);
+
+                        dialog.open();
+
+                        if (dialog.getReturnCode() == Dialog.OK) {
+                            markDirty();
+                        }
+                    }
+                }
+
+            }
+        });
+        add.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
+    }
+
+    public String[] getTableText(EObject eObject) {
+        List tableText = new ArrayList();
+        for (int i = 0; i < getTableColumnEAttributes().length; i++) {
+            String value = (String) eObject
+                    .eGet(getTableColumnEAttributes()[i]);
+            if (value != null) {
+                tableText.add(value);
+            } else {
+                tableText.add("");
+            }
+        }
+        return (String[]) tableText.toArray(new String[tableText.size()]);
+    }
+
+    public Image getImage() {
+        return defaultImage;
+    }
+
+    public TableViewer getTableViewer() {
+        return tableViewer;
+    }
+
+    public EObject getPlan() {
+        return plan;
+    }
+
+    /**
+     * @return
+     */
+    abstract public String getTitle();
+
+    /**
+     * @return
+     */
+    abstract public String getDescription();
+
+    /**
+     * @return
+     */
+    abstract public EFactory getEFactory();
+
+    /**
+     * @return
+     */
+    abstract public EReference getEReference();
+
+    /**
+     * @return
+     */
+    abstract public String[] getTableColumnNames();
+
+    /**
+     * @return
+     */
+    abstract public EAttribute[] getTableColumnEAttributes();
+
+    /**
+     * @return
+     */
+    abstract public DynamicAddEditWizard getWizard();
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DynamicTableSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java Wed Aug 24 14:34:34 2005
@@ -1,105 +1,105 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
-import org.apache.geronimo.ui.wizards.EjbLocalRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingFactory;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.apache.geronimo.xml.ns.web.WebFactory;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class EjbLocalRefSection extends DynamicTableSection {
-
-    public EjbLocalRefSection(WebAppType plan, Composite parent,
-            FormToolkit toolkit, int style) {
-        super(plan, parent, toolkit, style);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
-     */
-    public String getTitle() {
-        return Messages.editorEjbLocalRefTitle;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
-     */
-    public String getDescription() {
-        return Messages.editorEjbLocalRefDescription;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
-     */
-    public EFactory getEFactory() {
-        return NamingFactory.eINSTANCE;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
-     */
-    public EReference getEReference() {
-        return WebFactory.eINSTANCE.getWebPackage().getWebAppType_EjbLocalRef();
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
-     */
-    public String[] getTableColumnNames() {
-        return new String[] { Messages.editorEjbRefTargetName,
-                Messages.editorEjbRefEjbLink };
-
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
-     */
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {
-                NamingPackage.eINSTANCE.getEjbLocalRefType_TargetName(),
-                NamingPackage.eINSTANCE.getEjbLocalRefType_EjbLink() };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
-     */
-    public DynamicAddEditWizard getWizard() {
-        return new EjbLocalRefWizard(this);
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
+import org.apache.geronimo.ui.wizards.EjbLocalRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.apache.geronimo.xml.ns.web.WebFactory;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class EjbLocalRefSection extends DynamicTableSection {
+
+    public EjbLocalRefSection(WebAppType plan, Composite parent,
+            FormToolkit toolkit, int style) {
+        super(plan, parent, toolkit, style);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
+     */
+    public String getTitle() {
+        return Messages.editorEjbLocalRefTitle;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
+     */
+    public String getDescription() {
+        return Messages.editorEjbLocalRefDescription;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
+     */
+    public EFactory getEFactory() {
+        return NamingFactory.eINSTANCE;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
+     */
+    public EReference getEReference() {
+        return WebFactory.eINSTANCE.getWebPackage().getWebAppType_EjbLocalRef();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
+     */
+    public String[] getTableColumnNames() {
+        return new String[] { Messages.editorEjbRefTargetName,
+                Messages.editorEjbRefEjbLink };
+
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
+     */
+    public EAttribute[] getTableColumnEAttributes() {
+        return new EAttribute[] {
+                NamingPackage.eINSTANCE.getEjbLocalRefType_TargetName(),
+                NamingPackage.eINSTANCE.getEjbLocalRefType_EjbLink() };
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
+     */
+    public DynamicAddEditWizard getWizard() {
+        return new EjbLocalRefWizard(this);
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java Wed Aug 24 14:34:34 2005
@@ -1,118 +1,118 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
-import org.apache.geronimo.ui.wizards.EjbRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingFactory;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.apache.geronimo.xml.ns.web.WebFactory;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-public class EjbRefSection extends DynamicTableSection {
-
-    /**
-     * @param section
-     */
-    public EjbRefSection(Section section) {
-        super(section);
-    }
-
-    /**
-     * @param plan
-     * @param parent
-     * @param toolkit
-     * @param style
-     */
-    public EjbRefSection(EObject plan, Composite parent, FormToolkit toolkit,
-            int style) {
-        super(plan, parent, toolkit, style);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
-     */
-    public String getTitle() {
-        return Messages.editorEjbRefTitle;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
-     */
-    public String getDescription() {
-        return Messages.editorEjbRefDescription;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
-     */
-    public EFactory getEFactory() {
-        return NamingFactory.eINSTANCE;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
-     */
-    public EReference getEReference() {
-        return WebFactory.eINSTANCE.getWebPackage().getWebAppType_EjbRef();
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
-     */
-    public String[] getTableColumnNames() {
-        return new String[] { Messages.editorEjbRefTargetName,
-                Messages.editorEjbRefEjbLink };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
-     */
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {
-                NamingPackage.eINSTANCE.getEjbRefType_TargetName(),
-                NamingPackage.eINSTANCE.getEjbRefType_EjbLink() };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
-     */
-    public DynamicAddEditWizard getWizard() {
-        return new EjbRefWizard(this);
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
+import org.apache.geronimo.ui.wizards.EjbRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.web.WebFactory;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class EjbRefSection extends DynamicTableSection {
+
+    /**
+     * @param section
+     */
+    public EjbRefSection(Section section) {
+        super(section);
+    }
+
+    /**
+     * @param plan
+     * @param parent
+     * @param toolkit
+     * @param style
+     */
+    public EjbRefSection(EObject plan, Composite parent, FormToolkit toolkit,
+            int style) {
+        super(plan, parent, toolkit, style);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
+     */
+    public String getTitle() {
+        return Messages.editorEjbRefTitle;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
+     */
+    public String getDescription() {
+        return Messages.editorEjbRefDescription;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
+     */
+    public EFactory getEFactory() {
+        return NamingFactory.eINSTANCE;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
+     */
+    public EReference getEReference() {
+        return WebFactory.eINSTANCE.getWebPackage().getWebAppType_EjbRef();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
+     */
+    public String[] getTableColumnNames() {
+        return new String[] { Messages.editorEjbRefTargetName,
+                Messages.editorEjbRefEjbLink };
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
+     */
+    public EAttribute[] getTableColumnEAttributes() {
+        return new EAttribute[] {
+                NamingPackage.eINSTANCE.getEjbRefType_TargetName(),
+                NamingPackage.eINSTANCE.getEjbRefType_EjbLink() };
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
+     */
+    public DynamicAddEditWizard getWizard() {
+        return new EjbRefWizard(this);
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java Wed Aug 24 14:34:34 2005
@@ -1,106 +1,106 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
-import org.apache.geronimo.ui.wizards.ResourceEnvRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingFactory;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.apache.geronimo.xml.ns.web.WebFactory;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class ResourceEnvRefSection extends DynamicTableSection {
-
-    public ResourceEnvRefSection(WebAppType plan, Composite parent,
-            FormToolkit toolkit, int style) {
-        super(plan, parent, toolkit, style);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
-     */
-    public String getTitle() {
-        return Messages.editorResourceEnvRefTitle;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
-     */
-    public String getDescription() {
-        return Messages.editorResourceEnvRefDescription;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
-     */
-    public EFactory getEFactory() {
-        return NamingFactory.eINSTANCE;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
-     */
-    public EReference getEReference() {
-        return WebFactory.eINSTANCE.getWebPackage()
-                .getWebAppType_ResourceEnvRef();
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
-     */
-    public String[] getTableColumnNames() {
-        return new String[] { Messages.editorResEnvRefNameTitle,
-                Messages.editorResEnvRefMsgDestTitle };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
-     */
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {
-                NamingPackage.eINSTANCE.getResourceEnvRefType_RefName(),
-                NamingPackage.eINSTANCE
-                        .getResourceEnvRefType_MessageDestinationLink() };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
-     */
-    public DynamicAddEditWizard getWizard() {
-        return new ResourceEnvRefWizard(this);
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
+import org.apache.geronimo.ui.wizards.ResourceEnvRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.apache.geronimo.xml.ns.web.WebFactory;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class ResourceEnvRefSection extends DynamicTableSection {
+
+    public ResourceEnvRefSection(WebAppType plan, Composite parent,
+            FormToolkit toolkit, int style) {
+        super(plan, parent, toolkit, style);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
+     */
+    public String getTitle() {
+        return Messages.editorResourceEnvRefTitle;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
+     */
+    public String getDescription() {
+        return Messages.editorResourceEnvRefDescription;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
+     */
+    public EFactory getEFactory() {
+        return NamingFactory.eINSTANCE;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
+     */
+    public EReference getEReference() {
+        return WebFactory.eINSTANCE.getWebPackage()
+                .getWebAppType_ResourceEnvRef();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
+     */
+    public String[] getTableColumnNames() {
+        return new String[] { Messages.editorResEnvRefNameTitle,
+                Messages.editorResEnvRefMsgDestTitle };
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
+     */
+    public EAttribute[] getTableColumnEAttributes() {
+        return new EAttribute[] {
+                NamingPackage.eINSTANCE.getResourceEnvRefType_RefName(),
+                NamingPackage.eINSTANCE
+                        .getResourceEnvRefType_MessageDestinationLink() };
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
+     */
+    public DynamicAddEditWizard getWizard() {
+        return new ResourceEnvRefWizard(this);
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java Wed Aug 24 14:34:34 2005
@@ -1,110 +1,110 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.ui.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
-import org.apache.geronimo.ui.wizards.ResourceRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingFactory;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.apache.geronimo.xml.ns.web.WebFactory;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class ResourceRefSection extends DynamicTableSection {
-
-    public ResourceRefSection(WebAppType plan, Composite parent,
-            FormToolkit toolkit, int style) {
-        super(plan, parent, toolkit, style);
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
-     */
-    public String getTitle() {
-        return Messages.editorResourceRefTitle;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
-     */
-    public String getDescription() {
-        return Messages.editorResourceRefDescription;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
-     */
-    public EFactory getEFactory() {
-        return NamingFactory.eINSTANCE;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
-     */
-    public EReference getEReference() {
-        return WebFactory.eINSTANCE.getWebPackage().getWebAppType_ResourceRef();
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
-     */
-    public String[] getTableColumnNames() {
-        return new String[] { Messages.editorResRefNameTitle,
-                Messages.editorResRefLinkTitle,
-                Messages.editorResRefTargetNameTitle };
-    }
-
-    public Class getWizardClass() {
-        return ResourceRefWizard.class;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
-     */
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {
-                NamingPackage.eINSTANCE.getResourceRefType_RefName(),
-                NamingPackage.eINSTANCE.getResourceRefType_ResourceLink(),
-                NamingPackage.eINSTANCE.getResourceRefType_TargetName() };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
-     */
-    public DynamicAddEditWizard getWizard() {
-        return new ResourceRefWizard(this);
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.DynamicAddEditWizard;
+import org.apache.geronimo.ui.wizards.ResourceRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.apache.geronimo.xml.ns.web.WebFactory;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class ResourceRefSection extends DynamicTableSection {
+
+    public ResourceRefSection(WebAppType plan, Composite parent,
+            FormToolkit toolkit, int style) {
+        super(plan, parent, toolkit, style);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
+     */
+    public String getTitle() {
+        return Messages.editorResourceRefTitle;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
+     */
+    public String getDescription() {
+        return Messages.editorResourceRefDescription;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
+     */
+    public EFactory getEFactory() {
+        return NamingFactory.eINSTANCE;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
+     */
+    public EReference getEReference() {
+        return WebFactory.eINSTANCE.getWebPackage().getWebAppType_ResourceRef();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
+     */
+    public String[] getTableColumnNames() {
+        return new String[] { Messages.editorResRefNameTitle,
+                Messages.editorResRefLinkTitle,
+                Messages.editorResRefTargetNameTitle };
+    }
+
+    public Class getWizardClass() {
+        return ResourceRefWizard.class;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
+     */
+    public EAttribute[] getTableColumnEAttributes() {
+        return new EAttribute[] {
+                NamingPackage.eINSTANCE.getResourceRefType_RefName(),
+                NamingPackage.eINSTANCE.getResourceRefType_ResourceLink(),
+                NamingPackage.eINSTANCE.getResourceRefType_TargetName() };
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
+     */
+    public DynamicAddEditWizard getWizard() {
+        return new ResourceRefWizard(this);
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native