geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r233071 [22/22] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/ org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.deployment.model/META-INF/ org.apache.geronimo.deployment.model/emf/ ...
Date Tue, 16 Aug 2005 22:40:54 GMT
Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java Tue Aug 16 15:39:15 2005
@@ -15,29 +15,51 @@
  */
 package org.apache.geronimo.ui.internal;
 
+import java.io.IOException;
+
+import org.eclipse.core.runtime.Platform;
 import org.eclipse.ui.plugin.*;
+
 /**
  * The main plugin class to be used in the desktop.
  */
 public class GeronimoUIPlugin extends AbstractUIPlugin {
-	protected static final String PLUGIN_ID = "org.apache.geronimo.ui";
-	
-	private static GeronimoUIPlugin singleton;
-
-	/**
-	 * The constructor.
-	 */
-	public GeronimoUIPlugin() {
-		super();
-		singleton = this;
-	}
-	
-	/**
-	 * Returns the singleton instance of this plugin.
-	 *
-	 * @return org.apache.geronimo.ui.internal.GeronimoUIPlugin
-	 */
-	public static GeronimoUIPlugin getInstance() {
-		return singleton;
-	}
+    protected static final String PLUGIN_ID = "org.apache.geronimo.ui";
+
+    private static final String ICONS_DIRECTORY = "icons/";
+
+    private static String iconLocation;
+
+    private static GeronimoUIPlugin singleton;
+
+    /**
+     * The constructor.
+     */
+    public GeronimoUIPlugin() {
+        super();
+        singleton = this;
+    }
+
+    /**
+     * Returns the singleton instance of this plugin.
+     * 
+     * @return org.apache.geronimo.ui.internal.GeronimoUIPlugin
+     */
+    public static GeronimoUIPlugin getInstance() {
+        return singleton;
+    }
+
+    public static String getIconLocation() {
+        if (iconLocation == null) {
+            try {
+                iconLocation = Platform.resolve(
+                        GeronimoUIPlugin.getInstance().getBundle()
+                                .getEntry("/")).getPath()
+                        + ICONS_DIRECTORY;
+            } catch (IOException e) {
+                e.printStackTrace();
+            }
+        }
+        return iconLocation;
+    }
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -16,48 +16,136 @@
 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 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 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 editorResourceEnvRefTitle;
+
+    public static String editorResEnvRefMsgDestTitle;
+
+    public static String editorResEnvRefNameTitle;
+
+    //
+
     public static String editorEjbLocalRefDescription;
+
     public static String editorEjbLocalRefTitle;
-    public static String editorEjbLocalRefTargetName;
-    public static String editorEjbLocalRefEjbLink;
-	
+
+    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;
 
-	static {
-		NLS.initializeMessages(GeronimoUIPlugin.PLUGIN_ID + ".internal.Messages", Messages.class);
-	}
+    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);
+    }
 }

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties Tue Aug 16 15:39:15 2005
@@ -2,11 +2,15 @@
 
 editorTitle=Geronimo Deployment Plan Editor
 editorSectionGeneralTitle=General
-editorSectionGeneralDescription=Edit the common deployment settings
+editorSectionGeneralDescription=Edit the common deployment settings.
+
+editorSectionSecurityRolesTitle=Security Roles
+editorSectionSecurityRolesDescription=The following security roles are defined:
 
 editorConfigId=Config Id:
 editorParentId=Parent Id:
 editorContextRoot=Context Root:
+securityRealmName=Security realm name:
 editorClassloader=Search order used by the classloader to locate classes:
 editorClassloaderServer=Search the Geronimo server environment first (recomended)
 editorClassloaderWebApp=Search the web app first
@@ -22,13 +26,37 @@
 editorResEnvRefNameTitle=Reference Name
 editorResEnvRefMsgDestTitle=Message destination
 
+editorEjbRefDescription = The following ejb references are defined:
+editorEjbRefTitle = EJB References
+editorEjbRefTargetName=Target Name
+editorEjbRefEjbLink=EJB Link
+
 editorEjbLocalRefDescription=The following ejb local refererencs are defined:
