geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r326720 - in /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui: internal/ pages/ sections/ wizards/
Date Wed, 19 Oct 2005 21:50:10 GMT
Author: sppatel
Date: Wed Oct 19 14:50:04 2005
New Revision: 326720

URL: http://svn.apache.org/viewcvs?rev=326720&view=rev
Log:
add import section

Added:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/AppGeneralPage.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/ConnectorOverviewPage.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/EjbOverviewPage.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DependencySection.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.java
Wed Oct 19 14:50:04 2005
@@ -71,6 +71,12 @@
     public static String editorSectionDependenciesDescription;
     
     //
+    
+    public static String editorSectionImportTitle;
+
+    public static String editorSectionImportDescription;
+    
+    //
 
     public static String editorResourceRefDescription;
 
@@ -180,6 +186,16 @@
     
     public static String version;
 
+    //
+    
+    public static String wizardNewTitle_Import;
+
+    public static String wizardEditTitle_Import;
+
+    public static String wizardPageTitle_Import;
+
+    public static String wizardPageDescription_Import;        
+    
     //
 
     public static String wizardNewTitle_SecurityRole;

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/Messages.properties
Wed Oct 19 14:50:04 2005
@@ -10,6 +10,9 @@
 editorSectionDependenciesTitle=Dependencies
 editorSectionDependenciesDescription=The following dependencies are defined as common libraries.
 
+editorSectionImportTitle=Imports
+editorSectionImportDescription=The following configurations are imported into this plan.
+
 editorSectionSecurityTitle=Security
 editorSectionSecurityDescription=Specify the security settings.
 username=User ID:
@@ -75,6 +78,11 @@
 wizardEditTitle_Dependency=Edit Dependency
 wizardPageTitle_Dependency=Dependency Details
 wizardPageDescription_Dependency=Provide details for this dependency.
+
+wizardNewTitle_Import=New Import
+wizardEditTitle_Import=Edit Import
+wizardPageTitle_Import=Import Details
+wizardPageDescription_Import=Provide the URI for the configuration to import.
 
 doasCurrentCaller=Do as current caller
 useContextHandler=Use context handler

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/AppGeneralPage.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/AppGeneralPage.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/AppGeneralPage.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/AppGeneralPage.java
Wed Oct 19 14:50:04 2005
@@ -18,6 +18,7 @@
 import org.apache.geronimo.ui.editors.ApplicationPlanEditor;
 import org.apache.geronimo.ui.sections.AppGeneralSection;
 import org.apache.geronimo.ui.sections.DependencySection;
+import org.apache.geronimo.ui.sections.ImportSection;
 import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
 import org.apache.geronimo.xml.ns.j2ee.application.ApplicationType;
 import org.eclipse.swt.layout.GridLayout;
@@ -54,20 +55,15 @@
      * @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;
         layout.makeColumnsEqualWidth = true;
-
         form.getBody().setLayout(layout);
-
         fillBody(managedForm);
-
         form.reflow(true);
-
     }
 
     private void fillBody(IManagedForm managedForm) {
@@ -86,6 +82,10 @@
 
         managedForm.addPart(new DependencySection(plan,
                 ApplicationPackage.eINSTANCE.getApplicationType_Dependency(),
+                body, managedForm.getToolkit(), style));
+        
+        managedForm.addPart(new ImportSection(plan,
+                ApplicationPackage.eINSTANCE.getApplicationType_Import(),
                 body, managedForm.getToolkit(), style));
     }
 

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/ConnectorOverviewPage.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/ConnectorOverviewPage.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/ConnectorOverviewPage.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/ConnectorOverviewPage.java
Wed Oct 19 14:50:04 2005
@@ -17,8 +17,12 @@
 
 import org.apache.geronimo.ui.editors.ConnectorPlanEditor;
 import org.apache.geronimo.ui.sections.ConnectorGeneralSection;
+import org.apache.geronimo.ui.sections.DependencySection;
+import org.apache.geronimo.ui.sections.ImportSection;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
 import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorType;
 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;
