Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 51236 invoked from network); 27 Jun 2008 21:04:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2008 21:04:42 -0000 Received: (qmail 90031 invoked by uid 500); 27 Jun 2008 21:04:43 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 89979 invoked by uid 500); 27 Jun 2008 21:04:42 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 89970 invoked by uid 99); 27 Jun 2008 21:04:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 14:04:42 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 21:04:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 96AC72388A06; Fri, 27 Jun 2008 14:04:20 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r672394 - in /geronimo/devtools/eclipse-plugin/trunk/plugins: org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/ org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/jaxb/ org.apache.geronim... Date: Fri, 27 Jun 2008 21:04:20 -0000 To: scm@geronimo.apache.org From: mcconne@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080627210420.96AC72388A06@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mcconne Date: Fri Jun 27 14:04:19 2008 New Revision: 672394 URL: http://svn.apache.org/viewvc?rev=672394&view=rev Log: GERONIMODEVTOOLS-404 Clean up appclient dependency sections in the deployment plan editors -- Thanks to BJ Reed for this patch !! Removed: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/AppClientClientDependencySection.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/AppClientServerDependencySection.java Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/jaxb/JAXBModelUtils.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/pages/AppClientDeploymentPage.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/DependencySection.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DependencyWizard.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ImportWizard.java Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java Fri Jun 27 14:04:19 2008 @@ -142,8 +142,6 @@ public static String editorSectionDependenciesDescription; public static String editorSectionClientDependenciesTitle; public static String editorSectionClientDependenciesDescription; - public static String editorSectionServerDependenciesTitle; - public static String editorSectionServerDependenciesDescription; // public static String editorSectionMessageDestTitle; public static String editorSectionMessageDestDescription; Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties Fri Jun 27 14:04:19 2008 @@ -39,12 +39,10 @@ editorSectionSecurityRolesTitle=Security Roles editorSectionSecurityRolesDescription=The following security roles are defined: -editorSectionDependenciesTitle=Dependencies -editorSectionDependenciesDescription=The following dependencies are defined as common libraries. +editorSectionDependenciesTitle=Server Dependencies +editorSectionDependenciesDescription=The following server dependencies are defined as common libraries. editorSectionClientDependenciesTitle=Client Dependencies editorSectionClientDependenciesDescription=The following client dependencies are defined as common libraries. -editorSectionServerDependenciesTitle=Server Dependencies -editorSectionServerDependenciesDescription=The following server dependencies are defined as common libraries. editorSectionMessageDestTitle=Message Destinations editorSectionMessageDestDescription=The following message destinations are defined: Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/jaxb/JAXBModelUtils.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/jaxb/JAXBModelUtils.java?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/jaxb/JAXBModelUtils.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/jaxb/JAXBModelUtils.java Fri Jun 27 14:04:19 2008 @@ -77,67 +77,65 @@ ((OpenejbJar)plan).setSecurity((new org.apache.geronimo.jee.security.ObjectFactory()).createSecurity( security ) ); } } - + public static Environment getEnvironment(JAXBElement element) { - Object plan = element.getValue(); - if (WebApp.class.isInstance (plan)) { - return ((WebApp)plan).getEnvironment() == null ? null : ((WebApp)plan).getEnvironment(); - } - else if (Application.class.isInstance (plan)) { - return ((Application)plan).getEnvironment() == null ? null : ((Application)plan).getEnvironment(); - } - else if (OpenejbJar.class.isInstance (plan)) { - return ((OpenejbJar)plan).getEnvironment() == null ? null : ((OpenejbJar)plan).getEnvironment(); - } - else if (Connector.class.isInstance (plan)) { - return ((Connector)plan).getEnvironment() == null ? null : ((Connector)plan).getEnvironment(); - } - return null; - } - - public static void setEnvironment (JAXBElement element, Environment environment) { - Object plan = element.getValue(); - if (WebApp.class.isInstance (plan)) { - ((WebApp)plan).setEnvironment (environment); - } - else if (Application.class.isInstance (plan)) { - ((Application)plan).setEnvironment (environment); - } - else if (OpenejbJar.class.isInstance (plan)) { - ((OpenejbJar)plan).setEnvironment (environment); - } - else if (Connector.class.isInstance (plan)) { - ((Connector)plan).setEnvironment (environment); - } + return getEnvironment (element, true); } - public static Environment getClientEnvironment(JAXBElement element) { - Object plan = element.getValue(); - if (ApplicationClient.class.isInstance (plan)) { - return ((ApplicationClient)plan).getClientEnvironment() == null ? null : ((ApplicationClient)plan).getClientEnvironment(); - } - return null; - } - - public static void setClientEnvironment (JAXBElement element, Environment environment) { + public static Environment getEnvironment(JAXBElement element, boolean serverEnvironment) { Object plan = element.getValue(); - if (ApplicationClient.class.isInstance (plan)) { - ((ApplicationClient)plan).setClientEnvironment (environment); + if (serverEnvironment == true) { + if (WebApp.class.isInstance (plan)) { + return ((WebApp)plan).getEnvironment() == null ? null : ((WebApp)plan).getEnvironment(); + } + else if (Application.class.isInstance (plan)) { + return ((Application)plan).getEnvironment() == null ? null : ((Application)plan).getEnvironment(); + } + else if (OpenejbJar.class.isInstance (plan)) { + return ((OpenejbJar)plan).getEnvironment() == null ? null : ((OpenejbJar)plan).getEnvironment(); + } + else if (Connector.class.isInstance (plan)) { + return ((Connector)plan).getEnvironment() == null ? null : ((Connector)plan).getEnvironment(); + } + else if (ApplicationClient.class.isInstance (plan)) { + return ((ApplicationClient)plan).getServerEnvironment() == null ? null : ((ApplicationClient)plan).getServerEnvironment(); + } + } + else { + if (ApplicationClient.class.isInstance (plan)) { + return ((ApplicationClient)plan).getClientEnvironment() == null ? null : ((ApplicationClient)plan).getClientEnvironment(); + } } + return null; } - public static Environment getServerEnvironment(JAXBElement element) { - Object plan = element.getValue(); - if (ApplicationClient.class.isInstance (plan)) { - return ((ApplicationClient)plan).getServerEnvironment() == null ? null : ((ApplicationClient)plan).getServerEnvironment(); - } - return null; + public static void setEnvironment (JAXBElement element, Environment environment) { + setEnvironment (element, environment, true); } - - public static void setServerEnvironment (JAXBElement element, Environment environment) { + + public static void setEnvironment (JAXBElement element, Environment environment, boolean serverEnvironment) { Object plan = element.getValue(); - if (ApplicationClient.class.isInstance (plan)) { - ((ApplicationClient)plan).setServerEnvironment (environment); + if (serverEnvironment == true) { + if (WebApp.class.isInstance (plan)) { + ((WebApp)plan).setEnvironment (environment); + } + else if (Application.class.isInstance (plan)) { + ((Application)plan).setEnvironment (environment); + } + else if (OpenejbJar.class.isInstance (plan)) { + ((OpenejbJar)plan).setEnvironment (environment); + } + else if (Connector.class.isInstance (plan)) { + ((Connector)plan).setEnvironment (environment); + } + else if (ApplicationClient.class.isInstance (plan)) { + ((ApplicationClient)plan).setServerEnvironment (environment); + } + } + else { + if (ApplicationClient.class.isInstance (plan)) { + ((ApplicationClient)plan).setClientEnvironment (environment); + } } } Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/pages/AppClientDeploymentPage.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/pages/AppClientDeploymentPage.java?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/pages/AppClientDeploymentPage.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/pages/AppClientDeploymentPage.java Fri Jun 27 14:04:19 2008 @@ -18,8 +18,7 @@ import org.apache.geronimo.st.ui.CommonMessages; import org.apache.geronimo.st.v21.core.jaxb.JAXBModelUtils; -import org.apache.geronimo.st.v21.ui.sections.AppClientClientDependencySection; -import org.apache.geronimo.st.v21.ui.sections.AppClientServerDependencySection; +import org.apache.geronimo.st.v21.ui.sections.DependencySection; import org.apache.geronimo.st.v21.ui.sections.GBeanSection; import org.eclipse.ui.forms.IManagedForm; import org.eclipse.ui.forms.editor.FormEditor; @@ -36,8 +35,8 @@ * @see org.apache.geronimo.ui.pages.AbstractGeronimoFormPage#fillBody(org.eclipse.ui.forms.IManagedForm) */ protected void fillBody(IManagedForm managedForm) { - managedForm.addPart(new AppClientClientDependencySection(getDeploymentPlan(), JAXBModelUtils.getClientEnvironment(getDeploymentPlan()), body, toolkit, getStyle())); - managedForm.addPart(new AppClientServerDependencySection(getDeploymentPlan(), JAXBModelUtils.getServerEnvironment(getDeploymentPlan()), body, toolkit, getStyle())); + managedForm.addPart(new DependencySection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan(), true), body, toolkit, getStyle(), true)); + managedForm.addPart(new DependencySection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan(), false), body, toolkit, getStyle(), false)); managedForm.addPart(new GBeanSection(getDeploymentPlan(), JAXBModelUtils.getGbeans(getDeploymentPlan()), body, toolkit, getStyle())); } Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/DependencySection.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/DependencySection.java?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/DependencySection.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/DependencySection.java Fri Jun 27 14:04:19 2008 @@ -38,6 +38,8 @@ protected Environment environment; + protected boolean isServerEnvironment; + /** * @param plan * @param parent @@ -47,6 +49,24 @@ public DependencySection(JAXBElement plan, Environment environment, Composite parent, FormToolkit toolkit, int style) { super(plan, parent, toolkit, style); this.environment = environment; + this.isServerEnvironment = true; + this.COLUMN_NAMES = new String[] { + CommonMessages.artifactId, CommonMessages.groupId, CommonMessages.version, CommonMessages.type + }; + createClient(); + } + + /** + * @param plan + * @param parent + * @param toolkit + * @param style + * @param envType + */ + public DependencySection(JAXBElement plan, Environment environment, Composite parent, FormToolkit toolkit, int style, boolean isServerEnvironment) { + super(plan, parent, toolkit, style); + this.environment = environment; + this.isServerEnvironment = isServerEnvironment; this.COLUMN_NAMES = new String[] { CommonMessages.artifactId, CommonMessages.groupId, CommonMessages.version, CommonMessages.type }; @@ -54,11 +74,17 @@ } public String getTitle() { - return CommonMessages.editorSectionDependenciesTitle; + if (isServerEnvironment) + return CommonMessages.editorSectionDependenciesTitle; + else + return CommonMessages.editorSectionClientDependenciesTitle; } public String getDescription() { - return CommonMessages.editorSectionDependenciesDescription; + if (isServerEnvironment) + return CommonMessages.editorSectionDependenciesDescription; + else + return CommonMessages.editorSectionClientDependenciesDescription; } public List getObjectContainer() { @@ -74,7 +100,7 @@ } public Wizard getWizard() { - return new DependencyWizard(this); + return new DependencyWizard(this, isServerEnvironment); } public ImageDescriptor getImageDescriptor() { Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DependencyWizard.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DependencyWizard.java?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DependencyWizard.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DependencyWizard.java Fri Jun 27 14:04:19 2008 @@ -24,16 +24,17 @@ import org.apache.geronimo.st.ui.wizards.AbstractTableWizard; import org.apache.geronimo.st.v21.core.jaxb.JAXBModelUtils; import org.apache.geronimo.st.v21.core.jaxb.JAXBObjectFactoryImpl; -import org.apache.geronimo.st.v21.ui.sections.AppClientClientDependencySection; -import org.apache.geronimo.st.v21.ui.sections.AppClientServerDependencySection; import org.apache.geronimo.jee.deployment.Dependency; import org.apache.geronimo.jee.deployment.Dependencies; import org.apache.geronimo.jee.deployment.Environment; public class DependencyWizard extends AbstractTableWizard { - public DependencyWizard(AbstractTableSection section) { + protected boolean isServerEnvironment; + + public DependencyWizard(AbstractTableSection section, boolean isServerEnvironment) { super(section); + this.isServerEnvironment = isServerEnvironment; } public JAXBObjectFactory getEFactory() { @@ -71,20 +72,10 @@ JAXBElement plan = section.getPlan(); Environment environment = null; - if (AppClientClientDependencySection.class.isInstance(section)) - environment = JAXBModelUtils.getClientEnvironment(plan); - else if (AppClientServerDependencySection.class.isInstance(section)) - environment = JAXBModelUtils.getServerEnvironment(plan); - else - environment = JAXBModelUtils.getEnvironment(plan); + environment = JAXBModelUtils.getEnvironment(plan, isServerEnvironment); if (environment == null) { environment = (Environment)getEFactory().create(Environment.class); - if (AppClientClientDependencySection.class.isInstance(section)) - JAXBModelUtils.setClientEnvironment (plan, environment); - else if (AppClientServerDependencySection.class.isInstance(section)) - JAXBModelUtils.setServerEnvironment (plan, environment); - else - JAXBModelUtils.setEnvironment (plan, environment); + JAXBModelUtils.setEnvironment (plan, environment, isServerEnvironment); } Dependencies dependencies = environment.getDependencies(); Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ImportWizard.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ImportWizard.java?rev=672394&r1=672393&r2=672394&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ImportWizard.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ImportWizard.java Fri Jun 27 14:04:19 2008 @@ -1,67 +1,67 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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.st.v21.ui.wizards; - -import org.apache.geronimo.st.ui.CommonMessages; -import org.apache.geronimo.st.ui.sections.AbstractTableSection; - -public class ImportWizard extends DependencyWizard { - - /** - * @param section - */ - public ImportWizard(AbstractTableSection section) { - super(section); - } - - /* - * (non-Javadoc) - * - * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle() - */ - public String getAddWizardWindowTitle() { - return CommonMessages.wizardNewTitle_Import; - } - - /* - * (non-Javadoc) - * - * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle() - */ - public String getEditWizardWindowTitle() { - return CommonMessages.wizardEditTitle_Import; - } - - /* - * (non-Javadoc) - * - * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle() - */ - public String getWizardFirstPageTitle() { - return CommonMessages.wizardPageTitle_Import; - } - - /* - * (non-Javadoc) - * - * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription() - */ - public String getWizardFirstPageDescription() { - return CommonMessages.wizardPageDescription_Import; - } - -} +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.st.v21.ui.wizards; + +import org.apache.geronimo.st.ui.CommonMessages; +import org.apache.geronimo.st.ui.sections.AbstractTableSection; + +public class ImportWizard extends DependencyWizard { + + /** + * @param section + */ + public ImportWizard(AbstractTableSection section) { + super(section, true); + } + + /* + * (non-Javadoc) + * + * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle() + */ + public String getAddWizardWindowTitle() { + return CommonMessages.wizardNewTitle_Import; + } + + /* + * (non-Javadoc) + * + * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle() + */ + public String getEditWizardWindowTitle() { + return CommonMessages.wizardEditTitle_Import; + } + + /* + * (non-Javadoc) + * + * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle() + */ + public String getWizardFirstPageTitle() { + return CommonMessages.wizardPageTitle_Import; + } + + /* + * (non-Javadoc) + * + * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription() + */ + public String getWizardFirstPageDescription() { + return CommonMessages.wizardPageDescription_Import; + } + +}