-editorEjbLocalRefTitle=Ejb Local References
-editorEjbLocalRefTargetName=Target Name
-editorEjbLocalRefEjbLink=Ejb Link
+editorEjbLocalRefTitle=EJB Local References
 
 add=Add
 remove=Remove
+edit=Edit
+
+wizardNewTitle_ResRef=New Resource Reference
+wizardEditTitle_ResRef=Edit Resource Reference
+wizardPageTitle_ResRef=Resource Reference Details
+wizardPageDescription_ResRef=Provide details for this resource reference.
+    
+wizardNewTitle_ResEnvRef=New Resource Enviornment Reference
+wizardEditTitle_ResEnvRef=Edit Resource Enviornment Reference
+wizardPageTitle_ResEnvRef=Resource Enviornment Reference Details
+wizardPageDescription_ResEnvRef=Provide details for this resource enviornment reference.
+
+wizardNewTitle_EjbRef=New EJB Reference
+wizardEditTitle_EjbRef=Edit EJB Reference
+wizardPageTitle_EjbRef=EJB Reference Details
+wizardPageDescription_EjbRef=Provide details for this ejb reference.
+
+wizardNewTitle_EjbLocalRef=New EJB Local Reference
+wizardEditTitle_EjbLocalRef=Edit EJB Local Reference
+wizardPageTitle_EjbLocalRef=EJB Reference Local Details
+wizardPageDescription_EjbLocalRef=Provide details for this ejb local reference.
 
 editorTabGeneral=General
 editorTabNaming=Naming

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -14,65 +14,71 @@
  *  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();
-	}
+    /**
+     * 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();
+    }
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -16,12 +16,13 @@
 package org.apache.geronimo.ui.pages;
 
 import org.apache.geronimo.ui.editors.DPEditor;
-import org.apache.geronimo.ui.internal.Messages;
 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;
@@ -46,38 +47,41 @@
      */
     protected void createFormContent(IManagedForm managedForm) {
 
-        WebAppType plan = ((DPEditor) getEditor()).getPlan();
-
         ScrolledForm form = managedForm.getForm();
-        form.setText(Messages.editorTitle);
-        form.getBody().setLayout(new GridLayout());
+        form.setText(getTitle());
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 2;
+        layout.horizontalSpacing = 20;
 
-        // create resource ref section
-        ResourceRefSection sec = new ResourceRefSection(plan, form.getBody(),
-                managedForm.getToolkit(), ExpandableComposite.TWISTIE
-                        | ExpandableComposite.EXPANDED
-                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                        | ExpandableComposite.FOCUS_TITLE);
-        managedForm.addPart(sec);
-
-        // create resource env ref section
-        ResourceEnvRefSection sec2 = new ResourceEnvRefSection(plan, form
-                .getBody(), managedForm.getToolkit(),
-                ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
-                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                        | ExpandableComposite.FOCUS_TITLE);
-        managedForm.addPart(sec2);
-
-        // create ejb local ref section
-        EjbLocalRefSection sec3 = new EjbLocalRefSection(plan, form.getBody(),
-                managedForm.getToolkit(), ExpandableComposite.TWISTIE
-                        | ExpandableComposite.EXPANDED
-                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                        | ExpandableComposite.FOCUS_TITLE);
-        managedForm.addPart(sec3);
+        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));
     }
 
 }

Added: 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=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java Tue Aug 16 15:39:15 2005
@@ -0,0 +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));
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/SecurityPage.java
------------------------------------------------------------------------------
    svn:executable = *

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -16,7 +16,6 @@
 package org.apache.geronimo.ui.pages;
 
 import org.apache.geronimo.ui.editors.DPEditor;
-import org.apache.geronimo.ui.internal.Messages;
 import org.apache.geronimo.ui.sections.WebGeneralSection;
 import org.apache.geronimo.xml.ns.web.WebAppType;
 import org.eclipse.swt.layout.GridLayout;
@@ -36,26 +35,29 @@
     public WebGeneralPage(String id, String title) {
         super(id, title);
     }