@@ -44,28 +48,45 @@
     public ConnectorOverviewPage(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) {
+        ScrolledForm form = managedForm.getForm();
+        form.setText(getTitle());
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 2;
+        layout.horizontalSpacing = 20;
+        layout.makeColumnsEqualWidth = true;
+        form.getBody().setLayout(layout);
+        fillBody(managedForm);
+        form.reflow(true);
+    }
+
+    protected void fillBody(IManagedForm managedForm) {
 
         ConnectorType plan = (ConnectorType) ((ConnectorPlanEditor) getEditor())
                 .getDeploymentPlan();
 
-        ScrolledForm form = managedForm.getForm();
-        form.setText(getTitle());
-        form.getBody().setLayout(new GridLayout());
-
-        ConnectorGeneralSection sec = new ConnectorGeneralSection(form
-                .getBody(), managedForm.getToolkit(),
-                ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
-                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                        | ExpandableComposite.FOCUS_TITLE, plan);
-        managedForm.addPart(sec);
+        Composite body = managedForm.getForm().getBody();
 
-        form.reflow(true);
+        int style = ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
+                | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
+                | ExpandableComposite.FOCUS_TITLE;
+
+        managedForm.addPart(new ConnectorGeneralSection(body, managedForm
+                .getToolkit(), style, plan));
+
+        managedForm.addPart(new DependencySection(plan,
+                ConnectorPackage.eINSTANCE.getConnectorType_Dependency(), body,
+                managedForm.getToolkit(), style));
+
+        managedForm.addPart(new ImportSection(plan, ConnectorPackage.eINSTANCE
+                .getConnectorType_Import(), body, managedForm.getToolkit(),
+                style));
     }
-
 
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/EjbOverviewPage.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/EjbOverviewPage.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/EjbOverviewPage.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/EjbOverviewPage.java
Wed Oct 19 14:50:04 2005
@@ -16,14 +16,18 @@
 package org.apache.geronimo.ui.pages;
 
 import org.apache.geronimo.ui.editors.OpenEjbPlanEditor;
+import org.apache.geronimo.ui.sections.DependencySection;
+import org.apache.geronimo.ui.sections.ImportSection;
 import org.apache.geronimo.ui.sections.OpenEjbJarGeneralSection;
 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;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
 import org.openejb.xml.ns.openejb.jar.OpenejbJarType;
 
 public class EjbOverviewPage extends FormPage {
@@ -45,28 +49,43 @@
         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) {
+        ScrolledForm form = managedForm.getForm();
+        form.setText(getTitle());
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 2;
+        layout.horizontalSpacing = 20;
+        layout.makeColumnsEqualWidth = true;
+        form.getBody().setLayout(layout);
+        fillBody(managedForm);
+        form.reflow(true);
+    }
+
+    protected void fillBody(IManagedForm managedForm) {
 
         OpenejbJarType plan = (OpenejbJarType) ((OpenEjbPlanEditor) getEditor())
                 .getDeploymentPlan();
 
-        ScrolledForm form = managedForm.getForm();
-        form.setText(getTitle());
-        form.getBody().setLayout(new GridLayout());
+        Composite body = managedForm.getForm().getBody();
 
-        OpenEjbJarGeneralSection sec = new OpenEjbJarGeneralSection(form
-                .getBody(), managedForm.getToolkit(),
-                ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
-                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
-                        | ExpandableComposite.FOCUS_TITLE, plan);
-        managedForm.addPart(sec);
+        int style = ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
+                | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
+                | ExpandableComposite.FOCUS_TITLE;
+
+        managedForm.addPart(new OpenEjbJarGeneralSection(body,
+                managedForm.getToolkit(), style, plan));
+        
+        managedForm.addPart(new DependencySection(plan,
+                JarPackage.eINSTANCE.getOpenejbJarType_Dependency(), body,
+                managedForm.getToolkit(), style));
+
+        managedForm.addPart(new ImportSection(plan, JarPackage.eINSTANCE
+                .getOpenejbJarType_Import(), body, managedForm.getToolkit(),
+                style));
 
-        form.reflow(true);
     }
 
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/pages/WebGeneralPage.java
Wed Oct 19 14:50:04 2005
@@ -17,6 +17,7 @@
 
 import org.apache.geronimo.ui.editors.WebEditor;
 import org.apache.geronimo.ui.sections.DependencySection;
