Author: snjeza
Date: 2009-12-10 18:14:28 -0500 (Thu, 10 Dec 2009)
New Revision: 19199
Added:
trunk/maven/plugins/org.jboss.tools.maven.core/plugin.properties
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/Messages.java
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/messages.properties
trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.properties
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/Messages.java
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/messages.properties
trunk/maven/plugins/org.jboss.tools.maven.ui/plugin.properties
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/Messages.java
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/messages.properties
Modified:
trunk/maven/plugins/org.jboss.tools.maven.core/META-INF/MANIFEST.MF
trunk/maven/plugins/org.jboss.tools.maven.core/build.properties
trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/ProjectFacetsFactoryTester.java
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDataModelProvider.java
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDelegate.java
trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF
trunk/maven/plugins/org.jboss.tools.maven.seam/build.properties
trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/JSFProjectConfigurator.java
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/PortletProjectConfigurator.java
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/preferences/SeamConfiguratorPreferencePage.java
trunk/maven/plugins/org.jboss.tools.maven.ui/META-INF/MANIFEST.MF
trunk/maven/plugins/org.jboss.tools.maven.ui/build.properties
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/AutoResizeTableLayout.java
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/DependencyEditingSupport.java
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/ExclusionEditingSupport.java
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/MavenUserLibraryProviderInstallPanel.java
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5439 Internationalize Maven feature and plugins
Modified: trunk/maven/plugins/org.jboss.tools.maven.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/META-INF/MANIFEST.MF 2009-12-10
21:02:27 UTC (rev 19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/META-INF/MANIFEST.MF 2009-12-10
23:14:28 UTC (rev 19199)
@@ -1,8 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: JBoss Maven Core
+Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.jboss.tools.maven.core; singleton:=true
Bundle-Version: 1.0.0.qualifier
+Bundle-Localization: plugin
Bundle-Activator: org.jboss.tools.maven.core.MavenCoreActivator
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.wst.common.project.facet.core;visibility:=reexport,
@@ -24,7 +25,7 @@
org.eclipse.core.expressions
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: JBoss by Red Hat
+Bundle-Vendor: %Bundle-Vendor
Export-Package: org.jboss.tools.maven.core,
org.jboss.tools.maven.core.internal.project.facet,
org.jboss.tools.maven.core.libprov
Modified: trunk/maven/plugins/org.jboss.tools.maven.core/build.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/build.properties 2009-12-10 21:02:27
UTC (rev 19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/build.properties 2009-12-10 23:14:28
UTC (rev 19199)
@@ -3,4 +3,6 @@
bin.includes = META-INF/,\
.,\
plugin.xml,\
- poms/
+ poms/,\
+ OSGI-INF/l10n/bundle.properties,\
+ plugin.properties
Added: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/plugin.properties
(rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/plugin.properties 2009-12-10 23:14:28
UTC (rev 19199)
@@ -0,0 +1,13 @@
+#Properties file for org.jboss.tools.maven.core
+Bundle-Vendor = JBoss by Red Hat
+Bundle-Name = JBoss Maven Core
+JBoss_Maven_Integration=JBoss Maven Integration
+Adds_support_for_Maven=Adds support for Maven.
+Maven_library_provider=Maven library provider
+Maven_JSF_1_2_Libraries=Maven JSF 1.2 Libraries
+Maven_JSF_1_1_Libraries=Maven JSF 1.1 Libraries
+Hibernate_3_3_2_Libraries=Hibernate 3.3.2 Libraries
+Maven_Portlet_1_0_Libraries=Maven Portlet 1.0 Libraries
+Maven_Portlet_2_0_Libraries=Maven Portlet 2.0 Libraries
+Maven_Portletbridge_2_0_0_ALPHA_Libraries=Maven Portletbridge 2.0.0 ALPHA Libraries
+Maven_Portletbridge_2_0_0_ALPHA_Libraries_with_Dependencies=Maven Portletbridge 2.0.0
ALPHA Libraries with Dependencies
\ No newline at end of file
Modified: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-12-10 21:02:27 UTC (rev
19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-12-10 23:14:28 UTC (rev
19199)
@@ -5,9 +5,9 @@
<extension point="org.eclipse.wst.common.project.facet.core.facets">
<project-facet id="jboss.m2">
- <label>JBoss Maven Integration</label>
+ <label>%JBoss_Maven_Integration</label>
<description>
- Adds support for Maven.
+ %Adds_support_for_Maven
</description>
<default-version version="1.0"/>
</project-facet>
@@ -41,7 +41,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="maven-library-provider" abstract="true">
- <label>Maven library provider</label>
+ <label>%Maven_library_provider</label>
<priority>500</priority>
<action type="INSTALL">
<config
class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperationConfig"/>
@@ -67,7 +67,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="jsf12-maven-library-provider"
extends="maven-library-provider">
- <label>Maven JSF 1.2 Libraries</label>
+ <label>%Maven_JSF_1_2_Libraries</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/jsf-template12.xml"/>
<enablement>
<and>
@@ -84,7 +84,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="jsf11-maven-library-provider"
extends="maven-library-provider">
- <label>Maven JSF 1.1 Libraries</label>
+ <label>%Maven_JSF_1_1_Libraries</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/jsf-template11.xml"/>
<enablement>
<and>
@@ -101,7 +101,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="hibernate332-maven-library-provider"
extends="maven-library-provider">
- <label>Hibernate 3.3.2 Libraries</label>
+ <label>%Hibernate_3_3_2_Libraries</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/hibernate332-template.xml"/>
<enablement>
<and>
@@ -121,7 +121,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="portlet10-maven-library-provider"
extends="maven-library-provider">
- <label>Maven Portlet 1.0 Libraries</label>
+ <label>%Maven_Portlet_1_0_Libraries</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/portlet-template10.xml"/>
<enablement>
<and>
@@ -138,7 +138,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="portlet20-maven-library-provider"
extends="maven-library-provider">
- <label>Maven Portlet 2.0 Libraries</label>
+ <label>%Maven_Portlet_2_0_Libraries</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/portlet-template20.xml"/>
<enablement>
<and>
@@ -155,7 +155,7 @@
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="portletbridge200alpha-maven-library-provider"
extends="maven-library-provider">
- <label>Maven Portletbridge 2.0.0 ALPHA Libraries</label>
+ <label>%Maven_Portletbridge_2_0_0_ALPHA_Libraries</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/portletbridge-template200alpha.xml"/>
<enablement>
<and>
@@ -171,7 +171,7 @@
</extension>
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="portletbridge200alphadep-maven-library-provider"
extends="maven-library-provider">
- <label>Maven Portletbridge 2.0.0 ALPHA Libraries with
Dependencies</label>
+
<label>%Maven_Portletbridge_2_0_0_ALPHA_Libraries_with_Dependencies</label>
<param name="template"
value="platform:/plugin/org.jboss.tools.maven.core/poms/portletbridge-template200alphadep.xml"/>
<enablement>
<and>
Added:
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/Messages.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/Messages.java
(rev 0)
+++
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/Messages.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -0,0 +1,15 @@
+package org.jboss.tools.maven.core;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.maven.core.messages"; //$NON-NLS-1$
+ public static String
MavenFacetInstallDelegate_Internal_Error_creating_JBoss_Maven_Facet;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/ProjectFacetsFactoryTester.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/ProjectFacetsFactoryTester.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/ProjectFacetsFactoryTester.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -31,7 +31,7 @@
ProjectFacetVersion projectFacetVersion = (ProjectFacetVersion) object;
facets.add(projectFacetVersion.getProjectFacet().getId());
}
- StringTokenizer tokenizer = new StringTokenizer(requiredFacets,",");
+ StringTokenizer tokenizer = new StringTokenizer(requiredFacets,",");
//$NON-NLS-1$
while (tokenizer.hasMoreTokens()) {
String requiredFacet = tokenizer.nextToken().trim();
if (!facets.contains(requiredFacet)) {
Modified:
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDataModelProvider.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDataModelProvider.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDataModelProvider.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -14,6 +14,7 @@
import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
import org.jboss.tools.maven.core.IJBossMavenConstants;
+import org.jboss.tools.maven.core.Messages;
/**
* @author snjeza
@@ -31,22 +32,22 @@
return getDefaultProperty(FACET_PROJECT_NAME);
}
if (propertyName.equals(IJBossMavenConstants.GROUP_ID)) {
- return "org.jboss.tools";
+ return "org.jboss.tools"; //$NON-NLS-1$
}
if (propertyName.equals(IJBossMavenConstants.VERSION)) {
- return "0.0.1-SNAPSHOT";
+ return "0.0.1-SNAPSHOT"; //$NON-NLS-1$
}
if (propertyName.equals(IJBossMavenConstants.NAME)) {
return getDefaultProperty(FACET_PROJECT_NAME);
}
if (propertyName.equals(IJBossMavenConstants.DESCRIPTION)) {
- return "";
+ return ""; //$NON-NLS-1$
}
if (propertyName.equals(IJBossMavenConstants.PACKAGING)) {
- return "war";
+ return "war"; //$NON-NLS-1$
}
if (propertyName.equals(IJBossMavenConstants.SEAM_MAVEN_VERSION)) {
- return "";
+ return ""; //$NON-NLS-1$
}
if (propertyName.equals(IJBossMavenConstants.REMOVE_WTP_CLASSPATH_CONTAINERS)) {
return Boolean.TRUE;
Modified:
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDelegate.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDelegate.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/internal/project/facet/MavenFacetInstallDelegate.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -30,6 +30,7 @@
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.maven.core.MavenCoreActivator;
import org.jboss.tools.maven.core.IJBossMavenConstants;
+import org.jboss.tools.maven.core.Messages;
import org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperation;
import org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperationConfig;
import org.maven.ide.eclipse.MavenPlugin;
@@ -49,7 +50,7 @@
} else {
throw new CoreException(
MavenCoreActivator
- .getStatus("Internal Error creating JBoss Maven Facet. Missing
configuration"));
+ .getStatus(Messages.MavenFacetInstallDelegate_Internal_Error_creating_JBoss_Maven_Facet));
}
IFile pom = project.getFile(IMavenConstants.POM_FILE_NAME);
Added:
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/messages.properties
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/messages.properties
(rev 0)
+++
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/messages.properties 2009-12-10
23:14:28 UTC (rev 19199)
@@ -0,0 +1 @@
+MavenFacetInstallDelegate_Internal_Error_creating_JBoss_Maven_Facet=Internal Error
creating JBoss Maven Facet. Missing configuration
Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF 2009-12-10
21:02:27 UTC (rev 19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF 2009-12-10
23:14:28 UTC (rev 19199)
@@ -1,8 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Integration Seam projects with Maven
+Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.jboss.tools.maven.seam;singleton:=true
Bundle-Version: 1.0.0.qualifier
+Bundle-Localization: plugin
Bundle-Activator: org.jboss.tools.maven.seam.MavenSeamActivator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
@@ -18,4 +19,4 @@
org.eclipse.jst.jsf.core
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: JBoss by Red Hat
+Bundle-Vendor: %Bundle-Vendor
Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/build.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.seam/build.properties 2009-12-10 21:02:27
UTC (rev 19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.seam/build.properties 2009-12-10 23:14:28
UTC (rev 19199)
@@ -8,4 +8,6 @@
about.mappings,\
about.properties,\
jboss_about.png,\
- poms/
+ poms/,\
+ OSGI-INF/l10n/bundle.properties,\
+ plugin.properties
Added: trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.properties
(rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.properties 2009-12-10 23:14:28
UTC (rev 19199)
@@ -0,0 +1,7 @@
+#Properties file for org.jboss.tools.maven.seam
+Bundle-Vendor = JBoss by Red Hat
+Bundle-Name = Integration Seam projects with Maven
+Seam_Project_configurator = Seam Project configurator
+JSF_Project_configurator = JSF Project configurator
+Portlet_Core_Project_configurator = Portlet Core Project configurator
+JBoss_Maven_Integration = JBoss Maven Integration
\ No newline at end of file
Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml 2009-12-10 21:02:27 UTC (rev
19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml 2009-12-10 23:14:28 UTC (rev
19199)
@@ -11,21 +11,21 @@
<configurator
id="org.jboss.tools.maven.seam.configurator"
class="org.jboss.tools.maven.seam.configurators.SeamProjectConfigurator"
- name="Seam Project configurator" priority="200"/>
+ name="%Seam_Project_configurator" priority="200"/>
</extension>
<extension point="org.maven.ide.eclipse.projectConfigurators">
<configurator
id="org.jboss.tools.maven.jsf.configurator"
class="org.jboss.tools.maven.seam.configurators.JSFProjectConfigurator"
- name="JSF Project configurator" priority="150"/>
+ name="%JSF_Project_configurator" priority="150"/>
</extension>
<extension point="org.maven.ide.eclipse.projectConfigurators">
<configurator
id="org.jboss.tools.maven.portlet.configurator"
class="org.jboss.tools.maven.seam.configurators.PortletProjectConfigurator"
- name="Portlet Core Project configurator"
priority="155"/>
+ name="%Portlet_Core_Project_configurator"
priority="155"/>
</extension>
<extension
@@ -34,7 +34,7 @@
category="org.jboss.tools.common.model.ui.MainPreferencePage"
class="org.jboss.tools.maven.seam.preferences.SeamConfiguratorPreferencePage"
id="org.jboss.tools.maven.seam.preferences.seamConfiguratorPreferencePage"
- name="JBoss Maven Integration"/>
+ name="%JBoss_Maven_Integration"/>
</extension>
<extension
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -32,6 +32,7 @@
import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderFramework;
import
org.eclipse.jst.jsf.core.internal.project.facet.IJSFFacetInstallDataModelProperties;
import org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import
org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
@@ -60,17 +61,17 @@
*/
public class MavenSeamActivator extends AbstractUIPlugin {
- private static final String WAR_ARCHIVE_SUFFIX = ".war";
+ private static final String WAR_ARCHIVE_SUFFIX = ".war"; //$NON-NLS-1$
- private static final String EJB_ARCHIVE_SUFFIX = ".jar";
+ private static final String EJB_ARCHIVE_SUFFIX = ".jar"; //$NON-NLS-1$
- private static final String TEST_SUFFIX = "-test";
+ private static final String TEST_SUFFIX = "-test"; //$NON-NLS-1$
- private static final String EJB_SUFFIX = "-ejb";
+ private static final String EJB_SUFFIX = "-ejb"; //$NON-NLS-1$
- private static final String EAR_SUFFIX = "-ear";
+ private static final String EAR_SUFFIX = "-ear"; //$NON-NLS-1$
- private static final String PARENT_SUFFIX = "-parent";
+ private static final String PARENT_SUFFIX = "-parent"; //$NON-NLS-1$
// The plug-in ID
public static final String PLUGIN_ID = "org.jboss.tools.maven.seam";
//$NON-NLS-1$
@@ -196,8 +197,8 @@
model.setArtifactId(testArtifactId);
model.setVersion(m2FacetModel
.getStringProperty(IJBossMavenConstants.VERSION));
- model.setName(m2FacetModel.getStringProperty(IJBossMavenConstants.NAME) + " -
test");
- model.setPackaging("jar");
+ model.setName(m2FacetModel.getStringProperty(IJBossMavenConstants.NAME) + " -
test"); //$NON-NLS-1$
+ model.setPackaging("jar"); //$NON-NLS-1$
model.setDescription(m2FacetModel
.getStringProperty(IJBossMavenConstants.DESCRIPTION));
@@ -210,50 +211,50 @@
List dependencies = model.getDependencies();
Dependency dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam.embedded");
- dependency.setArtifactId("hibernate-all");
+ dependency.setGroupId("org.jboss.seam.embedded"); //$NON-NLS-1$
+ dependency.setArtifactId("hibernate-all"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam.embedded");
- dependency.setArtifactId("jboss-embedded-all");
+ dependency.setGroupId("org.jboss.seam.embedded"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-embedded-all"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam.embedded");
- dependency.setArtifactId("thirdparty-all");
+ dependency.setGroupId("org.jboss.seam.embedded"); //$NON-NLS-1$
+ dependency.setArtifactId("thirdparty-all"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = getSeamDependency();
- dependency.setScope("test");
+ dependency.setScope("test"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = getJSFApi();
- dependency.setScope("test");
+ dependency.setScope("test"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("javax.activation");
- dependency.setArtifactId("activation");
+ dependency.setGroupId("javax.activation"); //$NON-NLS-1$
+ dependency.setArtifactId("activation"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("org.testng");
- dependency.setArtifactId("testng");
+ dependency.setGroupId("org.testng"); //$NON-NLS-1$
+ dependency.setArtifactId("testng"); //$NON-NLS-1$
// FIXME
- dependency.setVersion("${testng.version}");
- dependency.setClassifier("jdk15");
- dependency.setScope("test");
+ dependency.setVersion("${testng.version}"); //$NON-NLS-1$
+ dependency.setClassifier("jdk15"); //$NON-NLS-1$
+ dependency.setScope("test"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("org.slf4j");
- dependency.setArtifactId("slf4j-api");
+ dependency.setGroupId("org.slf4j"); //$NON-NLS-1$
+ dependency.setArtifactId("slf4j-api"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("org.slf4j");
- dependency.setArtifactId("slf4j-nop");
+ dependency.setGroupId("org.slf4j"); //$NON-NLS-1$
+ dependency.setArtifactId("slf4j-nop"); //$NON-NLS-1$
dependencies.add(dependency);
Build build = new Build();
@@ -289,8 +290,8 @@
model.setArtifactId(earArtifactId);
model.setVersion(m2FacetModel
.getStringProperty(IJBossMavenConstants.VERSION));
- model.setName(m2FacetModel.getStringProperty(IJBossMavenConstants.NAME) + " -
EAR");
- model.setPackaging("ear");
+ model.setName(m2FacetModel.getStringProperty(IJBossMavenConstants.NAME) + " -
EAR"); //$NON-NLS-1$
+ model.setPackaging("ear"); //$NON-NLS-1$
model.setDescription(m2FacetModel
.getStringProperty(IJBossMavenConstants.DESCRIPTION));
@@ -306,70 +307,70 @@
dependency.setGroupId(m2FacetModel.getStringProperty(IJBossMavenConstants.GROUP_ID));
dependency.setArtifactId(ejbProjectName);
dependency.setVersion(m2FacetModel.getStringProperty(IJBossMavenConstants.VERSION));
- dependency.setType("ejb");
- dependency.setScope("runtime");
+ dependency.setType("ejb"); //$NON-NLS-1$
+ dependency.setScope("runtime"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
dependency.setGroupId(m2FacetModel.getStringProperty(IJBossMavenConstants.GROUP_ID));
dependency.setArtifactId(webProjectName);
dependency.setVersion(m2FacetModel.getStringProperty(IJBossMavenConstants.VERSION));
- dependency.setType("war");
- dependency.setScope("runtime");
+ dependency.setType("war"); //$NON-NLS-1$
+ dependency.setScope("runtime"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = getSeamDependency();
- dependency.setVersion("${seam.version}");
- dependency.setType("ejb");
- dependency.setScope("compile");
+ dependency.setVersion("${seam.version}"); //$NON-NLS-1$
+ dependency.setType("ejb"); //$NON-NLS-1$
+ dependency.setScope("compile"); //$NON-NLS-1$
List exclusions = dependency.getExclusions();
Exclusion exclusion = new Exclusion();
- exclusion.setGroupId("javassist");
- exclusion.setArtifactId("javassist");
+ exclusion.setGroupId("javassist"); //$NON-NLS-1$
+ exclusion.setArtifactId("javassist"); //$NON-NLS-1$
exclusions.add(exclusion);
exclusion = new Exclusion();
- exclusion.setGroupId("javax.el");
- exclusion.setArtifactId("el-api");
+ exclusion.setGroupId("javax.el"); //$NON-NLS-1$
+ exclusion.setArtifactId("el-api"); //$NON-NLS-1$
exclusions.add(exclusion);
exclusion = new Exclusion();
- exclusion.setGroupId("dom4j");
- exclusion.setArtifactId("dom4j");
+ exclusion.setGroupId("dom4j"); //$NON-NLS-1$
+ exclusion.setArtifactId("dom4j"); //$NON-NLS-1$
exclusions.add(exclusion);
exclusion = new Exclusion();
- exclusion.setGroupId("xstream");
- exclusion.setArtifactId("xstream");
+ exclusion.setGroupId("xstream"); //$NON-NLS-1$
+ exclusion.setArtifactId("xstream"); //$NON-NLS-1$
exclusions.add(exclusion);
exclusion = new Exclusion();
- exclusion.setGroupId("xpp3");
- exclusion.setArtifactId("xpp3_min");
+ exclusion.setGroupId("xpp3"); //$NON-NLS-1$
+ exclusion.setArtifactId("xpp3_min"); //$NON-NLS-1$
exclusions.add(exclusion);
dependencies.add(dependency);
dependency = getRichFacesApi();
- dependency.setType("jar");
- dependency.setScope("compile");
+ dependency.setType("jar"); //$NON-NLS-1$
+ dependency.setScope("compile"); //$NON-NLS-1$
exclusions = dependency.getExclusions();
exclusion = new Exclusion();
- exclusion.setGroupId("commons-collections");
- exclusion.setArtifactId("commons-collections");
+ exclusion.setGroupId("commons-collections"); //$NON-NLS-1$
+ exclusion.setArtifactId("commons-collections"); //$NON-NLS-1$
exclusions.add(exclusion);
exclusion = new Exclusion();
- exclusion.setGroupId("commons-logging");
- exclusion.setArtifactId("commons-logging");
+ exclusion.setGroupId("commons-logging"); //$NON-NLS-1$
+ exclusion.setArtifactId("commons-logging"); //$NON-NLS-1$
exclusions.add(exclusion);
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("org.drools");
- dependency.setArtifactId("drools-compiler");
- dependency.setType("jar");
- dependency.setScope("compile");
+ dependency.setGroupId("org.drools"); //$NON-NLS-1$
+ dependency.setArtifactId("drools-compiler"); //$NON-NLS-1$
+ dependency.setType("jar"); //$NON-NLS-1$
+ dependency.setScope("compile"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
@@ -386,9 +387,9 @@
}
}
dependency.setGroupId(jbpmGroupId);
- dependency.setArtifactId("jbpm-jpdl");
- dependency.setType("jar");
- dependency.setScope("compile");
+ dependency.setArtifactId("jbpm-jpdl"); //$NON-NLS-1$
+ dependency.setType("jar"); //$NON-NLS-1$
+ dependency.setScope("compile"); //$NON-NLS-1$
dependencies.add(dependency);
// dependency = new Dependency();
@@ -403,8 +404,8 @@
// dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("commons-digester");
- dependency.setArtifactId("commons-digester");
+ dependency.setGroupId("commons-digester"); //$NON-NLS-1$
+ dependency.setArtifactId("commons-digester"); //$NON-NLS-1$
dependencies.add(dependency);
Build build = new Build();
@@ -415,7 +416,7 @@
if (sourceDirectory != null) {
build.setSourceDirectory(sourceDirectory);
}
- build.setOutputDirectory("target/classes");
+ build.setOutputDirectory("target/classes"); //$NON-NLS-1$
MavenCoreActivator.addMavenEarPlugin(build, project, m2FacetModel, true);
model.setBuild(build);
MavenCoreActivator.createMavenProject(earProjectName, null, model, true);
@@ -455,8 +456,8 @@
model.setArtifactId(ejbArtifactId);
model.setVersion(m2FacetModel
.getStringProperty(IJBossMavenConstants.VERSION));
- model.setName(m2FacetModel.getStringProperty(IJBossMavenConstants.NAME) + " -
EJB");
- model.setPackaging("ejb");
+ model.setName(m2FacetModel.getStringProperty(IJBossMavenConstants.NAME) + " -
EJB"); //$NON-NLS-1$
+ model.setPackaging("ejb"); //$NON-NLS-1$
model.setDescription(m2FacetModel
.getStringProperty(IJBossMavenConstants.DESCRIPTION));
@@ -469,24 +470,24 @@
List dependencies = model.getDependencies();
Dependency dependency = getSeamDependency();
- dependency.setScope("provided");
+ dependency.setScope("provided"); //$NON-NLS-1$
dependencies.add(dependency);
dependencies.add(getJSFApi());
dependencies.add(getRichFacesApi());
dependency = new Dependency();
- dependency.setGroupId("javax.ejb");
- dependency.setArtifactId("ejb-api");
+ dependency.setGroupId("javax.ejb"); //$NON-NLS-1$
+ dependency.setArtifactId("ejb-api"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("javax.annotation");
- dependency.setArtifactId("jsr250-api");
+ dependency.setGroupId("javax.annotation"); //$NON-NLS-1$
+ dependency.setArtifactId("jsr250-api"); //$NON-NLS-1$
dependencies.add(dependency);
dependency = new Dependency();
- dependency.setGroupId("javax.persistence");
- dependency.setArtifactId("persistence-api");
+ dependency.setGroupId("javax.persistence"); //$NON-NLS-1$
+ dependency.setArtifactId("persistence-api"); //$NON-NLS-1$
dependencies.add(dependency);
dependencies.add(getHibernateAnnotations());
@@ -535,125 +536,125 @@
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.hibernate");
- dependency.setArtifactId("hibernate-entitymanager");
+ dependency.setGroupId("org.hibernate"); //$NON-NLS-1$
+ dependency.setArtifactId("hibernate-entitymanager"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = getSeamDependency();
if (!SeamFacetAbstractInstallDelegate
.isWarConfiguration(seamFacetModel)) {
- dependency.setScope("provided");
+ dependency.setScope("provided"); //$NON-NLS-1$
}
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-ui");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-ui"); //$NON-NLS-1$
List<Exclusion> exclusions = dependency.getExclusions();
Exclusion exclusion = new Exclusion();
- exclusion.setGroupId("org.jboss.seam");
- exclusion.setArtifactId("jboss-seam");
+ exclusion.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ exclusion.setArtifactId("jboss-seam"); //$NON-NLS-1$
exclusions.add(exclusion);
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-ioc");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-ioc"); //$NON-NLS-1$
exclusions = dependency.getExclusions();
exclusion = new Exclusion();
- exclusion.setGroupId("org.jboss.seam");
- exclusion.setArtifactId("jboss-seam");
+ exclusion.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ exclusion.setArtifactId("jboss-seam"); //$NON-NLS-1$
exclusions.add(exclusion);
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-debug");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-debug"); //$NON-NLS-1$
// FIXME
- dependency.setVersion("${seam.version}");
+ dependency.setVersion("${seam.version}"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-mail");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-mail"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-pdf");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-pdf"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-remoting");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-remoting"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
if (FacetedProjectFramework.hasProjectFacet(webProject,
ISeamFacetDataModelProperties.SEAM_FACET_ID,
ISeamFacetDataModelProperties.SEAM_FACET_VERSION_21)) {
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam-excel");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam-excel"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
}
dependency = new Dependency();
- dependency.setGroupId("javax.servlet");
- dependency.setArtifactId("servlet-api");
+ dependency.setGroupId("javax.servlet"); //$NON-NLS-1$
+ dependency.setArtifactId("servlet-api"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.richfaces.ui");
- dependency.setArtifactId("richfaces-ui");
+ dependency.setGroupId("org.richfaces.ui"); //$NON-NLS-1$
+ dependency.setArtifactId("richfaces-ui"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = getRichFacesApi();
if (!SeamFacetAbstractInstallDelegate
.isWarConfiguration(seamFacetModel)) {
- dependency.setScope("provided");
+ dependency.setScope("provided"); //$NON-NLS-1$
}
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.richfaces.framework");
- dependency.setArtifactId("richfaces-impl");
+ dependency.setGroupId("org.richfaces.framework"); //$NON-NLS-1$
+ dependency.setArtifactId("richfaces-impl"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = getJSFApi();
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("javax.faces");
- dependency.setArtifactId("jsf-impl");
+ dependency.setGroupId("javax.faces"); //$NON-NLS-1$
+ dependency.setArtifactId("jsf-impl"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("javax.el");
- dependency.setArtifactId("el-api");
+ dependency.setGroupId("javax.el"); //$NON-NLS-1$
+ dependency.setArtifactId("el-api"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
if (SeamFacetAbstractInstallDelegate
.isWarConfiguration(seamFacetModel)) {
dependency = new Dependency();
- dependency.setGroupId("org.drools");
- dependency.setArtifactId("drools-compiler");
- dependency.setType("jar");
- dependency.setScope("compile");
+ dependency.setGroupId("org.drools"); //$NON-NLS-1$
+ dependency.setArtifactId("drools-compiler"); //$NON-NLS-1$
+ dependency.setType("jar"); //$NON-NLS-1$
+ dependency.setScope("compile"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("org.jbpm");
- dependency.setArtifactId("jbpm-jpdl");
- dependency.setType("jar");
- dependency.setScope("compile");
+ dependency.setGroupId("org.jbpm"); //$NON-NLS-1$
+ dependency.setArtifactId("jbpm-jpdl"); //$NON-NLS-1$
+ dependency.setType("jar"); //$NON-NLS-1$
+ dependency.setScope("compile"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
dependency = new Dependency();
- dependency.setGroupId("commons-digester");
- dependency.setArtifactId("commons-digester");
+ dependency.setGroupId("commons-digester"); //$NON-NLS-1$
+ dependency.setArtifactId("commons-digester"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
}
@@ -665,8 +666,8 @@
dependency.setGroupId(m2FacetModel.getStringProperty(IJBossMavenConstants.GROUP_ID));
dependency.setArtifactId(ejbProjectName);
dependency.setVersion(m2FacetModel.getStringProperty(IJBossMavenConstants.VERSION));
- dependency.setType("ejb");
- dependency.setScope("provided");
+ dependency.setType("ejb"); //$NON-NLS-1$
+ dependency.setScope("provided"); //$NON-NLS-1$
modelManager.addDependency(pomFile,dependency);
}
removeWTPContainers(m2FacetModel, webProject);
@@ -689,7 +690,7 @@
IPath path = entry.getPath();
if (path != null) {
String value = path.toString();
- if (value.startsWith("org.eclipse.jst")) {
+ if (value.startsWith("org.eclipse.jst")) { //$NON-NLS-1$
add = false;
}
}
@@ -704,54 +705,54 @@
private Dependency getHibernateValidator() {
Dependency dependency = new Dependency();
- dependency.setGroupId("org.hibernate");
- dependency.setArtifactId("hibernate-validator");
+ dependency.setGroupId("org.hibernate"); //$NON-NLS-1$
+ dependency.setArtifactId("hibernate-validator"); //$NON-NLS-1$
return dependency;
}
private Dependency getHibernateAnnotations() {
Dependency dependency;
dependency = new Dependency();
- dependency.setGroupId("org.hibernate");
- dependency.setArtifactId("hibernate-annotations");
+ dependency.setGroupId("org.hibernate"); //$NON-NLS-1$
+ dependency.setArtifactId("hibernate-annotations"); //$NON-NLS-1$
return dependency;
}
private Dependency getHibernateCommonAnnotations() {
Dependency dependency;
dependency = new Dependency();
- dependency.setGroupId("org.hibernate");
- dependency.setArtifactId("hibernate-commons-annotations");
+ dependency.setGroupId("org.hibernate"); //$NON-NLS-1$
+ dependency.setArtifactId("hibernate-commons-annotations"); //$NON-NLS-1$
return dependency;
}
private Dependency getRichFacesApi() {
Dependency dependency;
dependency = new Dependency();
- dependency.setGroupId("org.richfaces.framework");
- dependency.setArtifactId("richfaces-api");
+ dependency.setGroupId("org.richfaces.framework"); //$NON-NLS-1$
+ dependency.setArtifactId("richfaces-api"); //$NON-NLS-1$
return dependency;
}
private Dependency getJSFApi() {
Dependency dependency;
dependency = new Dependency();
- dependency.setGroupId("javax.faces");
- dependency.setArtifactId("jsf-api");
+ dependency.setGroupId("javax.faces"); //$NON-NLS-1$
+ dependency.setArtifactId("jsf-api"); //$NON-NLS-1$
return dependency;
}
private Dependency getSeamDependency() {
Dependency dependency;
dependency = new Dependency();
- dependency.setGroupId("org.jboss.seam");
- dependency.setArtifactId("jboss-seam");
+ dependency.setGroupId("org.jboss.seam"); //$NON-NLS-1$
+ dependency.setArtifactId("jboss-seam"); //$NON-NLS-1$
return dependency;
}
private void configureParentProject(IDataModel m2FacetModel, IDataModel seamFacetModel)
{
Bundle bundle = getDefault().getBundle();
- URL parentPomEntryURL = bundle.getEntry("/poms/parent-pom.xml");
+ URL parentPomEntryURL = bundle.getEntry("/poms/parent-pom.xml");
//$NON-NLS-1$
InputStream inputStream = null;
try {
URL resolvedURL = FileLocator.resolve(parentPomEntryURL);
@@ -763,11 +764,11 @@
String projectVersion = m2FacetModel.getStringProperty(IJBossMavenConstants.VERSION);
String name = m2FacetModel.getStringProperty(IJBossMavenConstants.NAME);
if (name != null && name.trim().length() > 0) {
- model.setName(name + " - parent");
+ model.setName(name + " - parent"); //$NON-NLS-1$
}
String description= m2FacetModel.getStringProperty(IJBossMavenConstants.DESCRIPTION);
if (description != null && description.trim().length() > 0) {
- model.setDescription(description + " - parent");
+ model.setDescription(description + " - parent"); //$NON-NLS-1$
}
model.setVersion(projectVersion);
@@ -775,7 +776,7 @@
properties.put(IJBossMavenConstants.PROJECT_VERSION, projectVersion);
SeamRuntime seamRuntime =
SeamRuntimeManager.getInstance().findRuntimeByName(seamFacetModel.getProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME).toString());
if(seamRuntime==null) {
- getDefault().log("Can't get seam runtime " +
seamFacetModel.getProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME).toString());
+ getDefault().log(Messages.MavenSeamActivator_Cannot_get_seam_runtime +
seamFacetModel.getProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME).toString());
}
String seamVersion =
m2FacetModel.getStringProperty(IJBossMavenConstants.SEAM_MAVEN_VERSION);
if (seamVersion != null && seamVersion.trim().length() > 0) {
@@ -786,48 +787,48 @@
if (seamHomeDir.exists()) {
//String seamVersion =
SeamUtil.getSeamVersionFromManifest(seamRuntime.getHomeDir());
//properties.put(IJBossMavenConstants.SEAM_VERSION, seamVersion);
- File buildDir = new File(seamHomeDir,"build");
- File rootPom = new File(buildDir,"root.pom.xml");
+ File buildDir = new File(seamHomeDir,"build"); //$NON-NLS-1$
+ File rootPom = new File(buildDir,"root.pom.xml"); //$NON-NLS-1$
if (!rootPom.exists()) {
- getDefault().log("The " + rootPom.getAbsolutePath() + " file
doesn't exist.");
+ MavenSeamActivator.log(NLS.bind(Messages.MavenSeamActivator_The_file_does_not_exist,
rootPom.getAbsolutePath()));
} else {
try {
Model rootPomModel = modelManager.readMavenModel(rootPom);
List<Dependency> seamDependencies =
rootPomModel.getDependencyManagement().getDependencies();
- setArtifactVersion("jsf.version", properties, "javax.faces",
"jsf-api", seamDependencies);
- String richfacesVersion = setArtifactVersion("richfaces.version",
properties, "org.richfaces.framework", "richfaces-impl",
seamDependencies);
+ setArtifactVersion("jsf.version", properties, "javax.faces",
"jsf-api", seamDependencies); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ String richfacesVersion = setArtifactVersion("richfaces.version",
properties, "org.richfaces.framework", "richfaces-impl",
seamDependencies); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
if (richfacesVersion == null) {
Properties seamProperties = rootPomModel.getProperties();
- richfacesVersion = seamProperties.getProperty("version.richfaces");
+ richfacesVersion = seamProperties.getProperty("version.richfaces");
//$NON-NLS-1$
if (richfacesVersion != null) {
- properties.put("richfaces.version", richfacesVersion);
+ properties.put("richfaces.version", richfacesVersion); //$NON-NLS-1$
}
}
- setArtifactVersion("hibernate-validator.version", properties,
"org.hibernate", "hibernate-validator", seamDependencies);
- setArtifactVersion("hibernate-annotations.version", properties,
"org.hibernate", "hibernate-annotations", seamDependencies);
- setArtifactVersion("hibernate-entitymanager.version", properties,
"org.hibernate", "hibernate-entitymanager", seamDependencies);
+ setArtifactVersion("hibernate-validator.version", properties,
"org.hibernate", "hibernate-validator", seamDependencies);
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("hibernate-annotations.version", properties,
"org.hibernate", "hibernate-annotations", seamDependencies);
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("hibernate-entitymanager.version", properties,
"org.hibernate", "hibernate-entitymanager", seamDependencies);
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
//setArtifactVersion("testng.version", properties,
"org.hibernate", "hibernate-entitymanager", seamDependencies);
//if (seamVersion != null &&
"2.2".equals(seamVersion.subSequence(0, 3))) {
// properties.put("testng.version", "5.9");
//}
- setArtifactVersion("jboss.embedded.version", properties,
"org.jboss.seam.embedded", "jboss-embedded-api", seamDependencies);
- setArtifactVersion("slf4j.version", properties, "org.slf4j",
"slf4j-api", seamDependencies);
- setArtifactVersion("ejb.api.version", properties, "javax.ejb",
"ejb-api", seamDependencies);
- setArtifactVersion("jsr250-api.version", properties,
"javax.annotation", "jsr250-api", seamDependencies);
- setArtifactVersion("persistence-api.version", properties,
"javax.persistence", "persistence-api", seamDependencies);
- setArtifactVersion("servlet.version", properties,
"javax.servlet", "servlet-api", seamDependencies);
- setArtifactVersion("javax.el.version", properties, "javax.el",
"el-api", seamDependencies);
- String droolsVersion = setArtifactVersion("drools.version", properties,
"org.drools", "drools-core", seamDependencies);
+ setArtifactVersion("jboss.embedded.version", properties,
"org.jboss.seam.embedded", "jboss-embedded-api", seamDependencies);
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("slf4j.version", properties, "org.slf4j",
"slf4j-api", seamDependencies); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("ejb.api.version", properties, "javax.ejb",
"ejb-api", seamDependencies); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("jsr250-api.version", properties,
"javax.annotation", "jsr250-api", seamDependencies); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("persistence-api.version", properties,
"javax.persistence", "persistence-api", seamDependencies);
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("servlet.version", properties,
"javax.servlet", "servlet-api", seamDependencies); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$
+ setArtifactVersion("javax.el.version", properties, "javax.el",
"el-api", seamDependencies); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ String droolsVersion = setArtifactVersion("drools.version", properties,
"org.drools", "drools-core", seamDependencies); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$
if (droolsVersion == null) {
Properties seamProperties = rootPomModel.getProperties();
- droolsVersion = seamProperties.getProperty("version.drools");
+ droolsVersion = seamProperties.getProperty("version.drools");
//$NON-NLS-1$
if (droolsVersion != null) {
- properties.put("drools.version", droolsVersion);
+ properties.put("drools.version", droolsVersion); //$NON-NLS-1$
}
}
- String jbpmVersion = setArtifactVersion("jbpm.version", properties,
"org.jbpm", "jbpm-jpdl", seamDependencies);
+ String jbpmVersion = setArtifactVersion("jbpm.version", properties,
"org.jbpm", "jbpm-jpdl", seamDependencies); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$
if (jbpmVersion == null) {
- setArtifactVersion("jbpm3.version", properties,
"org.jbpm.jbpm3", "jbpm-jpdl", seamDependencies);
+ setArtifactVersion("jbpm3.version", properties,
"org.jbpm.jbpm3", "jbpm-jpdl", seamDependencies); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$
}
//setArtifactVersion("mvel.version", properties, "org.mvel",
"mvel14", seamDependencies);
@@ -841,15 +842,15 @@
}
}
} else {
- getDefault().log("The " + seamHomePath + " folder doesn't
exist.");
+ MavenSeamActivator.log(NLS.bind(Messages.MavenSeamActivator_The_folder_does_not_exist,
seamHomePath));
}
List<String> modules = model.getModules();
- modules.add("../" + artifactId);
+ modules.add("../" + artifactId); //$NON-NLS-1$
if (!SeamFacetAbstractInstallDelegate
.isWarConfiguration(seamFacetModel)) {
- modules.add("../" + ejbArtifactId);
- modules.add("../" + earArtifactId);
+ modules.add("../" + ejbArtifactId); //$NON-NLS-1$
+ modules.add("../" + earArtifactId); //$NON-NLS-1$
}
webProjectName =
seamFacetModel.getStringProperty(IFacetDataModelProperties.FACET_PROJECT_NAME);
@@ -879,7 +880,7 @@
for (Dependency dependency:seamDependencies) {
if (groupId.equals(dependency.getGroupId()) &&
artifactId.equals(dependency.getArtifactId())) {
String version = dependency.getVersion();
- if (version != null && !version.startsWith("${")) {
+ if (version != null && !version.startsWith("${")) { //$NON-NLS-1$
properties.put(property, version);
return version;
}
Added:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/Messages.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/Messages.java
(rev 0)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/Messages.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -0,0 +1,26 @@
+package org.jboss.tools.maven.seam;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.maven.seam.messages"; //$NON-NLS-1$
+ public static String
JSFProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet;
+ public static String MavenSeamActivator_Cannot_get_seam_runtime;
+ public static String MavenSeamActivator_The_file_does_not_exist;
+ public static String MavenSeamActivator_The_folder_does_not_exist;
+ public static String
PortletProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet;
+ public static String SeamConfiguratorPreferencePage_Configure_JBoss_JSF_Portlet_facet;
+ public static String SeamConfiguratorPreferencePage_Configure_JBoss_Portlet_Core_facet;
+ public static String SeamConfiguratorPreferencePage_Configure_JBoss_Seam_Portlet_facet;
+ public static String SeamConfiguratorPreferencePage_Configure_JSF_facet;
+ public static String SeamConfiguratorPreferencePage_Configure_Seam_Artifacts;
+ public static String SeamConfiguratorPreferencePage_Configure_Seam_Runtime;
+ public static String
SeamConfiguratorPreferencePage_Configure_Seam_when_importing_Maven_projects;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/JSFProjectConfigurator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/JSFProjectConfigurator.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/JSFProjectConfigurator.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -19,6 +19,7 @@
import org.jboss.tools.maven.core.IJBossMavenConstants;
import
org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDataModelProvider;
import org.jboss.tools.maven.seam.MavenSeamActivator;
+import org.jboss.tools.maven.seam.Messages;
import
org.jboss.tools.seam.internal.core.project.facet.SeamFacetInstallDataModelProvider;
import org.maven.ide.eclipse.project.IMavenProjectFacade;
import org.maven.ide.eclipse.project.MavenProjectChangedEvent;
@@ -107,7 +108,7 @@
private void installWarFacets(IFacetedProject fproj, String jsfVersion,IProgressMonitor
monitor) throws CoreException {
if (!fproj.hasProjectFacet(dynamicWebFacet)) {
- MavenSeamActivator.log("The project doesn't contain the Web Module
facet.");
+ MavenSeamActivator.log(Messages.JSFProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet);
}
installJSFFacet(fproj, jsfVersion, monitor);
installM2Facet(fproj, monitor);
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/PortletProjectConfigurator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/PortletProjectConfigurator.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/PortletProjectConfigurator.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -17,6 +17,7 @@
import org.jboss.tools.maven.core.IJBossMavenConstants;
import
org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDataModelProvider;
import org.jboss.tools.maven.seam.MavenSeamActivator;
+import org.jboss.tools.maven.seam.Messages;
import org.jboss.tools.portlet.core.IPortletConstants;
import
org.jboss.tools.portlet.core.internal.project.facet.JSFPortletFacetInstallDataModelProvider;
import
org.jboss.tools.portlet.core.internal.project.facet.PortletFacetInstallDataModelProvider;
@@ -114,7 +115,7 @@
private void installWarFacets(IFacetedProject fproj, String portletVersion, String
jsfportletVersion, IProgressMonitor monitor) throws CoreException {
if (!fproj.hasProjectFacet(dynamicWebFacet)) {
- MavenSeamActivator.log("The project doesn't contain the Web Module
facet.");
+ MavenSeamActivator.log(Messages.PortletProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet);
}
installM2Facet(fproj, monitor);
installPortletFacet(fproj, portletVersion, jsfportletVersion, monitor);
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -46,6 +46,7 @@
import org.jboss.tools.maven.core.IJBossMavenConstants;
import
org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDataModelProvider;
import org.jboss.tools.maven.seam.MavenSeamActivator;
+import org.jboss.tools.maven.seam.Messages;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.SeamUtil;
@@ -607,7 +608,7 @@
if (object instanceof Module) {
Module module = (Module) object;
String uri = module.getUri();
- if (uri != null && (uri.startsWith("mvel14") ||
uri.startsWith("mvel2"))) {
+ if (uri != null && (uri.startsWith("mvel14") ||
uri.startsWith("mvel2"))) { //$NON-NLS-1$ //$NON-NLS-2$
iterator.remove();
}
}
Added:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/messages.properties
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/messages.properties
(rev 0)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/messages.properties 2009-12-10
23:14:28 UTC (rev 19199)
@@ -0,0 +1,12 @@
+JSFProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet=The project
doesn't contain the Web Module facet.
+MavenSeamActivator_Cannot_get_seam_runtime=Can't get seam runtime.
+MavenSeamActivator_The_file_does_not_exist=The {0} file doesn't exist.
+MavenSeamActivator_The_folder_does_not_exist=The {0} folder doesn't exist.
+PortletProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet=The project
doesn't contain the Web Module facet.
+SeamConfiguratorPreferencePage_Configure_JBoss_JSF_Portlet_facet=Configure JBoss JSF
Portlet facet when importing Maven projects
+SeamConfiguratorPreferencePage_Configure_JBoss_Portlet_Core_facet=Configure JBoss Portlet
Core facet when importing Maven projects
+SeamConfiguratorPreferencePage_Configure_JBoss_Seam_Portlet_facet=Configure JBoss Seam
Portlet facet when importing Maven projects
+SeamConfiguratorPreferencePage_Configure_JSF_facet=Configure JSF facet when importing
Maven projects
+SeamConfiguratorPreferencePage_Configure_Seam_Artifacts=Configure Seam Artifacts (view
folder, model source folder, package ...)
+SeamConfiguratorPreferencePage_Configure_Seam_Runtime=Configure Seam Runtime
+SeamConfiguratorPreferencePage_Configure_Seam_when_importing_Maven_projects=Configure
Seam when importing Maven projects
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/preferences/SeamConfiguratorPreferencePage.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/preferences/SeamConfiguratorPreferencePage.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/preferences/SeamConfiguratorPreferencePage.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -12,6 +12,7 @@
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.jboss.tools.maven.seam.MavenSeamActivator;
+import org.jboss.tools.maven.seam.Messages;
public class SeamConfiguratorPreferencePage extends PreferencePage implements
IWorkbenchPreferencePage {
@@ -34,19 +35,19 @@
composite.setLayout(layout);
configureSeamButton = new Button(composite,SWT.CHECK);
- configureSeamButton.setText("Configure Seam when importing Maven projects");
+ configureSeamButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_Seam_when_importing_Maven_projects);
IPreferenceStore store = MavenSeamActivator.getDefault().getPreferenceStore();
boolean configureSeam = store.getBoolean(MavenSeamActivator.CONFIGURE_SEAM);
configureSeamButton.setSelection(configureSeam);
configureSeamRuntimeButton = new Button(composite,SWT.CHECK);
- configureSeamRuntimeButton.setText("Configure Seam Runtime");
+ configureSeamRuntimeButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_Seam_Runtime);
boolean configureSeamRuntime =
store.getBoolean(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME);
configureSeamRuntimeButton.setSelection(configureSeamRuntime);
configureSeamRuntimeButton.setEnabled(configureSeam);
configureSeamArtifactsButton = new Button(composite,SWT.CHECK);
- configureSeamArtifactsButton.setText("Configure Seam Artifacts (view folder, model
source folder, package ...)");
+ configureSeamArtifactsButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_Seam_Artifacts);
boolean configureSeamArtifacts =
store.getBoolean(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS);
configureSeamArtifactsButton.setSelection(configureSeamArtifacts);
configureSeamArtifactsButton.setEnabled(configureSeam);
@@ -62,22 +63,22 @@
});
configureJSFButton = new Button(composite,SWT.CHECK);
- configureJSFButton.setText("Configure JSF facet when importing Maven
projects");
+ configureJSFButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_JSF_facet);
boolean configureJSF = store.getBoolean(MavenSeamActivator.CONFIGURE_JSF);
configureJSFButton.setSelection(configureJSF);
configurePortletButton = new Button(composite,SWT.CHECK);
- configurePortletButton.setText("Configure JBoss Portlet Core facet when importing
Maven projects");
+ configurePortletButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_JBoss_Portlet_Core_facet);
boolean configurePortlet = store.getBoolean(MavenSeamActivator.CONFIGURE_PORTLET);
configurePortletButton.setSelection(configurePortlet);
configureJSFPortletButton = new Button(composite,SWT.CHECK);
- configureJSFPortletButton.setText("Configure JBoss JSF Portlet facet when
importing Maven projects");
+ configureJSFPortletButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_JBoss_JSF_Portlet_facet);
boolean configureJSFPortlet =
store.getBoolean(MavenSeamActivator.CONFIGURE_JSFPORTLET);
configureJSFPortletButton.setSelection(configureJSFPortlet);
configureSeamPortletButton = new Button(composite,SWT.CHECK);
- configureSeamPortletButton.setText("Configure JBoss Seam Portlet facet when
importing Maven projects");
+ configureSeamPortletButton.setText(Messages.SeamConfiguratorPreferencePage_Configure_JBoss_Seam_Portlet_facet);
boolean configureSeamPortlet =
store.getBoolean(MavenSeamActivator.CONFIGURE_SEAMPORTLET);
configureJSFPortletButton.setSelection(configureSeamPortlet);
Modified: trunk/maven/plugins/org.jboss.tools.maven.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.ui/META-INF/MANIFEST.MF 2009-12-10 21:02:27
UTC (rev 19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.ui/META-INF/MANIFEST.MF 2009-12-10 23:14:28
UTC (rev 19199)
@@ -1,8 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: JBoss Maven Integration
+Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.jboss.tools.maven.ui; singleton:=true
Bundle-Version: 1.0.0.qualifier
+Bundle-Localization: plugin
Bundle-Activator: org.jboss.tools.maven.ui.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
@@ -13,4 +14,4 @@
org.jboss.tools.maven.core
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: JBoss by Red Hat
+Bundle-Vendor: %Bundle-Vendor
Modified: trunk/maven/plugins/org.jboss.tools.maven.ui/build.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.ui/build.properties 2009-12-10 21:02:27 UTC
(rev 19198)
+++ trunk/maven/plugins/org.jboss.tools.maven.ui/build.properties 2009-12-10 23:14:28 UTC
(rev 19199)
@@ -7,4 +7,5 @@
about.properties,\
about.mappings,\
about.ini,\
- about.html
+ about.html,\
+ plugin.properties
Added: trunk/maven/plugins/org.jboss.tools.maven.ui/plugin.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.ui/plugin.properties
(rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.ui/plugin.properties 2009-12-10 23:14:28 UTC
(rev 19199)
@@ -0,0 +1,3 @@
+
+Bundle-Vendor = JBoss by Red Hat
+Bundle-Name = JBoss Maven Integration
\ No newline at end of file
Added:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/Messages.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/Messages.java
(rev 0)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/Messages.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -0,0 +1,42 @@
+package org.jboss.tools.maven.ui;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.tools.maven.ui.messages";
//$NON-NLS-1$
+ public static String AutoResizeTableLayout_Unknown_column_layout_data;
+ public static String MavenFacetInstallPage_Add_M2_capabilities_to_this_Web_Project;
+ public static String MavenFacetInstallPage_Artifact_Id;
+ public static String MavenFacetInstallPage_Description;
+ public static String MavenFacetInstallPage_Group_Id;
+ public static String MavenFacetInstallPage_JBoss_M2_capabilities;
+ public static String MavenFacetInstallPage_Name;
+ public static String MavenFacetInstallPage_Packaging;
+ public static String MavenFacetInstallPage_Remove_WTP_Classpath_containers;
+ public static String MavenFacetInstallPage_Seam_Maven_version;
+ public static String MavenFacetInstallPage_The_artifactId_field_is_required;
+ public static String MavenFacetInstallPage_The_groupId_field_is_required;
+ public static String MavenFacetInstallPage_The_packaging_field_is_required;
+ public static String MavenFacetInstallPage_The_version_field_is_required;
+ public static String MavenFacetInstallPage_Version;
+ public static String MavenUserLibraryProviderInstallPanel_Add;
+ public static String
MavenUserLibraryProviderInstallPanel_Are_you_sure_you_want_to_remove_the_artifact;
+ public static String MavenUserLibraryProviderInstallPanel_ArtifactId;
+ public static String MavenUserLibraryProviderInstallPanel_Dependencies;
+ public static String MavenUserLibraryProviderInstallPanel_Exclusions;
+ public static String MavenUserLibraryProviderInstallPanel_GroupId;
+ public static String MavenUserLibraryProviderInstallPanel_Remove;
+ public static String MavenUserLibraryProviderInstallPanel_Remove_dependency;
+ public static String MavenUserLibraryProviderInstallPanel_Remove_exclusion;
+ public static String MavenUserLibraryProviderInstallPanel_Restore_Defaults;
+ public static String MavenUserLibraryProviderInstallPanel_Scope;
+ public static String MavenUserLibraryProviderInstallPanel_Type;
+ public static String MavenUserLibraryProviderInstallPanel_Version;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/AutoResizeTableLayout.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/AutoResizeTableLayout.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/AutoResizeTableLayout.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -32,6 +32,7 @@
import org.eclipse.swt.events.ControlListener;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
+import org.jboss.tools.maven.ui.Messages;
public class AutoResizeTableLayout extends TableLayout implements
ControlListener {
@@ -92,7 +93,7 @@
int weight = cw.weight;
totalWeight += weight;
} else {
- throw new IllegalStateException("Unknown column layout data");
+ throw new
IllegalStateException(Messages.AutoResizeTableLayout_Unknown_column_layout_data);
}
}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/DependencyEditingSupport.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/DependencyEditingSupport.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/DependencyEditingSupport.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -1,5 +1,6 @@
package org.jboss.tools.maven.ui.internal.libprov;
+import org.jboss.tools.maven.ui.Messages;
import org.maven.ide.components.pom.Dependency;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ColumnViewer;
@@ -10,8 +11,8 @@
public class DependencyEditingSupport extends EditingSupport {
- private static String[] scopes = {"","provided",
"compile", "test", "runtime",
"system","import"};
- private static String[] types =
{"","jar","war","rar","ear","par","ejb","ejb3","ejb-client","test-jar","java-source","javadoc","maven-plugin","pom"};
+ private static String[] scopes = {"","provided",
"compile", "test", "runtime",
"system","import"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
//$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$
+ private static String[] types =
{"","jar","war","rar","ear","par","ejb","ejb3","ejb-client","test-jar","java-source","javadoc","maven-plugin","pom"};
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
//$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$ //$NON-NLS-12$
//$NON-NLS-13$ //$NON-NLS-14$
private CellEditor editor;
private int column;
@@ -54,19 +55,19 @@
case 0:
value = dependency.getGroupId();
if (value == null) {
- value = "";
+ value = ""; //$NON-NLS-1$
}
return value;
case 1:
value = dependency.getArtifactId();
if (value == null) {
- value = "";
+ value = ""; //$NON-NLS-1$
}
return value;
case 2:
value = dependency.getVersion();
if (value == null) {
- value = "";
+ value = ""; //$NON-NLS-1$
}
return value;
case 3:
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/ExclusionEditingSupport.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/ExclusionEditingSupport.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/ExclusionEditingSupport.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -5,6 +5,7 @@
import org.eclipse.jface.viewers.EditingSupport;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TextCellEditor;
+import org.jboss.tools.maven.ui.Messages;
import org.maven.ide.components.pom.Exclusion;
public class ExclusionEditingSupport extends EditingSupport {
@@ -36,13 +37,13 @@
case 0:
value = exclusion.getGroupId();
if (value == null) {
- value = "";
+ value = ""; //$NON-NLS-1$
}
return value;
case 1:
value = exclusion.getArtifactId();
if (value == null) {
- value = "";
+ value = ""; //$NON-NLS-1$
}
return value;
}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/MavenUserLibraryProviderInstallPanel.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/MavenUserLibraryProviderInstallPanel.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/libprov/MavenUserLibraryProviderInstallPanel.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -26,6 +26,7 @@
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider;
import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOperationPanel;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
@@ -41,6 +42,7 @@
import org.eclipse.swt.widgets.Table;
import org.jboss.tools.maven.core.MavenCoreActivator;
import org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperationConfig;
+import org.jboss.tools.maven.ui.Messages;
import org.maven.ide.components.pom.Dependency;
import org.maven.ide.components.pom.Exclusion;
import org.maven.ide.components.pom.Model;
@@ -119,7 +121,7 @@
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
Label dependencyLabel = new Label(composite, SWT.NONE);
- dependencyLabel.setText("Dependencies:");
+ dependencyLabel.setText(Messages.MavenUserLibraryProviderInstallPanel_Dependencies);
GridData gd = new GridData(GridData.FILL_BOTH);
gd.horizontalSpan=2;
dependencyLabel.setLayoutData(gd);
@@ -142,7 +144,7 @@
});
Label exclusionLabel = new Label(composite, SWT.NONE);
- exclusionLabel.setText("Exclusions:");
+ exclusionLabel.setText(Messages.MavenUserLibraryProviderInstallPanel_Exclusions);
gd = new GridData(GridData.FILL_BOTH);
gd.horizontalSpan=2;
exclusionLabel.setLayoutData(gd);
@@ -170,7 +172,7 @@
table.setLinesVisible(true);
table.setFont(parent.getFont());
- String[] columnHeaders = {"GroupId","ArtifactId"};
+ String[] columnHeaders =
{Messages.MavenUserLibraryProviderInstallPanel_GroupId,Messages.MavenUserLibraryProviderInstallPanel_ArtifactId};
for (int i = 0; i < columnHeaders.length; i++) {
TableViewerColumn column = new TableViewerColumn(exclusionViewer, SWT.NONE);
@@ -206,7 +208,7 @@
table.setLinesVisible(true);
table.setFont(parent.getFont());
- String[] columnHeaders =
{"GroupId","ArtifactId","Version","Scope","Type"};
+ String[] columnHeaders =
{Messages.MavenUserLibraryProviderInstallPanel_GroupId,Messages.MavenUserLibraryProviderInstallPanel_ArtifactId,Messages.MavenUserLibraryProviderInstallPanel_Version,Messages.MavenUserLibraryProviderInstallPanel_Scope,Messages.MavenUserLibraryProviderInstallPanel_Type};
for (int i = 0; i < columnHeaders.length; i++) {
TableViewerColumn column = new TableViewerColumn(dependencyViewer, SWT.NONE);
@@ -236,7 +238,7 @@
Button addButton = new Button(buttonComposite, SWT.PUSH);
addButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- addButton.setText("Add");
+ addButton.setText(Messages.MavenUserLibraryProviderInstallPanel_Add);
addButton.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent e) {
@@ -245,8 +247,8 @@
public void widgetSelected(SelectionEvent e) {
Dependency dependency = PomFactory.eINSTANCE.createDependency();
- dependency.setGroupId("?");
- dependency.setArtifactId("?");
+ dependency.setGroupId("?"); //$NON-NLS-1$
+ dependency.setArtifactId("?"); //$NON-NLS-1$
dependencies.add(dependency);
dependencyViewer.refresh();
}
@@ -255,7 +257,7 @@
final Button removeButton = new Button(buttonComposite, SWT.PUSH);
removeButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- removeButton.setText("Remove");
+ removeButton.setText(Messages.MavenUserLibraryProviderInstallPanel_Remove);
removeButton.setEnabled(false);
removeButton.addSelectionListener(new SelectionListener(){
@@ -267,7 +269,7 @@
Object object = selection.getFirstElement();
if (object instanceof Dependency) {
Dependency dependency = (Dependency) object;
- boolean ok = MessageDialog.openQuestion(getShell(), "Remove dependency",
"Are you sure you want to remove the '" + dependency.getGroupId() +
":" + dependency.getArtifactId() + "' artifact?");
+ boolean ok = MessageDialog.openQuestion(getShell(),
Messages.MavenUserLibraryProviderInstallPanel_Remove_dependency,
NLS.bind(Messages.MavenUserLibraryProviderInstallPanel_Are_you_sure_you_want_to_remove_the_artifact,
dependency.getGroupId(), dependency.getArtifactId()));
if (ok) {
dependencies.remove(object);
dependencyViewer.refresh();
@@ -283,7 +285,7 @@
final Button restoreDefaults = new Button(buttonComposite, SWT.PUSH);
restoreDefaults.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- restoreDefaults.setText("Restore Defaults");
+ restoreDefaults.setText(Messages.MavenUserLibraryProviderInstallPanel_Restore_Defaults);
restoreDefaults.addSelectionListener(new SelectionListener(){
@@ -351,7 +353,7 @@
Button addButton = new Button(buttonComposite, SWT.PUSH);
addButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- addButton.setText("Add");
+ addButton.setText(Messages.MavenUserLibraryProviderInstallPanel_Add);
addButton.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent e) {
@@ -360,8 +362,8 @@
public void widgetSelected(SelectionEvent e) {
Exclusion exclusion = PomFactory.eINSTANCE.createExclusion();
- exclusion.setGroupId("?");
- exclusion.setArtifactId("?");
+ exclusion.setGroupId("?"); //$NON-NLS-1$
+ exclusion.setArtifactId("?"); //$NON-NLS-1$
if (exclusions == null) {
ISelection sel = dependencyViewer.getSelection();
if (sel instanceof IStructuredSelection) {
@@ -383,7 +385,7 @@
final Button removeButton = new Button(buttonComposite, SWT.PUSH);
removeButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- removeButton.setText("Remove");
+ removeButton.setText(Messages.MavenUserLibraryProviderInstallPanel_Remove);
removeButton.setEnabled(false);
removeButton.addSelectionListener(new SelectionListener(){
@@ -395,7 +397,7 @@
Object object = selection.getFirstElement();
if (object instanceof Exclusion) {
Exclusion exclusion = (Exclusion) object;
- boolean ok = MessageDialog.openQuestion(getShell(), "Remove exclusion",
"Are you sure you want to remove the '" + exclusion.getGroupId() +
":" + exclusion.getArtifactId() + "' artifact?");
+ boolean ok = MessageDialog.openQuestion(getShell(),
Messages.MavenUserLibraryProviderInstallPanel_Remove_exclusion,
NLS.bind(Messages.MavenUserLibraryProviderInstallPanel_Are_you_sure_you_want_to_remove_the_artifact,
exclusion.getGroupId(), exclusion.getArtifactId()));
if (ok && exclusions != null) {
exclusions.remove(object);
}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java 2009-12-10
21:02:27 UTC (rev 19198)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java 2009-12-10
23:14:28 UTC (rev 19199)
@@ -34,6 +34,7 @@
import org.eclipse.wst.common.project.facet.ui.IWizardContext;
import org.jboss.tools.maven.core.IJBossMavenConstants;
import org.jboss.tools.maven.ui.Activator;
+import org.jboss.tools.maven.ui.Messages;
import org.maven.ide.eclipse.MavenPlugin;
import org.maven.ide.eclipse.core.IMavenConstants;
import org.maven.ide.eclipse.embedder.MavenModelManager;
@@ -53,8 +54,8 @@
public MavenFacetInstallPage() {
super(DataModelFactory.createDataModel(new AbstractDataModelProvider() {
}), "jboss.m2.facet.install.page"); //$NON-NLS-1$
- setTitle("JBoss M2 capabilities");
- setDescription("Add M2 capabilities to this Web Project");
+ setTitle(Messages.MavenFacetInstallPage_JBoss_M2_capabilities);
+ setDescription(Messages.MavenFacetInstallPage_Add_M2_capabilities_to_this_Web_Project);
}
@@ -100,16 +101,16 @@
}
- groupId = createField(composite,"Group Id:",IJBossMavenConstants.GROUP_ID);
- artifactId = createField(composite, "Artifact Id:",
IJBossMavenConstants.ARTIFACT_ID);
+ groupId =
createField(composite,Messages.MavenFacetInstallPage_Group_Id,IJBossMavenConstants.GROUP_ID);
+ artifactId = createField(composite, Messages.MavenFacetInstallPage_Artifact_Id,
IJBossMavenConstants.ARTIFACT_ID);
if (!mavenProjectExists) {
artifactId.setText(projectName);
}
- version = createField(composite, "Version:", IJBossMavenConstants.VERSION);
+ version = createField(composite, Messages.MavenFacetInstallPage_Version,
IJBossMavenConstants.VERSION);
Label packagingLabel = new Label(composite, SWT.NONE);
- packagingLabel.setText("Packaging:");
+ packagingLabel.setText(Messages.MavenFacetInstallPage_Packaging);
packaging = new Combo(composite, SWT.READ_ONLY);
gd = new GridData(GridData.FILL_HORIZONTAL);
packaging.setLayoutData(gd);
@@ -136,12 +137,12 @@
}
synchHelper.synchCombo(packaging, IJBossMavenConstants.PACKAGING, null);
- name = createField(composite, "Name:", IJBossMavenConstants.NAME);
+ name = createField(composite, Messages.MavenFacetInstallPage_Name,
IJBossMavenConstants.NAME);
name.setText(projectName);
- description = createField(composite, "Description",
IJBossMavenConstants.DESCRIPTION);
+ description = createField(composite, Messages.MavenFacetInstallPage_Description,
IJBossMavenConstants.DESCRIPTION);
if (!mavenProjectExists && fpwc.hasProjectFacet(SEAM_FACET)) {
- Text seamVersion = createField(composite, "Seam Maven version:",
IJBossMavenConstants.SEAM_MAVEN_VERSION);
+ Text seamVersion = createField(composite,
Messages.MavenFacetInstallPage_Seam_Maven_version,
IJBossMavenConstants.SEAM_MAVEN_VERSION);
IProjectFacetVersion seamFacetVersion = fpwc.getProjectFacetVersion(SEAM_FACET);
if ("2.0".equals(seamFacetVersion.getVersionString())) { //$NON-NLS-1$
seamVersion.setText("2.0.2.SP1"); //$NON-NLS-1$
@@ -151,7 +152,7 @@
seamVersion.setText("2.2.0.GA"); //$NON-NLS-1$
}
Button removeWTPContainers = new Button(composite,SWT.CHECK);
- removeWTPContainers.setText("Remove WTP Classpath containers");
+ removeWTPContainers.setText(Messages.MavenFacetInstallPage_Remove_WTP_Classpath_containers);
synchHelper.synchCheckbox(removeWTPContainers,
IJBossMavenConstants.REMOVE_WTP_CLASSPATH_CONTAINERS, null);
// FIXME add the Validate button
}
@@ -179,13 +180,13 @@
protected void validatePage() {
setErrorMessage(null);
if (groupId.getText().trim().length() <= 0) {
- setErrorMessage("The groupId field is required.");
+ setErrorMessage(Messages.MavenFacetInstallPage_The_groupId_field_is_required);
} else if (artifactId.getText().trim().length() <= 0) {
- setErrorMessage("The artifactId field is required.");
+ setErrorMessage(Messages.MavenFacetInstallPage_The_artifactId_field_is_required);
} else if (version.getText().trim().length() <= 0) {
- setErrorMessage("The version field is required.");
+ setErrorMessage(Messages.MavenFacetInstallPage_The_version_field_is_required);
} else if (packaging.getText().trim().length() <= 0) {
- setErrorMessage("The packaging field is required.");
+ setErrorMessage(Messages.MavenFacetInstallPage_The_packaging_field_is_required);
}
}
Added:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/messages.properties
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/messages.properties
(rev 0)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/messages.properties 2009-12-10
23:14:28 UTC (rev 19199)
@@ -0,0 +1,28 @@
+AutoResizeTableLayout_Unknown_column_layout_data=Unknown column layout data
+MavenFacetInstallPage_Add_M2_capabilities_to_this_Web_Project=Add M2 capabilities to this
Web Project
+MavenFacetInstallPage_Artifact_Id=Artifact Id:
+MavenFacetInstallPage_Description=Description
+MavenFacetInstallPage_Group_Id=Group Id:
+MavenFacetInstallPage_JBoss_M2_capabilities=JBoss M2 capabilities
+MavenFacetInstallPage_Name=Name:
+MavenFacetInstallPage_Packaging=Packaging:
+MavenFacetInstallPage_Remove_WTP_Classpath_containers=Remove WTP Classpath containers
+MavenFacetInstallPage_Seam_Maven_version=Seam Maven version:
+MavenFacetInstallPage_The_artifactId_field_is_required=The artifactId field is required.
+MavenFacetInstallPage_The_groupId_field_is_required=The groupId field is required.
+MavenFacetInstallPage_The_packaging_field_is_required=The packaging field is required.
+MavenFacetInstallPage_The_version_field_is_required=The version field is required.
+MavenFacetInstallPage_Version=Version:
+MavenUserLibraryProviderInstallPanel_Add=Add
+MavenUserLibraryProviderInstallPanel_Are_you_sure_you_want_to_remove_the_artifact=Are you
sure you want to remove the \'{0}\:{1} artifact?
+MavenUserLibraryProviderInstallPanel_ArtifactId=ArtifactId
+MavenUserLibraryProviderInstallPanel_Dependencies=Dependencies:
+MavenUserLibraryProviderInstallPanel_Exclusions=Exclusions:
+MavenUserLibraryProviderInstallPanel_GroupId=GroupId
+MavenUserLibraryProviderInstallPanel_Remove=Remove
+MavenUserLibraryProviderInstallPanel_Remove_dependency=Remove dependency
+MavenUserLibraryProviderInstallPanel_Remove_exclusion=Remove exclusion
+MavenUserLibraryProviderInstallPanel_Restore_Defaults=Restore Defaults
+MavenUserLibraryProviderInstallPanel_Scope=Scope
+MavenUserLibraryProviderInstallPanel_Type=Type
+MavenUserLibraryProviderInstallPanel_Version=Version