-    
-    /* (non-Javadoc)
+
+    /*
+     * (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(Messages.editorTitle);
+        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);       
+
+        // 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);
     }
 
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -18,25 +18,30 @@
 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.viewers.CellEditor;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.viewers.ColumnWeightData;
-import org.eclipse.jface.viewers.ICellModifier;
+import org.eclipse.jface.viewers.StructuredSelection;
 import org.eclipse.jface.viewers.TableLayout;
 import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TextCellEditor;
+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;
@@ -48,39 +53,73 @@
 
     private EObject plan;
 
-    private Table table;
+    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;
-        createClient(getSection(), toolkit);
+
+        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 tableViewer = new TableViewer(table);
-        TextCellEditor cellEditor = new TextCellEditor(table);
-        tableViewer.setCellEditors(new CellEditor[] { cellEditor, cellEditor,
-                cellEditor });
+        tableViewer = new TableViewer(table);
 
-        tableViewer.setColumnProperties(getTableColumnNames());
-
-        ICellModifier cellModifier = createCellModifier(getTableColumnNames());
-        tableViewer.setCellModifier(cellModifier);
+        if (getTableColumnNames().length > 0) {
+            tableViewer.setColumnProperties(getTableColumnNames());
+        }
 
         Composite buttonComp = createButtonComposite(toolkit, composite);
         createAddButton(toolkit, buttonComp);
         createRemoveButton(toolkit, buttonComp);
+        createEditButton(toolkit, buttonComp);
 
     }
 
@@ -88,7 +127,7 @@
             FormToolkit toolkit) {
         Composite composite = toolkit.createComposite(section);
         GridLayout layout = new GridLayout();
-        layout.numColumns = getTableColumnNames().length;
+        layout.numColumns = 3;
         layout.marginHeight = 5;
         layout.marginWidth = 10;
         layout.verticalSpacing = 5;
@@ -99,9 +138,7 @@
         return composite;
     }
 
-    protected void configureSection(Section section) {
-        section.setText(getTitle());
-        section.setDescription(getDescription());
+    protected void configureSection(Section section) {       
         section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
     }
 
@@ -111,6 +148,7 @@
         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));
         }
@@ -118,8 +156,10 @@
 
     protected void createTable(Composite composite) {
         table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION
-                | SWT.V_SCROLL | SWT.H_SCROLL | SWT.SINGLE);
-        table.setHeaderVisible(true);
+                | 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;
@@ -155,55 +195,6 @@
         return buttonComp;
     }
 
-    protected ICellModifier createCellModifier(final String[] columnNames) {
-        ICellModifier cellModifier = new ICellModifier() {
-            public Object getValue(Object element, String property) {
-                EObject type = (EObject) element;
-                String value = null;
-                for (int k = 0; k < columnNames.length; k++) {
-                    if (columnNames[k].equals(property)) {
-                        value = (String) type
-                                .eGet(getTableColumnEAttributes()[k]);
-                    }
-                }
-                if (value == null)
-                    value = "";
-
-                return value;
-            }
-
-            public boolean canModify(Object element, String property) {
-                return true;
-            }
-
-            public void modify(Object element, String property, Object value) {
-                TableItem item = null;
-                if (element instanceof TableItem) {
-                    item = (TableItem) element;
-                    element = item.getData();
-                }
-                EObject type = (EObject) element;
-                for (int k = 0; k < columnNames.length; k++) {
-                    if (columnNames[k].equals(property)) {
-                        type.eSet(getTableColumnEAttributes()[k],
-                                (String) value);
-                        break;
-                    }
-                }
-
-                if (item != null) {
-                    String[] tableTextData = getTableText(type);
-                    item.setText(tableTextData);
-                }
-
-                getManagedForm();
-
-                markDirty();
-            }
-        };
-        return cellModifier;
-    }
-
     protected void createRemoveButton(FormToolkit toolkit, Composite buttonComp) {
         Button del = toolkit
                 .createButton(buttonComp, Messages.remove, SWT.NONE);
@@ -224,28 +215,57 @@
 
     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) {
-                TableItem item = new TableItem(table, SWT.NONE);
-                String defaultName = "NewRef";
-                String[] s = new String[] { defaultName, "", "" };
+                Object o = ((StructuredSelection) getTableViewer()
+                        .getSelection()).getFirstElement();
+
+                if (o != null) {
+
+                    DynamicAddEditWizard wizard = getWizard();
+                    if (wizard != null) {
+                        wizard.setEObject((EObject) o);
 
-                EObject type = getEFactory().create(
-                        getTableColumnEAttributes()[0].getEContainingClass());
+                        WizardDialog dialog = new WizardDialog(Display
+                                .getCurrent().getActiveShell(), wizard);
 
-                type.eSet(getTableColumnEAttributes()[0], defaultName);
+                        dialog.open();
 
-                ((EList) plan.eGet(getEReference())).add(type);
+                        if (dialog.getReturnCode() == Dialog.OK) {
+                            markDirty();
+                        }
+                    }
+                }
 
-                item.setText(s);
-                item.setData(type);
-                markDirty();
             }
         });
         add.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
     }
 
-    protected String[] getTableText(EObject eObject) {
+    public String[] getTableText(EObject eObject) {
         List tableText = new ArrayList();
         for (int i = 0; i < getTableColumnEAttributes().length; i++) {
             String value = (String) eObject
@@ -259,34 +279,51 @@
         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 protected String getTitle();
+    abstract public String getDescription();
 
     /**
      * @return
      */