+import org.apache.geronimo.ui.sections.ImportSection;
 import org.apache.geronimo.ui.sections.WebGeneralSection;
 import org.apache.geronimo.xml.ns.web.WebAppType;
 import org.apache.geronimo.xml.ns.web.WebPackage;
@@ -68,5 +69,9 @@
         managedForm.addPart(new DependencySection(plan, WebPackage.eINSTANCE
                 .getWebAppType_Dependency(), body, managedForm.getToolkit(),
                 style));
+        
+        managedForm.addPart(new ImportSection(plan,
+                WebPackage.eINSTANCE.getWebAppType_Import(), body,
+                managedForm.getToolkit(), style));
     }
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DependencySection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DependencySection.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DependencySection.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/DependencySection.java
Wed Oct 19 14:50:04 2005
@@ -97,7 +97,7 @@
      * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
      */
     public String[] getTableColumnNames() {
-        return new String[] { Messages.name };
+        return new String[] {};
     }
 
     /*

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java?rev=326720&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
(added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
Wed Oct 19 14:50:04 2005
@@ -0,0 +1,126 @@
+/**
+ * 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.ImportWizard;
+import org.apache.geronimo.xml.ns.deployment.DeploymentFactory;
+import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
+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.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class ImportSection extends DynamicTableSection {
+
+	private EReference importERef;
+
+	/**
+	 * @param section
+	 */
+	public ImportSection(Section section) {
+		super(section);
+	}
+
+	/**
+	 * @param plan
+	 * @param parent
+	 * @param toolkit
+	 * @param style
+	 */
+	public ImportSection(EObject plan, EReference importERef, Composite parent,
+			FormToolkit toolkit, int style) {
+		super(plan, parent, toolkit, style);
+		this.importERef = importERef;
+		create();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorSectionImportTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorSectionImportDescription;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEFactory()
+	 */
+	public EFactory getEFactory() {
+		return DeploymentFactory.eINSTANCE;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return importERef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return new String[] {Messages.uri};
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getTableColumnEAttributes()
+	 */
+	public EAttribute[] getTableColumnEAttributes() {
+		 return new EAttribute[] {
+	                DeploymentPackage.eINSTANCE.getDependencyType_Uri()};
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		   return new ImportWizard(this);
+	}
+	
+    /* (non-Javadoc)
+     * @see org.apache.geronimo.ui.sections.DynamicTableSection#isHeaderVisible()
+     */
+    public boolean isHeaderVisible() {
+        return false;
+    }
+
+}

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java?rev=326720&r1=326719&r2=326720&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DynamicAddEditWizard.java
Wed Oct 19 14:50:04 2005
@@ -161,7 +161,10 @@
 
             for (int i = 0; i < section.getTableColumnNames().length; i++) {
                 Label label = new Label(composite, SWT.LEFT);
-                label.setText(section.getTableColumnNames()[i] + ":");
+                String columnName = section.getTableColumnNames()[i];
+                if(!columnName.endsWith(":"))
+                    columnName = columnName.concat(":");
+                label.setText(columnName);
                 data = new GridData();
                 data.horizontalAlignment = GridData.FILL;
                 label.setLayoutData(data);

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java?rev=326720&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
(added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
Wed Oct 19 14:50:04 2005
@@ -0,0 +1,58 @@
+/**
+ * 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 ImportWizard extends DynamicAddEditWizard {
+
+	/**
+	 * @param section
+	 */
+	public ImportWizard(DynamicTableSection section) {
+		super(section);
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+	 */
+	public String getAddWizardWindowTitle() {
+		 return Messages.wizardNewTitle_Import;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+	 */
+	public String getEditWizardWindowTitle() {
+		 return Messages.wizardEditTitle_Import;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+	 */
+	public String getWizardFirstPageTitle() {
+		 return Messages.wizardPageTitle_Import;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+	 */
+	public String getWizardFirstPageDescription() {
+		 return Messages.wizardPageDescription_Import;
+	}
+
+}



Mime
View raw message