-    abstract protected String getDescription();
+    abstract public EFactory getEFactory();
 
     /**
      * @return
      */
-    abstract protected EFactory getEFactory();
+    abstract public EReference getEReference();
 
     /**
      * @return
      */
-    abstract protected EReference getEReference();
+    abstract public String[] getTableColumnNames();
 
     /**
      * @return
      */
-    abstract protected String[] getTableColumnNames();
+    abstract public EAttribute[] getTableColumnEAttributes();
 
     /**
      * @return
      */
-    abstract protected EAttribute[] getTableColumnEAttributes();
+    abstract public DynamicAddEditWizard getWizard();
 
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -16,6 +16,8 @@
 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;
@@ -33,50 +35,71 @@
         super(plan, parent, toolkit, style);
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
      */
-    protected String getTitle() {
+    public String getTitle() {
         return Messages.editorEjbLocalRefTitle;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
      */
-    protected String getDescription() {
+    public String getDescription() {
         return Messages.editorEjbLocalRefDescription;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
      */
-    protected EFactory getEFactory() {
+    public EFactory getEFactory() {
         return NamingFactory.eINSTANCE;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
      */
-    protected EReference getEReference() {
+    public EReference getEReference() {
         return WebFactory.eINSTANCE.getWebPackage().getWebAppType_EjbLocalRef();
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
      */
-    protected String[] getTableColumnNames() {
-        return new String[] { Messages.editorEjbLocalRefTargetName,
-                Messages.editorEjbLocalRefEjbLink };
+    public String[] getTableColumnNames() {
+        return new String[] { Messages.editorEjbRefTargetName,
+                Messages.editorEjbRefEjbLink };
 
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
      */
-    protected EAttribute[] 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);
     }
 
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -15,31 +15,104 @@
  */
 package org.apache.geronimo.ui.sections;
 
-import org.apache.geronimo.xml.ns.web.WebAppType;
+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.SectionPart;
 import org.eclipse.ui.forms.widgets.FormToolkit;
 import org.eclipse.ui.forms.widgets.Section;
 
-public class EjbRefSection extends SectionPart {
-    
-    WebAppType plan;
+public class EjbRefSection extends DynamicTableSection {
 
+    /**
+     * @param section
+     */
     public EjbRefSection(Section section) {
         super(section);
-        // TODO Auto-generated constructor stub
     }
 
-    public EjbRefSection(Composite parent, FormToolkit toolkit, int style) {
-        super(parent, toolkit, style);
-        createClient(getSection(), toolkit);
+    /**
+     * @param plan
+     * @param parent
+     * @param toolkit
+     * @param style
+     */
+    public EjbRefSection(EObject plan, Composite parent, FormToolkit toolkit,
+            int style) {
+        super(plan, parent, toolkit, style);
     }
 
-    public void setPlan(WebAppType plan) {
-        this.plan = plan;
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
+     */
+    public String getTitle() {
+        return Messages.editorEjbRefTitle;
     }
 
-    private void createClient(Section section, FormToolkit toolkit) {
-        
+    /*
+     * (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);
+    }
+
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -16,6 +16,8 @@
 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;
@@ -33,51 +35,72 @@
         super(plan, parent, toolkit, style);
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
      */
-    protected String getTitle() {
+    public String getTitle() {
         return Messages.editorResourceEnvRefTitle;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
      */
-    protected String getDescription() {
+    public String getDescription() {
         return Messages.editorResourceEnvRefDescription;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
      */
-    protected EFactory getEFactory() {
+    public EFactory getEFactory() {
         return NamingFactory.eINSTANCE;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
      */
-    protected EReference getEReference() {
+    public EReference getEReference() {
         return WebFactory.eINSTANCE.getWebPackage()
                 .getWebAppType_ResourceEnvRef();
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
      */
-    protected String[] getTableColumnNames() {
+    public String[] getTableColumnNames() {
         return new String[] { Messages.editorResEnvRefNameTitle,
                 Messages.editorResEnvRefMsgDestTitle };
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
      */
-    protected EAttribute[] 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);
     }
 
 }

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=233071&r1=233070&r2=233071&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 Tue Aug 16 15:39:15 2005
@@ -16,6 +16,8 @@
 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;
@@ -33,51 +35,76 @@
         super(plan, parent, toolkit, style);
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
      */
-    protected String getTitle() {
+    public String getTitle() {
         return Messages.editorResourceRefTitle;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
      */
-    protected String getDescription() {
+    public String getDescription() {
         return Messages.editorResourceRefDescription;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
      */
-    protected EFactory getEFactory() {
+    public EFactory getEFactory() {
         return NamingFactory.eINSTANCE;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
      */
-    protected EReference getEReference() {
+    public EReference getEReference() {
         return WebFactory.eINSTANCE.getWebPackage().getWebAppType_ResourceRef();
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
      */
-    protected String[] getTableColumnNames() {
+    public String[] getTableColumnNames() {
         return new String[] { Messages.editorResRefNameTitle,
                 Messages.editorResRefLinkTitle,
                 Messages.editorResRefTargetNameTitle };
     }
 
-    /* (non-Javadoc)
+    public Class getWizardClass() {
+        return ResourceRefWizard.class;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
      */
-    protected EAttribute[] 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);
     }
 
 }

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,145 @@
+/**
+ * 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.xml.ns.security.SecurityFactory;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * 
+ * 
+ */
+public class SecuritySection extends DynamicTableSection {
+
+    /**
+     * @param plan
+     * @param parent
+     * @param toolkit
+     * @param style
+     */
+    public SecuritySection(WebAppType plan, Composite parent,
+            FormToolkit toolkit, int style) {
+        super(plan, parent, toolkit, style);
+     
+    }
+    
+    /**
+     * @return
+     */
+    public String getTitle(){
+        return Messages.editorSectionSecurityRolesTitle;
+    }
+
+    /**
+     * @return
+     */
+    public String getDescription() {
+        return Messages.editorSectionSecurityRolesDescription;
+    }
+
+    /**
+     * @return
+     */
+    public EFactory getEFactory() {
+        return SecurityFactory.eINSTANCE;
+    }
+
+    /**
+     * @return
+     */
+    public EReference getEReference() {
+        return SecurityFactory.eINSTANCE.getSecurityPackage().getRoleMappingsType_Role();
+    }
+
+    /**
+     * @return
+     */
+    public String[] getTableColumnNames() {
+        return new String[0];
+    }
+
+    /**
+     * @return
+     */
+    public EAttribute[] getTableColumnEAttributes() {
+        return new EAttribute[0];
+    }
+
+    /**
+     * @return
+     */
+    public DynamicAddEditWizard getWizard() {
+        return null;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#configureSection(org.eclipse.ui.forms.widgets.Section)
+     */
+    protected void configureSection(Section section) {       
+        section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#createClient(org.eclipse.ui.forms.widgets.Section, org.eclipse.ui.forms.widgets.FormToolkit)
+     */
+    public void createClient(Section section, FormToolkit toolkit) {
+        
+        super.createClient(section, toolkit);       
+        
+        Composite detail = toolkit.createComposite(table.getParent());
+        GridLayout gl = new GridLayout();
+        gl.marginWidth = 4;
+        gl.marginHeight = 8;
+        gl.numColumns = 2;
+        detail.setLayout(gl);
+        detail.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+
+        Label roleNameLabel = toolkit.createLabel(detail, "Name");
+        roleNameLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+        roleNameLabel.setEnabled(true);
+
+        Text roleNameText = toolkit.createText(detail, "", SWT.BORDER);
+        roleNameText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+        roleNameText.setEnabled(true);
+        
+        Label roleDescriptionLabel = toolkit.createLabel(detail, "Description");
+        roleDescriptionLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+        roleDescriptionLabel.setEnabled(true);
+
+        Text roleDescriptionText = toolkit.createText(detail, "", SWT.MULTI | SWT.BORDER);
+        GridData data = new GridData(SWT.FILL, SWT.FILL, true, false);
+        data.heightHint = 50;
+        roleDescriptionText.setLayoutData(data);
+        roleDescriptionText.setEnabled(true);
+
+    }
+    
+   
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
------------------------------------------------------------------------------
    svn:executable = *

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java Tue Aug 16 15:39:15 2005
@@ -34,17 +34,19 @@
 import org.eclipse.ui.forms.widgets.Section;
 
 public class WebGeneralSection extends SectionPart {
-    
+
     protected Text configId;
 
     protected Text parentId;
 
     protected Text contextRoot;
+    
+    protected Text securityRealm;
 
     protected Button cpClassLoaderWebAppFirst;
 
     protected Button cpClassLoaderServerFirst;
-    
+
     WebAppType plan;
 
     public WebGeneralSection(Section section) {
@@ -54,15 +56,16 @@
     public WebGeneralSection(Composite parent, FormToolkit toolkit, int style) {
         super(parent, toolkit, style);
     }
-    
-    public WebGeneralSection(WebAppType plan, Composite parent, FormToolkit toolkit, int style) {
-        this(parent, toolkit, style);        
+
+    public WebGeneralSection(WebAppType plan, Composite parent,
+            FormToolkit toolkit, int style) {
+        this(parent, toolkit, style);
         this.plan = plan;
         createClient(getSection(), toolkit);
     }
-    
+
     private void createClient(Section section, FormToolkit toolkit) {
-        
+
         section.setText(Messages.editorSectionGeneralTitle);
         section.setDescription(Messages.editorSectionGeneralDescription);
         section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
@@ -76,18 +79,17 @@
         layout.horizontalSpacing = 15;
         composite.setLayout(layout);
         composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-        // toolkit.paintBordersFor(composite);
         section.setClient(composite);
 
         // ------- Label and text field for the config Id -------
         createLabel(composite, Messages.editorConfigId, toolkit);
 
-        configId = toolkit.createText(composite, plan.getConfigId(),
-                SWT.BORDER);
+        configId = toolkit
+                .createText(composite, plan.getConfigId(), SWT.BORDER);
         configId.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
         configId.addModifyListener(new ModifyListener() {
             public void modifyText(ModifyEvent e) {
-                plan.setConfigId(configId.getText());                             
+                plan.setConfigId(configId.getText());
                 markDirty();
             }
         });
@@ -95,8 +97,8 @@
         // ------- Label and text field for the parent Id -------
         createLabel(composite, Messages.editorParentId, toolkit);
 
-        parentId = toolkit.createText(composite, plan.getParentId(),
-                SWT.BORDER);
+        parentId = toolkit
+                .createText(composite, plan.getParentId(), SWT.BORDER);
         parentId
                 .setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
         parentId.addModifyListener(new ModifyListener() {
@@ -119,6 +121,21 @@
                 markDirty();
             }
         });
+        
+        
+        // ------- Label and text field for the security realm -------
+        createLabel(composite, Messages.securityRealmName, toolkit);
+
+        securityRealm = toolkit.createText(composite, plan.getSecurityRealmName(),
+                SWT.BORDER);
+        securityRealm.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
+                false));
+        securityRealm.addModifyListener(new ModifyListener() {
+            public void modifyText(ModifyEvent e) {
+                plan.setSecurityRealmName(securityRealm.getText());
+                markDirty();
+            }
+        });
 
         // ------- Label and check box for the Context Priority Classloader
         // -------
@@ -149,7 +166,7 @@
                 plan.setContextPriorityClassloader(cpClassLoaderWebAppFirst
                         .getSelection());
                 markDirty();
-               
+
             }
 
             public void widgetDefaultSelected(SelectionEvent e) {
@@ -157,16 +174,30 @@
             }
         });
 
-        
     }
-    
-    protected Label createLabel(Composite parent, String text, FormToolkit toolkit) {
+
+    protected Label createLabel(Composite parent, String text,
+            FormToolkit toolkit) {
         Label label = toolkit.createLabel(parent, text);
-        label
-                .setForeground(toolkit.getColors().getColor(
-                        FormColors.TITLE));
+        label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
         label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
         return label;
+    }
+
+    /*
+     * (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();
+        }
     }
 
 }

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,193 @@
+/**
+ * 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.wizards;
+
+import org.apache.geronimo.ui.sections.DynamicTableSection;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.swt.widgets.Text;
+
+public abstract class DynamicAddEditWizard extends Wizard {
+
+    DynamicTableSection section;
+
+    EObject eObject;
+
+    /**
+     * 
+     */
+    public DynamicAddEditWizard(DynamicTableSection section) {
+        super();
+        this.section = section;
+        setWindowTitle(getAddWizardWindowTitle());
+    }
+
+    /**
+     * @return
+     */
+    abstract public String getAddWizardWindowTitle();
+
+    /**
+     * @return
+     */
+    abstract public String getEditWizardWindowTitle();
+
+    /**
+     * @return
+     */
+    abstract public String getWizardFirstPageTitle();
+
+    /**
+     * @return
+     */
+    abstract public String getWizardFirstPageDescription();
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.jface.wizard.Wizard#performFinish()
+     */
+    public boolean performFinish() {
+        DynamicWizardPage page = (DynamicWizardPage) getPages()[0];
+
+        boolean isNew = false;
+
+        if (eObject == null) {
+            eObject = section.getEFactory().create(
+                    section.getTableColumnEAttributes()[0]
+                            .getEContainingClass());
+            EObject plan = section.getPlan();
+            ((EList) plan.eGet(section.getEReference())).add(eObject);
+            isNew = true;
+        }
+
+        for (int i = 0; i < section.getTableColumnEAttributes().length; i++) {
+            String value = page.textEntries[i].getText();
+            eObject.eSet(section.getTableColumnEAttributes()[i], value);
+        }
+
+        String[] tableText = section.getTableText(eObject);
+
+        if (isNew) {
+            TableItem item = new TableItem(section.getTableViewer().getTable(),
+                    SWT.NONE);
+            item.setImage(section.getImage());
+            item.setData(eObject);
+            item.setText(tableText);
+        } else {
+            int index = section.getTableViewer().getTable().getSelectionIndex();
+            if (index != -1) {
+                TableItem item = section.getTableViewer().getTable().getItem(
+                        index);
+                item.setText(tableText);
+            }
+        }
+
+        return true;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.jface.wizard.IWizard#addPages()
+     */
+    public void addPages() {
+        WizardPage page = new DynamicWizardPage("Page0");
+        addPage(page);
+    }
+
+    /**
+     * @param section
+     */
+    public void setSection(DynamicTableSection section) {
+        this.section = section;
+    }
+
+    /**
+     * @param object
+     */
+    public void setEObject(EObject object) {
+        eObject = object;
+    }
+
+    public class DynamicWizardPage extends WizardPage {
+
+        Text[] textEntries = new Text[section.getTableColumnEAttributes().length];
+
+        public DynamicWizardPage(String pageName) {
+            super(pageName);
+            setTitle(getWizardFirstPageTitle());
+            setDescription(getWizardFirstPageDescription());
+        }
+
+        public DynamicWizardPage(String pageName, String title,
+                ImageDescriptor titleImage) {
+            super(pageName, title, titleImage);
+        }
+
+        public void createControl(Composite parent) {
+            Composite composite = new Composite(parent, SWT.NULL);
+            GridLayout layout = new GridLayout();
+            layout.numColumns = 2;
+            composite.setLayout(layout);
+            GridData data = new GridData();
+            data.verticalAlignment = GridData.FILL;
+            data.horizontalAlignment = GridData.FILL;
+            data.widthHint = 300;
+            composite.setLayoutData(data);
+
+            for (int i = 0; i < section.getTableColumnNames().length; i++) {
+                Label label = new Label(composite, SWT.LEFT);
+                label.setText(section.getTableColumnNames()[i] + ":");
+                data = new GridData();
+                data.horizontalAlignment = GridData.FILL;
+                label.setLayoutData(data);
+
+                Text text = new Text(composite, SWT.SINGLE | SWT.BORDER);
+                data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
+                        | GridData.VERTICAL_ALIGN_FILL);
+                data.grabExcessHorizontalSpace = true;
+                data.widthHint = 100;
+                text.setLayoutData(data);
+
+                if (eObject != null) {
+                    String value = (String) eObject.eGet(section
+                            .getTableColumnEAttributes()[i]);
+                    if (value != null) {
+                        text.setText(value);
+                    }
+                }
+                textEntries[i] = text;
+            }
+
+            setControl(composite);
+
+            textEntries[0].setFocus();
+
+        }
+
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbLocalRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbLocalRefWizard.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbLocalRefWizard.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbLocalRefWizard.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,56 @@
+/**
+ * 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.wizards;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.sections.DynamicTableSection;
+
+public class EjbLocalRefWizard extends DynamicAddEditWizard {
+
+    public EjbLocalRefWizard(DynamicTableSection section) {
+        super(section);
+        // TODO Auto-generated constructor stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+     */
+    public String getAddWizardWindowTitle() {
+        return Messages.wizardNewTitle_EjbLocalRef;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+     */
+    public String getEditWizardWindowTitle() {
+        return Messages.wizardEditTitle_EjbLocalRef;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+     */
+    public String getWizardFirstPageTitle() {
+        return Messages.wizardPageTitle_EjbLocalRef;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+     */
+    public String getWizardFirstPageDescription() {
+        return Messages.wizardPageDescription_EjbLocalRef;
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbLocalRefWizard.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbRefWizard.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbRefWizard.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbRefWizard.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,64 @@
+/**
+ * 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.wizards;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.sections.DynamicTableSection;
+
+public class EjbRefWizard extends DynamicAddEditWizard {
+
+    public EjbRefWizard(DynamicTableSection section) {
+        super(section);
+        // TODO Auto-generated constructor stub
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+     */
+    public String getAddWizardWindowTitle() {
+        return Messages.wizardNewTitle_EjbRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+     */
+    public String getEditWizardWindowTitle() {
+        return Messages.wizardEditTitle_EjbRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+     */
+    public String getWizardFirstPageTitle() {
+        return Messages.wizardPageTitle_EjbRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+     */
+    public String getWizardFirstPageDescription() {
+        return Messages.wizardPageDescription_EjbRef;
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/EjbRefWizard.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,66 @@
+/**
+ * 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.wizards;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.sections.DynamicTableSection;
+
+public class ResourceEnvRefWizard extends DynamicAddEditWizard {
+
+    /**
+     * @param section
+     */
+    public ResourceEnvRefWizard(DynamicTableSection section) {
+        super(section);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+     */
+    public String getAddWizardWindowTitle() {
+        return Messages.wizardPageTitle_ResEnvRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+     */
+    public String getEditWizardWindowTitle() {
+        return Messages.wizardEditTitle_ResEnvRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+     */
+    public String getWizardFirstPageTitle() {
+        return Messages.wizardPageTitle_ResEnvRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+     */
+    public String getWizardFirstPageDescription() {
+        return Messages.wizardPageDescription_ResEnvRef;
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,66 @@
+/**
+ * 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.wizards;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.sections.DynamicTableSection;
+
+public class ResourceRefWizard extends DynamicAddEditWizard {
+
+    /**
+     * @param section
+     */
+    public ResourceRefWizard(DynamicTableSection section) {
+        super(section);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+     */
+    public String getAddWizardWindowTitle() {
+        return Messages.wizardPageTitle_ResRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+     */
+    public String getEditWizardWindowTitle() {
+        return Messages.wizardEditTitle_ResRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+     */
+    public String getWizardFirstPageTitle() {
+        return Messages.wizardPageTitle_ResRef;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+     */
+    public String getWizardFirstPageDescription() {
+        return Messages.wizardPageDescription_ResRef;
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message