JBoss Tools SVN: r11822 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/figure.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2008-11-16 17:16:15 -0500 (Sun, 16 Nov 2008)
New Revision: 11822
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/figure/AbstractElementFigure.java
Log:
get rid of default size
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/figure/AbstractElementFigure.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/figure/AbstractElementFigure.java 2008-11-16 22:14:30 UTC (rev 11821)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/figure/AbstractElementFigure.java 2008-11-16 22:16:15 UTC (rev 11822)
@@ -37,7 +37,6 @@
public AbstractElementFigure() {
add(label);
customizeFigure();
- setSize(80, 40);
}
public void setIcon(Image icon) {
17 years, 5 months
JBoss Tools SVN: r11821 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2008-11-16 17:14:30 -0500 (Sun, 16 Nov 2008)
New Revision: 11821
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/DefaultEditPartFactory.java
Log:
get rid of comment
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/DefaultEditPartFactory.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/DefaultEditPartFactory.java 2008-11-16 22:12:55 UTC (rev 11820)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/DefaultEditPartFactory.java 2008-11-16 22:14:30 UTC (rev 11821)
@@ -24,18 +24,4 @@
return result;
}
-// private EditPart createEditPart(Object element) {
-// if (element instanceof Flow) {
-// return new RootEditPart();
-// } else if (element instanceof Container) {
-// return new ContainerEditPart();
-// } else if (element instanceof Connection) {
-// return new ConnectionEditPart();
-// } else if (element instanceof Node) {
-// return ElementRegistry.createEditPart((Node)element);
-// } else {
-// return null;
-// }
-// }
-
}
17 years, 5 months
JBoss Tools SVN: r11820 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2008-11-16 17:12:55 -0500 (Sun, 16 Nov 2008)
New Revision: 11820
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/PaletteFactory.java
Log:
palette factory is a concrete class with an empty implementation of createComponentEntries
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/PaletteFactory.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/PaletteFactory.java 2008-11-16 22:11:33 UTC (rev 11819)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/PaletteFactory.java 2008-11-16 22:12:55 UTC (rev 11820)
@@ -33,7 +33,7 @@
*
* @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
*/
-public abstract class PaletteFactory {
+public class PaletteFactory {
public PaletteRoot createPalette() {
PaletteRoot palette = new PaletteRoot();
@@ -71,6 +71,8 @@
return drawer;
}
- protected abstract List<PaletteEntry> createComponentEntries();
+ protected List<PaletteEntry> createComponentEntries() {
+ return new ArrayList<PaletteEntry>();
+ }
}
17 years, 5 months
JBoss Tools SVN: r11819 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/common/properties.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2008-11-16 17:11:33 -0500 (Sun, 16 Nov 2008)
New Revision: 11819
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/common/properties/DefaultNodePropertySource.java
Log:
null name cannot be handled by input field
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/common/properties/DefaultNodePropertySource.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/common/properties/DefaultNodePropertySource.java 2008-11-16 21:45:31 UTC (rev 11818)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/common/properties/DefaultNodePropertySource.java 2008-11-16 22:11:33 UTC (rev 11819)
@@ -28,7 +28,7 @@
}
public Object getPropertyValue(Object id) {
if (NAME.equals(id)) {
- return wrapper.getName();
+ return wrapper.getName() != null ? wrapper.getName() : "";
}
return null;
}
17 years, 5 months
JBoss Tools SVN: r11818 - trunk/portlet/features/org.jboss.tools.portlet.feature.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-16 16:45:31 -0500 (Sun, 16 Nov 2008)
New Revision: 11818
Added:
trunk/portlet/features/org.jboss.tools.portlet.feature/feature.properties
Log:
Added: trunk/portlet/features/org.jboss.tools.portlet.feature/feature.properties
===================================================================
--- trunk/portlet/features/org.jboss.tools.portlet.feature/feature.properties (rev 0)
+++ trunk/portlet/features/org.jboss.tools.portlet.feature/feature.properties 2008-11-16 21:45:31 UTC (rev 11818)
@@ -0,0 +1,41 @@
+###############################################################################
+# Copyright (c) 2008 JBoss, a division of Red Hat and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# JBoss, a division of Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss Portlet
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss, a division of Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=JBoss Portlet
+
+# "copyright" property - text of the "Feature Update Copyright"
+copyright=Copyright (c) 2008 JBoss, a division of Red Hat and others.\nAll rights reserved. This program and the accompanying materials\n
+are made available under the terms of the Eclipse Public License v1.0\nwhich accompanies this distribution, and is available at\nhttp\://www.eclipse.org/legal/epl-v10.html\n\nContributors\:\nJBoss, a division of Red Hat - Initial implementation.\n
+ ############### end of copyright property ####################################
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\nMarch 17, 2005\n\nUsage Of Content\n\nTHE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\nOTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\nUSE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\nAGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\nNOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\nAGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\nAND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\nOR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\nTERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\nOF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\nBELOW, THEN YOU MAY NOT USE THE CONTENT.\n\nApplicable Licenses\n\nUnless otherwise indicated, all Content made available by the Eclipse Foundation\nis provided to you under the terms and conditio!
ns of the Eclipse Public\nLicense Version 1.0 ("EPL"). A copy of the EPL is provided with this\nContent and is also available at http\://www.eclipse.org/legal/epl-v10.html.\nFor purposes of the EPL, "Program" will mean the Content.\n\nContent includes, but is not limited to, source code, object code,\ndocumentation and other files maintained in the Eclipse.org CVS\nrepository ("Repository") in CVS modules ("Modules") and made available\nas downloadable archives ("Downloads").\n\n- Content may be structured and packaged into modules to facilitate delivering,\nextending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\nplug-in fragments ("Fragments"), and features ("Features").\n- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\nin a directory named "plugins".\n- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\nEach Feature may be packaged as a sub-directory in a directory!
named "features".\nWithin a Feature, files named "feature.xml" may co
ntain a list of the names and version\nnumbers of the Plug-ins and/or Fragments associated with that Feature.\n- Features may also include other Features ("Included Features"). Within a Feature, files\nnamed "feature.xml" may contain a list of the names and version numbers of Included Features.\n\nFeatures may also include other Features ("Included Features"). Files named\n"feature.xml" may contain a list of the names and version numbers of\nIncluded Features.\n\nThe terms and conditions governing Plug-ins and Fragments should be\ncontained in files named "about.html" ("Abouts"). The terms and\nconditions governing Features and Included Features should be contained\nin files named "license.html" ("Feature Licenses"). Abouts and Feature\nLicenses may be located in any directory of a Download or Module\nincluding, but not limited to the following locations\:\n\n- The top-level (root) directory\n- Plug-in and Fragment directories\n- Inside Plug-ins and Fragments packaged as JAR!
s\n- Sub-directories of the directory named "src" of certain Plug-ins\n- Feature directories\n\nNote\: if a Feature made available by the Eclipse Foundation is installed using the\nEclipse Update Manager, you must agree to a license ("Feature Update\nLicense") during the installation process. If the Feature contains\nIncluded Features, the Feature Update License should either provide you\nwith the terms and conditions governing the Included Features or inform\nyou where you can locate them. Feature Update Licenses may be found in\nthe "license" property of files named "feature.properties". Such Abouts,\nFeature Licenses and Feature Update Licenses contain the terms and\nconditions (or references to such terms and conditions) that govern your\nuse of the associated Content in that directory.\n\nTHE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\nTO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\nSOME OF THESE OTHER LICENSE AGREEMENTS MA!
Y INCLUDE (BUT ARE NOT LIMITED TO)\:\n\n- Common Public License Versio
n 1.0 (available at http\://www.eclipse.org/legal/cpl-v10.html)\n- Apache Software License 1.1 (available at http\://www.apache.org/licenses/LICENSE)\n- Apache Software License 2.0 (available at http\://www.apache.org/licenses/LICENSE-2.0)\n- IBM Public License 1.0 (available at http\://oss.software.ibm.com/developerworks/opensource/license10.html)\n- Metro Link Public License 1.00 (available at http\://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n- Mozilla Public License Version 1.1 (available at http\://www.mozilla.org/MPL/MPL-1.1.html)\n\nIT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\nTO USE OF THE CONTENT. If no About, Feature License or Feature Update License\nis provided, please contact the Eclipse Foundation to determine what terms and conditions\ngovern that particular Content.\n\nCryptography\n\nContent may contain encryption software. The country in which you are\ncurrently may have restrictions on the import, posse!
ssion, and use,\nand/or re-export to another country, of encryption software. BEFORE\nusing any encryption software, please check the country's laws,\nregulations and policies concerning the import, possession, or use,\nand re-export of encryption software, to see if this is permitted.\n\nJava and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
+########### end of license property ##########################################
17 years, 5 months
JBoss Tools SVN: r11817 - in trunk/portlet/plugins/org.jboss.tools.portlet.core: META-INF and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-16 16:44:27 -0500 (Sun, 16 Nov 2008)
New Revision: 11817
Added:
trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF
trunk/portlet/plugins/org.jboss.tools.portlet.core/build.properties
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IJBossWebUtil.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/BasePortletClasspathContainer.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/JSFPortlet10LibrariesContainerInitializer.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet10LibrariesContainerInitializer.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet20LibrariesContainerInitializer.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletConfigurationPresetFactory10.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletConfigurationPresetFactory10.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletConfigurationPresetFactory10.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletFacetInstallDelegate.java
Log:
JBIDE-3001 Internationalize Portal component
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF 2008-11-16 21:44:27 UTC (rev 11817)
@@ -1,10 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Portlet Core Plug-in
+Bundle-Name: %BundleName
Bundle-SymbolicName: org.jboss.tools.portlet.core;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.jboss.tools.portlet.core.PortletCoreActivator
-Bundle-Vendor: JBoss, a division of Red Hat
+Bundle-Vendor: %BundleVendor
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.wst.common.project.facet.core,
org.eclipse.core.resources,
@@ -24,3 +24,4 @@
Export-Package: org.jboss.tools.portlet.core,
org.jboss.tools.portlet.core.internal,
org.jboss.tools.portlet.core.internal.project.facet
+Bundle-Localization: plugin
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/build.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/build.properties 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/build.properties 2008-11-16 21:44:27 UTC (rev 11817)
@@ -4,4 +4,5 @@
.,\
plugin.xml,\
resources/,\
- dtdsAndSchemas/
+ dtdsAndSchemas/,\
+ plugin.properties
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties 2008-11-16 21:44:27 UTC (rev 11817)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.portlet.core
+BundleVendor = JBoss, a division of Red Hat
+BundleName = Portlet Core Plug-in
\ No newline at end of file
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IJBossWebUtil.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IJBossWebUtil.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IJBossWebUtil.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -5,9 +5,9 @@
public interface IJBossWebUtil {
- static final Object JSF_SERVLET_CLASS = "javax.faces.webapp.FacesServlet";
- static final String WEB_INF_FACES_CONFIG_XML = "/WEB-INF/faces-config.xml";
- static final String JAVAX_FACES_CONFIG_FILES = "javax.faces.CONFIG_FILES";
+ static final Object JSF_SERVLET_CLASS = "javax.faces.webapp.FacesServlet"; //$NON-NLS-1$
+ static final String WEB_INF_FACES_CONFIG_XML = "/WEB-INF/faces-config.xml"; //$NON-NLS-1$
+ static final String JAVAX_FACES_CONFIG_FILES = "javax.faces.CONFIG_FILES"; //$NON-NLS-1$
void configureContextParam( IProject project,
IProgressMonitor monitor,String name, String value,String description);
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -19,40 +19,40 @@
public interface IPortletConstants {
- static final String PORTLET_FACET_ID="jboss.portlet";
+ static final String PORTLET_FACET_ID="jboss.portlet"; //$NON-NLS-1$
- static final String JSFPORTLET_FACET_ID="jboss.jsfportlet";
+ static final String JSFPORTLET_FACET_ID="jboss.jsfportlet"; //$NON-NLS-1$
- static final String SEAMPORTLET_FACET_ID="jboss.seamportlet";
+ static final String SEAMPORTLET_FACET_ID="jboss.seamportlet"; //$NON-NLS-1$
- static final String CONFIG_PATH = "WEB-INF/portlet.xml";
+ static final String CONFIG_PATH = "WEB-INF/portlet.xml"; //$NON-NLS-1$
- static final String PORTLET_FACET_VERSION_10 = "1.0";
+ static final String PORTLET_FACET_VERSION_10 = "1.0"; //$NON-NLS-1$
- static final String PORTLET_FACET_VERSION_20 = "2.0";
+ static final String PORTLET_FACET_VERSION_20 = "2.0"; //$NON-NLS-1$
- static final String JSFPORTLET_FACET_VERSION_10 = "1.0";
+ static final String JSFPORTLET_FACET_VERSION_10 = "1.0"; //$NON-NLS-1$
- static final String PORTLET_CONTAINER_10_ID = "org.jboss.tools.portlet.core.internal.portletlibrarycontainer.v10";
+ static final String PORTLET_CONTAINER_10_ID = "org.jboss.tools.portlet.core.internal.portletlibrarycontainer.v10"; //$NON-NLS-1$
- static final String PORTLET_CONTAINER_20_ID = "org.jboss.tools.portlet.core.internal.portletlibrarycontainer.v20";
+ static final String PORTLET_CONTAINER_20_ID = "org.jboss.tools.portlet.core.internal.portletlibrarycontainer.v20"; //$NON-NLS-1$
- static final String JSFPORTLET_CONTAINER_10_ID = "org.jboss.tools.portlet.core.internal.jsfportletlibrarycontainer.v10";
+ static final String JSFPORTLET_CONTAINER_10_ID = "org.jboss.tools.portlet.core.internal.jsfportletlibrarycontainer.v10"; //$NON-NLS-1$
- static final String PORTLET_INSTANCES_FILE = "WEB-INF/portlet-instances.xml";
+ static final String PORTLET_INSTANCES_FILE = "WEB-INF/portlet-instances.xml"; //$NON-NLS-1$
- static final String PORTLET_OBJECT_FILE = "WEB-INF/default-object.xml";
+ static final String PORTLET_OBJECT_FILE = "WEB-INF/default-object.xml"; //$NON-NLS-1$
- static final String JBOSS_APP_FILE = "WEB-INF/jboss-app.xml";
+ static final String JBOSS_APP_FILE = "WEB-INF/jboss-app.xml"; //$NON-NLS-1$
- static final String DEPLOY_JARS = "DEPLOY_JARS";
+ static final String DEPLOY_JARS = "DEPLOY_JARS"; //$NON-NLS-1$
- static final String PORTLET_BRIDGE_RUNTIME = "PORTLET_BRIDGE_RUNTIME";
+ static final String PORTLET_BRIDGE_RUNTIME = "PORTLET_BRIDGE_RUNTIME"; //$NON-NLS-1$
- static final String JSF_SECTION = "jsfSection";
+ static final String JSF_SECTION = "jsfSection"; //$NON-NLS-1$
- static final String WEB_INF_LIB = "WEB-INF/lib";
+ static final String WEB_INF_LIB = "WEB-INF/lib"; //$NON-NLS-1$
- static final String JBOSS_PORTLET_FILE = "WEB-INF/jboss-portlet.xml";
+ static final String JBOSS_PORTLET_FILE = "WEB-INF/jboss-portlet.xml"; //$NON-NLS-1$
}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -0,0 +1,41 @@
+package org.jboss.tools.portlet.core;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.tools.portlet.core.messages"; //$NON-NLS-1$
+ public static String BasePortletClasspathContainer_Error_loading_classpath_container;
+ public static String JSFPortlet10LibrariesContainerInitializer_Error_loading_classpath_container;
+ public static String JSFPortlet10LibrariesContainerInitializer_JBoss_JSF_Portlet_Libraries_v1_0;
+ public static String JSFPortlet10LibrariesContainerInitializer_JBossJSF_Portlet_Classpath_Container_Initializer_v1_0;
+ public static String JSFPortletConfigurationPresetFactory10_JBoss_JSF_Portlet_Project_v1_0;
+ public static String JSFPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_JSF_Portlet_Facet;
+ public static String JSFPortletFacetInstallDelegate_Cannot_find_the_JSF_servlet;
+ public static String JSFPortletFacetInstallDelegate_Error_loading_classpath_container;
+ public static String JSFPortletFacetInstallDelegate_Missing_configuration;
+ public static String JSFPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable;
+ public static String Portlet10LibrariesContainerInitializer_1;
+ public static String Portlet10LibrariesContainerInitializer_JBoss_Portlet_Classpath_Container_Initializer_v1_0;
+ public static String Portlet20LibrariesContainerInitializer_JBoss_Portlet_Classpath_Container_Initializer;
+ public static String Portlet20LibrariesContainerInitializer_JBoss_Portlet_Library;
+ public static String PortletConfigurationPresetFactory10_Portlet_Project_v1_0;
+ public static String PortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Portlet_Facet;
+ public static String PortletFacetInstallDelegate_Exception_occured_while_creating_portlet_xml;
+ public static String PortletFacetInstallDelegate_Missing_configuration;
+ public static String PortletFacetInstallDelegate_The_web_xml_file_is_not_updateable;
+ public static String PortletPostInstallListener_Cannot_find_Portletbridge_Runtime;
+ public static String PortletPostInstallListener_Cannot_find_the_examples_directory;
+ public static String PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file;
+ public static String PortletPostInstallListener_Invalid_Portletbridge_Runtime;
+ public static String SeamPortletConfigurationPresetFactory10_JBoss_Seam_Portlet_Project_v1_0;
+ public static String SeamPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Seam_Portlet_Facet;
+ public static String SeamPortletFacetInstallDelegate_Missing_configuration;
+ public static String SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -30,9 +30,9 @@
public class PortletCoreActivator extends Plugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.portlet.core";
- public static final String RESOURCES_FOLDER = "resources";
- public static final String JSFPORTLET_FOLDER = "jsfportlet";
+ public static final String PLUGIN_ID = "org.jboss.tools.portlet.core"; //$NON-NLS-1$
+ public static final String RESOURCES_FOLDER = "resources"; //$NON-NLS-1$
+ public static final String JSFPORTLET_FOLDER = "jsfportlet"; //$NON-NLS-1$
public static final IOverwriteQuery OVERWRITE_ALL_QUERY = new IOverwriteQuery() {
public String queryOverwrite(String pathString) {
@@ -105,34 +105,34 @@
.getRootFolder().getUnderlyingFolder().getRawLocation().append(
new Path(IPortletConstants.CONFIG_PATH));
StringBuffer buffer = new StringBuffer();
- buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
+ buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
if (IPortletConstants.PORTLET_FACET_VERSION_20.equals(versionString)) {
buffer
- .append("<portlet-app xmlns=\"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd\"");
- buffer.append("\n\t");
+ .append("<portlet-app xmlns=\"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd\""); //$NON-NLS-1$
+ buffer.append("\n\t"); //$NON-NLS-1$
buffer
- .append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ");
- buffer.append("\n\t");
+ .append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "); //$NON-NLS-1$
+ buffer.append("\n\t"); //$NON-NLS-1$
buffer
- .append("xsi:schemaLocation=\"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd\" ");
- buffer.append("\n\t");
- buffer.append("version=\"2.0\">");
+ .append("xsi:schemaLocation=\"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd\" "); //$NON-NLS-1$
+ buffer.append("\n\t"); //$NON-NLS-1$
+ buffer.append("version=\"2.0\">"); //$NON-NLS-1$
} else {
buffer
- .append("<portlet-app xmlns=\"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd\"");
- buffer.append("\n\t");
+ .append("<portlet-app xmlns=\"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd\""); //$NON-NLS-1$
+ buffer.append("\n\t"); //$NON-NLS-1$
buffer
- .append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
- buffer.append("\n\t");
+ .append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""); //$NON-NLS-1$
+ buffer.append("\n\t"); //$NON-NLS-1$
buffer
- .append("xsi:schemaLocation=\"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd\"");
- buffer.append("\n\t");
- buffer.append("version=\"1.0\">");
+ .append("xsi:schemaLocation=\"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd\""); //$NON-NLS-1$
+ buffer.append("\n\t"); //$NON-NLS-1$
+ buffer.append("version=\"1.0\">"); //$NON-NLS-1$
}
- buffer.append("\n\n");
- buffer.append("</portlet-app>");
- buffer.append("\n");
+ buffer.append("\n\n"); //$NON-NLS-1$
+ buffer.append("</portlet-app>"); //$NON-NLS-1$
+ buffer.append("\n"); //$NON-NLS-1$
OutputStream outputStream = null;
try {
IPath directory = portletXmlPath.removeLastSegments(1);
@@ -171,16 +171,16 @@
throws CoreException, UnsupportedEncodingException {
StringBuffer buffer = new StringBuffer();
- buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
- buffer.append("<!DOCTYPE deployments PUBLIC \n");
- buffer.append("\"-//JBoss Portal//DTD Portlet Instances 2.6//EN\"\n");
+ buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
+ buffer.append("<!DOCTYPE deployments PUBLIC \n"); //$NON-NLS-1$
+ buffer.append("\"-//JBoss Portal//DTD Portlet Instances 2.6//EN\"\n"); //$NON-NLS-1$
buffer
- .append("\"http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd\">");
- buffer.append("<deployments>");
- buffer.append("</deployments>");
+ .append("\"http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd\">"); //$NON-NLS-1$
+ buffer.append("<deployments>"); //$NON-NLS-1$
+ buffer.append("</deployments>"); //$NON-NLS-1$
ByteArrayInputStream source = new ByteArrayInputStream(buffer
- .toString().getBytes("UTF8"));
+ .toString().getBytes("UTF8")); //$NON-NLS-1$
file.create(source, true, new NullProgressMonitor());
}
@@ -188,16 +188,16 @@
throws CoreException, UnsupportedEncodingException {
StringBuffer buffer = new StringBuffer();
- buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
- buffer.append("<!DOCTYPE deployments PUBLIC \n");
- buffer.append("\"-//JBoss Portal//DTD Portal Object 2.6//EN\"\n");
+ buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
+ buffer.append("<!DOCTYPE deployments PUBLIC \n"); //$NON-NLS-1$
+ buffer.append("\"-//JBoss Portal//DTD Portal Object 2.6//EN\"\n"); //$NON-NLS-1$
buffer
- .append("\"http://www.jboss.org/portal/dtd/portal-object_2_6.dtd\">");
- buffer.append("<deployments>");
- buffer.append("</deployments>");
+ .append("\"http://www.jboss.org/portal/dtd/portal-object_2_6.dtd\">"); //$NON-NLS-1$
+ buffer.append("<deployments>"); //$NON-NLS-1$
+ buffer.append("</deployments>"); //$NON-NLS-1$
ByteArrayInputStream source = new ByteArrayInputStream(buffer
- .toString().getBytes("UTF8"));
+ .toString().getBytes("UTF8")); //$NON-NLS-1$
file.create(source, true, new NullProgressMonitor());
}
@@ -205,15 +205,15 @@
throws CoreException, UnsupportedEncodingException {
StringBuffer buffer = new StringBuffer();
- buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
- buffer.append("<!DOCTYPE jboss-app PUBLIC \n");
- buffer.append("\"-//JBoss Portal//DTD JBoss Web Application 2.6//EN\"\n");
- buffer.append("\"http://www.jboss.org/portal/dtd/jboss-app_2_6.dtd\">");
- buffer.append("<jboss-app>");
- buffer.append("</jboss-app>");
+ buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
+ buffer.append("<!DOCTYPE jboss-app PUBLIC \n"); //$NON-NLS-1$
+ buffer.append("\"-//JBoss Portal//DTD JBoss Web Application 2.6//EN\"\n"); //$NON-NLS-1$
+ buffer.append("\"http://www.jboss.org/portal/dtd/jboss-app_2_6.dtd\">"); //$NON-NLS-1$
+ buffer.append("<jboss-app>"); //$NON-NLS-1$
+ buffer.append("</jboss-app>"); //$NON-NLS-1$
ByteArrayInputStream source = new ByteArrayInputStream(buffer
- .toString().getBytes("UTF8"));
+ .toString().getBytes("UTF8")); //$NON-NLS-1$
file.create(source, true, new NullProgressMonitor());
}
@@ -221,16 +221,16 @@
throws CoreException, UnsupportedEncodingException {
StringBuffer buffer = new StringBuffer();
- buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
- buffer.append("<!DOCTYPE portlet-app PUBLIC \n");
+ buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
+ buffer.append("<!DOCTYPE portlet-app PUBLIC \n"); //$NON-NLS-1$
buffer
- .append("\"-//JBoss Portal//DTD JBoss Portlet 2.6//EN\"\n");
- buffer.append("\"http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd\">");
- buffer.append("<portlet-app>");
- buffer.append("</portlet-app>");
+ .append("\"-//JBoss Portal//DTD JBoss Portlet 2.6//EN\"\n"); //$NON-NLS-1$
+ buffer.append("\"http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd\">"); //$NON-NLS-1$
+ buffer.append("<portlet-app>"); //$NON-NLS-1$
+ buffer.append("</portlet-app>"); //$NON-NLS-1$
ByteArrayInputStream source = new ByteArrayInputStream(buffer
- .toString().getBytes("UTF8"));
+ .toString().getBytes("UTF8")); //$NON-NLS-1$
file.create(source, true, new NullProgressMonitor());
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/BasePortletClasspathContainer.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/BasePortletClasspathContainer.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/BasePortletClasspathContainer.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -15,13 +15,14 @@
import org.eclipse.jdt.core.JavaCore;
import org.jboss.ide.eclipse.as.classpath.core.jee.AbstractClasspathContainer;
import org.jboss.ide.eclipse.as.classpath.core.xpl.ClasspathDecorations;
+import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
public abstract class BasePortletClasspathContainer extends AbstractClasspathContainer {
- private static final String PORTLET_FOLDER = "portlet";
+ private static final String PORTLET_FOLDER = "portlet"; //$NON-NLS-1$
public final static String SUFFIX = PORTLET_FOLDER;//$NON-NLS-1$
- public final static String PREFIX = "org.jboss.tools.portlet.core";
- private static final String RESOURCES_FOLDER = "resources";
+ public final static String PREFIX = "org.jboss.tools.portlet.core"; //$NON-NLS-1$
+ private static final String RESOURCES_FOLDER = "resources"; //$NON-NLS-1$
public BasePortletClasspathContainer(IPath path, String description,String suffix) {
super(path, description, suffix);
@@ -31,11 +32,11 @@
protected String getBaseDir() {
try {
URL installURL = FileLocator.toFileURL(PortletCoreActivator
- .getDefault().getBundle().getEntry("/"));
+ .getDefault().getBundle().getEntry("/")); //$NON-NLS-1$
return installURL.getFile().toString();
} catch (IOException e) {
PortletCoreActivator
- .log(e, "Error loading classpath container");
+ .log(e, Messages.BasePortletClasspathContainer_Error_loading_classpath_container);
}
return null;
}
@@ -50,7 +51,7 @@
String version = getPortletVersion();
File libDir = new File(baseDir
- + "/" + RESOURCES_FOLDER + "/" + PORTLET_FOLDER + "/" + version);//$NON-NLS-1$ //$NON-NLS-2$
+ + "/" + RESOURCES_FOLDER + "/" + PORTLET_FOLDER + "/" + version);//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
File[] jars = libDir.listFiles(new FileFilter() {
public boolean accept(File file) {
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/JSFPortlet10LibrariesContainerInitializer.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/JSFPortlet10LibrariesContainerInitializer.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/JSFPortlet10LibrariesContainerInitializer.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -28,6 +28,7 @@
import org.jboss.ide.eclipse.as.classpath.core.jee.AbstractClasspathContainerInitializer;
import org.jboss.ide.eclipse.as.classpath.core.xpl.ClasspathDecorations;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
/**
@@ -38,7 +39,7 @@
AbstractClasspathContainerInitializer {
public String getDescription(IPath containerPath, IJavaProject project) {
- return "JBoss JSF Portlet Classpath Container Initializer v1.0";
+ return Messages.JSFPortlet10LibrariesContainerInitializer_JBossJSF_Portlet_Classpath_Container_Initializer_v1_0;
}
@Override
@@ -54,22 +55,21 @@
private class JSFPortlet10ClasspathContainer extends AbstractClasspathContainer {
public final static String SUFFIX = PortletCoreActivator.JSFPORTLET_FOLDER;//$NON-NLS-1$
- public final static String PREFIX = "org.jboss.tools.portlet.core";
- public final static String DESCRIPTION = "JBoss JSF Portlet Libraries v1.0";
+ public final static String PREFIX = "org.jboss.tools.portlet.core"; //$NON-NLS-1$
public JSFPortlet10ClasspathContainer(IPath path) {
- super(path, DESCRIPTION, SUFFIX);
+ super(path, Messages.JSFPortlet10LibrariesContainerInitializer_JBoss_JSF_Portlet_Libraries_v1_0, SUFFIX);
}
@Override
protected String getBaseDir() {
try {
URL installURL = FileLocator.toFileURL(PortletCoreActivator
- .getDefault().getBundle().getEntry("/"));
+ .getDefault().getBundle().getEntry("/")); //$NON-NLS-1$
return installURL.getFile().toString();
} catch (IOException e) {
PortletCoreActivator
- .log(e, "Error loading classpath container");
+ .log(e, Messages.JSFPortlet10LibrariesContainerInitializer_Error_loading_classpath_container);
}
return null;
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet10LibrariesContainerInitializer.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet10LibrariesContainerInitializer.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet10LibrariesContainerInitializer.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -15,6 +15,7 @@
import org.jboss.ide.eclipse.as.classpath.core.jee.AbstractClasspathContainer;
import org.jboss.ide.eclipse.as.classpath.core.jee.AbstractClasspathContainerInitializer;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
/**
* @author snjeza
@@ -24,7 +25,7 @@
AbstractClasspathContainerInitializer {
public String getDescription(IPath containerPath, IJavaProject project) {
- return "JBoss Portlet Classpath Container Initializer v1.0";
+ return Messages.Portlet10LibrariesContainerInitializer_JBoss_Portlet_Classpath_Container_Initializer_v1_0;
}
@Override
@@ -39,10 +40,8 @@
private class Portlet10ClasspathContainer extends BasePortletClasspathContainer {
- public final static String DESCRIPTION = "JBoss Portlet Libraries v1.0";
-
public Portlet10ClasspathContainer(IPath path) {
- super(path, DESCRIPTION, SUFFIX);
+ super(path, Messages.Portlet10LibrariesContainerInitializer_1, SUFFIX);
}
@Override
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet20LibrariesContainerInitializer.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet20LibrariesContainerInitializer.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/Portlet20LibrariesContainerInitializer.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -15,6 +15,7 @@
import org.jboss.ide.eclipse.as.classpath.core.jee.AbstractClasspathContainer;
import org.jboss.ide.eclipse.as.classpath.core.jee.AbstractClasspathContainerInitializer;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
/**
* @author snjeza
@@ -24,7 +25,7 @@
AbstractClasspathContainerInitializer {
public String getDescription(IPath containerPath, IJavaProject project) {
- return "JBoss Portlet Classpath Container Initializer";
+ return Messages.Portlet20LibrariesContainerInitializer_JBoss_Portlet_Classpath_Container_Initializer;
}
@Override
@@ -39,10 +40,8 @@
private class Portlet10ClasspathContainer extends BasePortletClasspathContainer {
- public final static String DESCRIPTION = "JBoss Portlet Library";
-
public Portlet10ClasspathContainer(IPath path) {
- super(path, DESCRIPTION, SUFFIX);
+ super(path, Messages.Portlet20LibrariesContainerInitializer_JBoss_Portlet_Library, SUFFIX);
}
@Override
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletConfigurationPresetFactory10.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletConfigurationPresetFactory10.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletConfigurationPresetFactory10.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -26,6 +26,7 @@
import org.eclipse.wst.common.project.facet.core.PresetDefinition;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
/**
* @author <a href="mailto:kosta@bea.com">Konstantin Komissarchik</a>
@@ -45,8 +46,8 @@
.getProjectFacetVersion(WebFacetUtils.WEB_FACET);
final IProjectFacet PORTLET_FACET = ProjectFacetsManager.getProjectFacet(IPortletConstants.PORTLET_FACET_ID);
final IProjectFacetVersion portletFacetVersion = PORTLET_FACET.getVersion(IPortletConstants.PORTLET_FACET_VERSION_10);
- final IProjectFacet JSF_FACET = ProjectFacetsManager.getProjectFacet("jst.jsf");
- final IProjectFacetVersion jsfFacetVersion = JSF_FACET.getVersion("1.2");
+ final IProjectFacet JSF_FACET = ProjectFacetsManager.getProjectFacet("jst.jsf"); //$NON-NLS-1$
+ final IProjectFacetVersion jsfFacetVersion = JSF_FACET.getVersion("1.2"); //$NON-NLS-1$
if (webFacetVersion != null
&& webFacetVersion.compareTo(WebFacetUtils.WEB_23) >= 0 &&
portletFacetVersion != null) {
@@ -60,8 +61,8 @@
facets.add(JavaFacetUtils.JAVA_50);
facets.add(portletFacetVersion);
facets.add(jsfFacetVersion);
- return new PresetDefinition("JBoss JSF Portlet Project v1.0",
- "JBoss JSF Portlet Project v1.0", facets);
+ return new PresetDefinition(Messages.JSFPortletConfigurationPresetFactory10_JBoss_JSF_Portlet_Project_v1_0,
+ Messages.JSFPortletConfigurationPresetFactory10_JBoss_JSF_Portlet_Project_v1_0, facets);
}
return null;
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -14,6 +14,7 @@
import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
/**
* @author snjeza
@@ -31,7 +32,7 @@
return Boolean.TRUE;
}
if (propertyName.equals(IPortletConstants.PORTLET_BRIDGE_RUNTIME)) {
- return "";
+ return ""; //$NON-NLS-1$
}
return super.getDefaultProperty(propertyName);
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -51,6 +51,7 @@
import org.jboss.tools.portlet.core.IPortletConstants;
import org.jboss.tools.portlet.core.JBossWebUtil;
import org.jboss.tools.portlet.core.JBossWebUtil25;
+import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
/**
@@ -59,8 +60,8 @@
*/
public class JSFPortletFacetInstallDelegate implements IDelegate {
- private static final String ORG_JBOSS_PORTLET_STATE_MANAGER = "org.jboss.portletbridge.application.PortletStateManager";
- private static final String ORG_JBOSS_PORTLET_VIEW_HANDLER = "org.jboss.portletbridge.application.PortletViewHandler";
+ private static final String ORG_JBOSS_PORTLET_STATE_MANAGER = "org.jboss.portletbridge.application.PortletStateManager"; //$NON-NLS-1$
+ private static final String ORG_JBOSS_PORTLET_VIEW_HANDLER = "org.jboss.portletbridge.application.PortletViewHandler"; //$NON-NLS-1$
/*
* (non-Javadoc)
@@ -76,7 +77,7 @@
throws CoreException {
if (monitor != null) {
- monitor.beginTask("", 1);
+ monitor.beginTask("", 1); //$NON-NLS-1$
}
try {
IDataModel config = null;
@@ -86,7 +87,7 @@
} else {
throw new CoreException(
PortletCoreActivator
- .getStatus("Internal Error creating JBoss JSF Portlet Facet. Missing configuration."));
+ .getStatus(Messages.JSFPortletFacetInstallDelegate_Missing_configuration));
}
// check whether web.xml is available for update
@@ -95,11 +96,11 @@
if (provider == null) {
throw new CoreException(
PortletCoreActivator
- .getStatus("Cannot configure web module for JBoss JSF Portlet Facet"));
+ .getStatus(Messages.JSFPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_JSF_Portlet_Facet));
} else if (!(provider.validateEdit(null, null).isOK())) {
if (!(provider.validateEdit(null, null).isOK())) {
throw new CoreException(PortletCoreActivator
- .getStatus("The web.xml file is not updateable"));
+ .getStatus(Messages.JSFPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable));
}
}
@@ -222,37 +223,37 @@
} else {
util = new JBossWebUtil();
}
- String name = "org.ajax4jsf.VIEW_HANDLERS";
- String value = "org.jboss.portletbridge.application.FaceletPortletViewHandler";
+ String name = "org.ajax4jsf.VIEW_HANDLERS"; //$NON-NLS-1$
+ String value = "org.jboss.portletbridge.application.FaceletPortletViewHandler"; //$NON-NLS-1$
String description = null;
util.configureContextParam(project, monitor, name, value,
description);
- name = "javax.portlet.faces.renderPolicy";
- value = "ALWAYS_DELEGATE";
+ name = "javax.portlet.faces.renderPolicy"; //$NON-NLS-1$
+ value = "ALWAYS_DELEGATE"; //$NON-NLS-1$
util.configureContextParam(project, monitor, name, value,
description);
// RichFaces settings
- name = "org.richfaces.LoadStyleStrategy";
- value = "NONE";
+ name = "org.richfaces.LoadStyleStrategy"; //$NON-NLS-1$
+ value = "NONE"; //$NON-NLS-1$
util.configureContextParam(project, monitor, name, value,
description);
- name = "org.richfaces.LoadScriptStrategy";
- value = "NONE";
+ name = "org.richfaces.LoadScriptStrategy"; //$NON-NLS-1$
+ value = "NONE"; //$NON-NLS-1$
util.configureContextParam(project, monitor, name, value,
description);
- name = "org.ajax4jsf.RESOURCE_URI_PREFIX";
- value = "rfRes";
+ name = "org.ajax4jsf.RESOURCE_URI_PREFIX"; //$NON-NLS-1$
+ value = "rfRes"; //$NON-NLS-1$
util.configureContextParam(project, monitor, name, value,
description);
- String displayName = "Ajax4jsf Filter";
- String filterName = "ajax4jsf";
- String className = "org.ajax4jsf.Filter";
+ String displayName = "Ajax4jsf Filter"; //$NON-NLS-1$
+ String filterName = "ajax4jsf"; //$NON-NLS-1$
+ String className = "org.ajax4jsf.Filter"; //$NON-NLS-1$
util.configureFilter(project, monitor, filterName, className,
displayName, description);
@@ -260,7 +261,7 @@
.getModelObject());
if (servletName == null) {
RuntimeException e = new RuntimeException(
- "Cannot find the JSF servlet");
+ Messages.JSFPortletFacetInstallDelegate_Cannot_find_the_JSF_servlet);
PortletCoreActivator.log(e);
throw e;
}
@@ -290,7 +291,7 @@
String[] fileList = pbFolder.list(new FilenameFilter() {
public boolean accept(File dir, String name) {
- if (name.startsWith("portletbridge") || name.endsWith(".jar")) {
+ if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
return true;
}
return false;
@@ -321,7 +322,7 @@
}
} catch (Exception e) {
PortletCoreActivator
- .log(e, "Error loading classpath container");
+ .log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
}
} else {
IPath containerPath = new Path(
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletConfigurationPresetFactory10.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletConfigurationPresetFactory10.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletConfigurationPresetFactory10.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -26,6 +26,7 @@
import org.eclipse.wst.common.project.facet.core.PresetDefinition;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
/**
* @author <a href="mailto:kosta@bea.com">Konstantin Komissarchik</a>
@@ -53,8 +54,8 @@
facets.add(portletFacetVersion10);
facets.add(webFacetVersion);
facets.add(JavaFacetUtils.JAVA_50);
- return new PresetDefinition("Portlet Project v1.0",
- "Portlet Project v1.0", facets);
+ return new PresetDefinition(Messages.PortletConfigurationPresetFactory10_Portlet_Project_v1_0,
+ Messages.PortletConfigurationPresetFactory10_Portlet_Project_v1_0, facets);
}
return null;
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -25,6 +25,7 @@
import org.eclipse.wst.common.project.facet.core.IDelegate;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
/**
@@ -47,7 +48,7 @@
throws CoreException {
if (monitor != null) {
- monitor.beginTask("", 1);
+ monitor.beginTask("", 1); //$NON-NLS-1$
}
try {
IDataModel config = null;
@@ -57,7 +58,7 @@
} else {
throw new CoreException(
PortletCoreActivator
- .getStatus("Internal Error creating JBoss Portlet Facet. Missing configuration."));
+ .getStatus(Messages.PortletFacetInstallDelegate_Missing_configuration));
}
// check whether web.xml is available for update
@@ -66,11 +67,11 @@
if (provider == null) {
throw new CoreException(
PortletCoreActivator
- .getStatus("Cannot configure web module for JBoss Portlet Facet"));
+ .getStatus(Messages.PortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Portlet_Facet));
} else if (!(provider.validateEdit(null, null).isOK())) {
if (!(provider.validateEdit(null, null).isOK())) {
throw new CoreException(PortletCoreActivator
- .getStatus("The web.xml file is not updateable"));
+ .getStatus(Messages.PortletFacetInstallDelegate_The_web_xml_file_is_not_updateable));
}
}
@@ -121,7 +122,7 @@
op.run(monitor);
} catch (CoreException e) {
PortletCoreActivator.log(e,
- "Exception occured while creating portlet.xml");
+ Messages.PortletFacetInstallDelegate_Exception_occured_while_creating_portlet_xml);
}
}
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -28,11 +28,12 @@
import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectListener;
import org.eclipse.wst.common.project.facet.core.events.IProjectFacetActionEvent;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
public class PortletPostInstallListener implements IFacetedProjectListener {
- private static final String SEAM_FACET_ID = "jst.seam";
+ private static final String SEAM_FACET_ID = "jst.seam"; //$NON-NLS-1$
private static final IOverwriteQuery OVERWRITE_NONE_QUERY = new IOverwriteQuery()
{
public String queryOverwrite(String pathString)
@@ -69,7 +70,7 @@
portletbridgeRuntime = dataModel
.getStringProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
if (portletbridgeRuntime == null) {
- PortletCoreActivator.log(null, "Invalid Portletbridge Runtime.");
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Invalid_Portletbridge_Runtime);
return;
}
} catch (Exception e) {
@@ -80,21 +81,21 @@
if (isJSFPortlet) {
File portletbridgeHome = new File(portletbridgeRuntime);
if (!portletbridgeHome.exists()) {
- PortletCoreActivator.log(null, "Cannot find Portletbridge Runtime.");
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Portletbridge_Runtime);
return;
}
if (!portletbridgeHome.isDirectory()) {
- PortletCoreActivator.log(null, "Invalid Portletbridge Runtime.");
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Invalid_Portletbridge_Runtime);
return;
}
- File examplesHome = new File(portletbridgeHome,"examples");
+ File examplesHome = new File(portletbridgeHome,"examples"); //$NON-NLS-1$
if (!examplesHome.exists() || !examplesHome.isDirectory()) {
- PortletCoreActivator.log(null, "Cannot find the examples directory.");
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_the_examples_directory);
return;
}
- File richFacesPortletZip = new File(examplesHome,"RichFacesPortlet.war");
+ File richFacesPortletZip = new File(examplesHome,"RichFacesPortlet.war"); //$NON-NLS-1$
if (!richFacesPortletZip.exists() || !richFacesPortletZip.isFile()) {
- PortletCoreActivator.log(null, "Cannot find the RichFacesPortlet.war file.");
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file);
return;
}
try {
@@ -132,17 +133,17 @@
Enumeration<? extends ZipEntry> entries = zipFile.entries();
while (entries.hasMoreElements()) {
ZipEntry entry = entries.nextElement();
- if (entry.getName().endsWith(".jar")) {
- if (entry.getName().startsWith("WEB-INF/lib/richfaces")) {
+ if (entry.getName().endsWith(".jar")) { //$NON-NLS-1$
+ if (entry.getName().startsWith("WEB-INF/lib/richfaces")) { //$NON-NLS-1$
list.add(entry);
}
if (!isSeamProject) {
if (entry.getName().startsWith(
- "WEB-INF/lib/commons-beanutils")
+ "WEB-INF/lib/commons-beanutils") //$NON-NLS-1$
|| entry.getName().startsWith(
- "WEB-INF/lib/commons-digester")
+ "WEB-INF/lib/commons-digester") //$NON-NLS-1$
|| entry.getName().startsWith(
- "WEB-INF/lib/jsf-facelets")) {
+ "WEB-INF/lib/jsf-facelets")) { //$NON-NLS-1$
list.add(entry);
}
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletConfigurationPresetFactory10.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletConfigurationPresetFactory10.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletConfigurationPresetFactory10.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -26,6 +26,7 @@
import org.eclipse.wst.common.project.facet.core.PresetDefinition;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
/**
* @author <a href="mailto:kosta@bea.com">Konstantin Komissarchik</a>
@@ -45,10 +46,10 @@
.getProjectFacetVersion(WebFacetUtils.WEB_FACET);
final IProjectFacet PORTLET_FACET = ProjectFacetsManager.getProjectFacet(IPortletConstants.PORTLET_FACET_ID);
final IProjectFacetVersion portletFacetVersion = PORTLET_FACET.getVersion(IPortletConstants.PORTLET_FACET_VERSION_10);
- final IProjectFacet JSF_FACET = ProjectFacetsManager.getProjectFacet("jst.jsf");
- final IProjectFacetVersion jsfFacetVersion = JSF_FACET.getVersion("1.2");
- final IProjectFacet SEAM_FACET = ProjectFacetsManager.getProjectFacet("jst.seam");
- final IProjectFacetVersion seamFacetVersion = SEAM_FACET.getVersion("2.0");
+ final IProjectFacet JSF_FACET = ProjectFacetsManager.getProjectFacet("jst.jsf"); //$NON-NLS-1$
+ final IProjectFacetVersion jsfFacetVersion = JSF_FACET.getVersion("1.2"); //$NON-NLS-1$
+ final IProjectFacet SEAM_FACET = ProjectFacetsManager.getProjectFacet("jst.seam"); //$NON-NLS-1$
+ final IProjectFacetVersion seamFacetVersion = SEAM_FACET.getVersion("2.0"); //$NON-NLS-1$
if (webFacetVersion != null
&& webFacetVersion.compareTo(WebFacetUtils.WEB_23) >= 0 &&
portletFacetVersion != null) {
@@ -63,8 +64,8 @@
facets.add(portletFacetVersion);
facets.add(jsfFacetVersion);
facets.add(seamFacetVersion);
- return new PresetDefinition("JBoss Seam Portlet Project v1.0",
- "JBoss Seam Portlet Project v1.0", facets);
+ return new PresetDefinition(Messages.SeamPortletConfigurationPresetFactory10_JBoss_Seam_Portlet_Project_v1_0,
+ Messages.SeamPortletConfigurationPresetFactory10_JBoss_Seam_Portlet_Project_v1_0, facets);
}
return null;
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletFacetInstallDelegate.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletFacetInstallDelegate.java 2008-11-16 21:43:50 UTC (rev 11816)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/SeamPortletFacetInstallDelegate.java 2008-11-16 21:44:27 UTC (rev 11817)
@@ -49,6 +49,7 @@
import org.jboss.tools.portlet.core.IPortletConstants;
import org.jboss.tools.portlet.core.JBossWebUtil;
import org.jboss.tools.portlet.core.JBossWebUtil25;
+import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
/**
@@ -71,7 +72,7 @@
throws CoreException {
if (monitor != null) {
- monitor.beginTask("", 1);
+ monitor.beginTask("", 1); //$NON-NLS-1$
}
try {
IDataModel config = null;
@@ -81,7 +82,7 @@
} else {
throw new CoreException(
PortletCoreActivator
- .getStatus("Internal Error creating JBoss Seam Portlet Facet. Missing configuration."));
+ .getStatus(Messages.SeamPortletFacetInstallDelegate_Missing_configuration));
}
// check whether web.xml is available for update
@@ -90,11 +91,11 @@
if (provider == null) {
throw new CoreException(
PortletCoreActivator
- .getStatus("Cannot configure web module for JBoss Seam Portlet Facet"));
+ .getStatus(Messages.SeamPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Seam_Portlet_Facet));
} else if (!(provider.validateEdit(null, null).isOK())) {
if (!(provider.validateEdit(null, null).isOK())) {
throw new CoreException(PortletCoreActivator
- .getStatus("The web.xml file is not updateable"));
+ .getStatus(Messages.SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable));
}
}
@@ -130,15 +131,15 @@
} else {
util = new JBossWebUtil();
}
- String name = "org.jboss.portletbridge.ExceptionHandler";
- String value = "org.jboss.portletbridge.SeamExceptionHandlerImpl";
+ String name = "org.jboss.portletbridge.ExceptionHandler"; //$NON-NLS-1$
+ String value = "org.jboss.portletbridge.SeamExceptionHandlerImpl"; //$NON-NLS-1$
String description = null;
util.configureContextParam(project, monitor, name, value,
description);
// FIXME optional for Seam portlets version 2.1.x and up
- name = "javax.faces.LIFECYCLE_ID";
- value = "SEAM_PORTLET";
+ name = "javax.faces.LIFECYCLE_ID"; //$NON-NLS-1$
+ value = "SEAM_PORTLET"; //$NON-NLS-1$
util.configureContextParam(project, monitor, name, value,
description);
}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties 2008-11-16 21:44:27 UTC (rev 11817)
@@ -0,0 +1,27 @@
+BasePortletClasspathContainer_Error_loading_classpath_container=Error loading classpath container
+JSFPortlet10LibrariesContainerInitializer_Error_loading_classpath_container=Error loading classpath container
+JSFPortlet10LibrariesContainerInitializer_JBoss_JSF_Portlet_Libraries_v1_0=JBoss JSF Portlet Libraries v1.0
+JSFPortlet10LibrariesContainerInitializer_JBossJSF_Portlet_Classpath_Container_Initializer_v1_0=JBoss JSF Portlet Classpath Container Initializer v1.0
+JSFPortletConfigurationPresetFactory10_JBoss_JSF_Portlet_Project_v1_0=JBoss JSF Portlet Project v1.0
+JSFPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_JSF_Portlet_Facet=Cannot configure web module for JBoss JSF Portlet Facet
+JSFPortletFacetInstallDelegate_Cannot_find_the_JSF_servlet=Cannot find the JSF servlet
+JSFPortletFacetInstallDelegate_Error_loading_classpath_container=Error loading classpath container
+JSFPortletFacetInstallDelegate_Missing_configuration=Internal Error creating JBoss JSF Portlet Facet. Missing configuration.
+JSFPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
+Portlet10LibrariesContainerInitializer_1=JBoss Portlet Libraries v1.0
+Portlet10LibrariesContainerInitializer_JBoss_Portlet_Classpath_Container_Initializer_v1_0=JBoss Portlet Classpath Container Initializer v1.0
+Portlet20LibrariesContainerInitializer_JBoss_Portlet_Classpath_Container_Initializer=JBoss Portlet Classpath Container Initializer
+Portlet20LibrariesContainerInitializer_JBoss_Portlet_Library=JBoss Portlet Library
+PortletConfigurationPresetFactory10_Portlet_Project_v1_0=Portlet Project v1.0
+PortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Portlet_Facet=Cannot configure web module for JBoss Portlet Facet
+PortletFacetInstallDelegate_Exception_occured_while_creating_portlet_xml=Exception occured while creating portlet.xml
+PortletFacetInstallDelegate_Missing_configuration=Internal Error creating JBoss Portlet Facet. Missing configuration.
+PortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
+PortletPostInstallListener_Cannot_find_Portletbridge_Runtime=Cannot find Portletbridge Runtime.
+PortletPostInstallListener_Cannot_find_the_examples_directory=Cannot find the examples directory.
+PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file=Cannot find the RichFacesPortlet.war file.
+PortletPostInstallListener_Invalid_Portletbridge_Runtime=Invalid Portletbridge Runtime.
+SeamPortletConfigurationPresetFactory10_JBoss_Seam_Portlet_Project_v1_0=JBoss Seam Portlet Project v1.0
+SeamPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Seam_Portlet_Facet=Cannot configure web module for JBoss Seam Portlet Facet
+SeamPortletFacetInstallDelegate_Missing_configuration=Internal Error creating JBoss Seam Portlet Facet. Missing configuration.
+SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
17 years, 5 months
JBoss Tools SVN: r11816 - in trunk/portlet/plugins/org.jboss.tools.portlet.ui: META-INF and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-16 16:43:50 -0500 (Sun, 16 Nov 2008)
New Revision: 11816
Added:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.properties
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF
trunk/portlet/plugins/org.jboss.tools.portlet.ui/build.properties
trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/operations/AddPortletOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/INewPortletClassDataModelProperties.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/IPortletUIConstants.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/MultiSelectFilteredFileSelectionDialog.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/PortletUIActivator.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddJBossPortletWizardPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddPortletWizardPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletWizard.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassDataModelProvider.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassWizardPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletWizard.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewSeamPortletWizard.java
Log:
JBIDE-3001 Internationalize Portal component
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF 2008-11-16 21:43:50 UTC (rev 11816)
@@ -1,10 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: JBoss Portlet
+Bundle-Name: %BundleName
Bundle-SymbolicName: org.jboss.tools.portlet.ui;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.jboss.tools.portlet.ui.PortletUIActivator
-Bundle-Vendor: JBoss, a division of Red Hat
+Bundle-Vendor: %BundleVendor
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.wst.common.project.facet.ui,
@@ -29,3 +29,4 @@
org.eclipse.ui.ide,
org.eclipse.ui.views
Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/build.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/build.properties 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/build.properties 2008-11-16 21:43:50 UTC (rev 11816)
@@ -10,4 +10,5 @@
about.html,\
about.ini,\
about.mappings,\
- about.properties
+ about.properties,\
+ plugin.properties
Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.properties (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.properties 2008-11-16 21:43:50 UTC (rev 11816)
@@ -0,0 +1,8 @@
+#Properties file for org.jboss.tools.portlet.ui
+BundleVendor = JBoss, a division of Red Hat
+BundleName = JBoss Portlet
+Portlet_category = Portlet
+Java_portlet_wizard_name = Java Portlet
+Portlet_wizard_description = Create a new Java Portlet
+JSFSeam_portlet_wizard_name = JBoss JSF/Seam Portlet
+JSFSeam_portlet_wizard_description = Create a new JBoss JSF Portlet
\ No newline at end of file
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml 2008-11-16 21:43:50 UTC (rev 11816)
@@ -21,25 +21,25 @@
<!-- New Java Portlet wizard -->
<extension point="org.eclipse.ui.newWizards">
<category id="org.jboss.tools.portlet"
- name="Portlet"
+ name="%Portlet_category"
parentCategory="org.jboss.tools.jst.web">
</category>
<wizard
id="org.jboss.tools.portlet.ui.wizard.NewJavaPortletWizard"
- name="Java Portlet"
+ name="%Java_portlet_wizard_name"
class="org.jboss.tools.portlet.ui.internal.wizard.NewPortletWizard"
category="org.jboss.tools.jst.web/org.jboss.tools.portlet"
icon="icons/portlet_wiz.gif">
- <description>Create a new Java Portlet</description>
+ <description>%Portlet_wizard_description</description>
<selection class="org.eclipse.core.resources.IResource" />
</wizard>
<wizard
id="org.jboss.tools.portlet.ui.wizard.NewJSFPortletWizard"
- name="JBoss JSF/Seam Portlet"
+ name="%JSFSeam_portlet_wizard_name"
class="org.jboss.tools.portlet.ui.internal.wizard.NewJSFPortletWizard"
category="org.jboss.tools.jst.web/org.jboss.tools.portlet"
icon="icons/portlet_wiz.gif">
- <description>Create a new JBoss JSF Portlet</description>
+ <description>%JSFSeam_portlet_wizard_description</description>
<selection class="org.eclipse.core.resources.IResource" />
</wizard>
<!--
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/operations/AddPortletOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/operations/AddPortletOperation.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/operations/AddPortletOperation.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -62,6 +62,7 @@
import org.jboss.tools.portlet.core.IPortletConstants;
import org.jboss.tools.portlet.core.PortletCoreActivator;
import org.jboss.tools.portlet.ui.INewPortletClassDataModelProperties;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
import org.jboss.tools.portlet.ui.internal.wizard.action.xpl.AddWebClassOperationEx;
import org.osgi.framework.Bundle;
@@ -186,9 +187,9 @@
Element element = document.getDocumentElement();
String name = model.getStringProperty(NAME);
- Element portlet = addNode(document,element,"portlet",null);
- addNode(document,portlet,"portlet-name",name);
- addNode(document,portlet,"header-content",null);
+ Element portlet = addNode(document,element,"portlet",null); //$NON-NLS-1$
+ addNode(document,portlet,"portlet-name",name); //$NON-NLS-1$
+ addNode(document,portlet,"header-content",null); //$NON-NLS-1$
domModel.save();
} catch (Exception e) {
@@ -209,14 +210,14 @@
private void copyJSFTemplates(IDataModel model) throws Exception {
IProject project = getTargetProject();
IVirtualComponent component = ComponentCore.createComponent(project);
- IVirtualFolder jsfFolder = component.getRootFolder().getFolder("jsf");
+ IVirtualFolder jsfFolder = component.getRootFolder().getFolder("jsf"); //$NON-NLS-1$
if (!jsfFolder.exists()) {
jsfFolder.create(IResource.FORCE, new NullProgressMonitor());
}
IContainer folder = jsfFolder.getUnderlyingFolder();
Bundle bundle = Platform.getBundle(PortletUIActivator.PLUGIN_ID);
- URL jsfURL = bundle.getEntry("/resources/jsf");
+ URL jsfURL = bundle.getEntry("/resources/jsf"); //$NON-NLS-1$
String jsfFolderName = FileLocator.toFileURL(jsfURL).getFile();
File source = new File(jsfFolderName);
File[] files = source.listFiles(new FileFilter() {
@@ -258,10 +259,10 @@
Document document = domModel.getDocument();
Element element = document.getDocumentElement();
- NodeList appNameNodes = element.getElementsByTagName("app-name");
+ NodeList appNameNodes = element.getElementsByTagName("app-name"); //$NON-NLS-1$
if (appNameNodes.getLength() <= 0) {
String appName = model.getStringProperty(JBOSS_APP);
- addNode(document, element, "app-name", appName);
+ addNode(document, element, "app-name", appName); //$NON-NLS-1$
domModel.save();
}
} catch (Exception e) {
@@ -312,27 +313,27 @@
Document document = domModel.getDocument();
Element element = document.getDocumentElement();
- Element deployment = document.createElement("deployment");
+ Element deployment = document.createElement("deployment"); //$NON-NLS-1$
element.appendChild(deployment);
- addNode(document,deployment,"parent-ref",parent);
- addNode(document,deployment,"if-exists",ifExists);
+ addNode(document,deployment,"parent-ref",parent); //$NON-NLS-1$
+ addNode(document,deployment,"if-exists",ifExists); //$NON-NLS-1$
Element page = null;
if (pageName != null && pageName.trim().length() > 0) {
- page = addNode(document,deployment,"page",null);
- addNode(document,page,"page-name",pageName);
+ page = addNode(document,deployment,"page",null); //$NON-NLS-1$
+ addNode(document,page,"page-name",pageName); //$NON-NLS-1$
} else {
page=deployment;
}
- Element window = addNode(document,page,"window",null);
+ Element window = addNode(document,page,"window",null); //$NON-NLS-1$
- addNode(document,window,"window-name",windowName);
- addNode(document,window,"instance-ref",instanceId);
- addNode(document,window,"region",region);
- addNode(document,window,"height",height);
- addNode(document,window,"initial-window-state",initialWindowState);
+ addNode(document,window,"window-name",windowName); //$NON-NLS-1$
+ addNode(document,window,"instance-ref",instanceId); //$NON-NLS-1$
+ addNode(document,window,"region",region); //$NON-NLS-1$
+ addNode(document,window,"height",height); //$NON-NLS-1$
+ addNode(document,window,"initial-window-state",initialWindowState); //$NON-NLS-1$
domModel.save();
} catch (Exception e) {
@@ -377,12 +378,12 @@
Document document = domModel.getDocument();
Element element = document.getDocumentElement();
- Element deployment = document.createElement("deployment");
+ Element deployment = document.createElement("deployment"); //$NON-NLS-1$
element.appendChild(deployment);
- Element instance = addNode(document,deployment,"instance",null);
- addNode(document,instance,"instance-id",instanceId);
- addNode(document,instance,"portlet-ref",name);
+ Element instance = addNode(document,deployment,"instance",null); //$NON-NLS-1$
+ addNode(document,instance,"instance-id",instanceId); //$NON-NLS-1$
+ addNode(document,instance,"portlet-ref",name); //$NON-NLS-1$
domModel.save();
} catch (Exception e) {
PortletCoreActivator.getDefault().log(e);
@@ -418,22 +419,22 @@
Document document = domModel.getDocument();
Element element = document.getDocumentElement();
- Element portlet = document.createElement("portlet");
+ Element portlet = document.createElement("portlet"); //$NON-NLS-1$
element.appendChild(portlet);
// description
if (description != null && description.trim().length() > 0) {
- addNode(document,portlet,"description",description);
+ addNode(document,portlet,"description",description); //$NON-NLS-1$
}
// portlet-name
- addNode(document,portlet,"portlet-name",name);
+ addNode(document,portlet,"portlet-name",name); //$NON-NLS-1$
// display-name
if (displayName != null && displayName.trim().length() > 0) {
- addNode(document,portlet,"display-name",displayName);
+ addNode(document,portlet,"display-name",displayName); //$NON-NLS-1$
}
// portlet-class
- addNode(document,portlet,"portlet-class",className);
+ addNode(document,portlet,"portlet-class",className); //$NON-NLS-1$
// init-param
List initParamList = (List) aModel.getProperty(INIT_PARAM);
@@ -441,31 +442,31 @@
for (Iterator iterator = initParamList.iterator(); iterator
.hasNext();) {
String[] arrayString = (String[]) iterator.next();
- Element initParam = addNode(document,portlet,"init-param",null);
- addNode(document,initParam,"name",arrayString[0]);
- addNode(document,initParam,"value",arrayString[1]);
+ Element initParam = addNode(document,portlet,"init-param",null); //$NON-NLS-1$
+ addNode(document,initParam,"name",arrayString[0]); //$NON-NLS-1$
+ addNode(document,initParam,"value",arrayString[1]); //$NON-NLS-1$
if (arrayString[2] != null && arrayString[2].length() > 0) {
- addNode(document,initParam,"description",arrayString[2]);
+ addNode(document,initParam,"description",arrayString[2]); //$NON-NLS-1$
}
}
}
// supports
- Element supports = addNode(document,portlet,"supports",null);
+ Element supports = addNode(document,portlet,"supports",null); //$NON-NLS-1$
- addNode(document,supports,"mime-type","text/html");
+ addNode(document,supports,"mime-type","text/html"); //$NON-NLS-1$ //$NON-NLS-2$
if (aModel.getBooleanProperty(VIEW_MODE)) {
- addNode(document,supports,"portlet-mode","VIEW");
+ addNode(document,supports,"portlet-mode","VIEW"); //$NON-NLS-1$ //$NON-NLS-2$
}
if (aModel.getBooleanProperty(EDIT_MODE)) {
- addNode(document,supports,"portlet-mode","EDIT");
+ addNode(document,supports,"portlet-mode","EDIT"); //$NON-NLS-1$ //$NON-NLS-2$
}
if (aModel.getBooleanProperty(HELP_MODE)) {
- addNode(document,supports,"portlet-mode","HELP");
+ addNode(document,supports,"portlet-mode","HELP"); //$NON-NLS-1$ //$NON-NLS-2$
}
// portlet-info
- Element portletInfo = addNode(document,portlet,"portlet-info",null);
- addNode(document,portletInfo,"title", title);
+ Element portletInfo = addNode(document,portlet,"portlet-info",null); //$NON-NLS-1$
+ addNode(document,portletInfo,"title", title); //$NON-NLS-1$
domModel.save();
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/INewPortletClassDataModelProperties.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/INewPortletClassDataModelProperties.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/INewPortletClassDataModelProperties.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -23,39 +23,39 @@
static final String TITLE = "NewPortletClassDataModel.TITLE"; //$NON-NLS-1$
- static final String VIEW_MODE = "NewPortletClassDataModel.VIEW_MODE";
+ static final String VIEW_MODE = "NewPortletClassDataModel.VIEW_MODE"; //$NON-NLS-1$
- static final String EDIT_MODE = "NewPortletClassDataModel.EDIT_MODE";
+ static final String EDIT_MODE = "NewPortletClassDataModel.EDIT_MODE"; //$NON-NLS-1$
- static final String HELP_MODE = "NewPortletClassDataModel.HELP_MODE";
+ static final String HELP_MODE = "NewPortletClassDataModel.HELP_MODE"; //$NON-NLS-1$
- static final String INSTANCE_NAME = "NewPortletClassDataModel.INSTANCE_NAME";
+ static final String INSTANCE_NAME = "NewPortletClassDataModel.INSTANCE_NAME"; //$NON-NLS-1$
- static final String WINDOW_NAME = "NewPortletClassDataModel.WINDOW_NAME";
+ static final String WINDOW_NAME = "NewPortletClassDataModel.WINDOW_NAME"; //$NON-NLS-1$
- static final String PAGE_NAME = "NewPortletClassDataModel.PAGE_NAME";
+ static final String PAGE_NAME = "NewPortletClassDataModel.PAGE_NAME"; //$NON-NLS-1$
- static final String PARENT_PORTAL = "NewPortletClassDataModel.PARENT_PORTAL";
+ static final String PARENT_PORTAL = "NewPortletClassDataModel.PARENT_PORTAL"; //$NON-NLS-1$
- static final String PAGE_REGION = "NewPortletClassDataModel.PAGE_REGION";
+ static final String PAGE_REGION = "NewPortletClassDataModel.PAGE_REGION"; //$NON-NLS-1$
- static final String PORTLET_HEIGHT = "NewPortletClassDataModel.PORTLET_HEIGHT";
+ static final String PORTLET_HEIGHT = "NewPortletClassDataModel.PORTLET_HEIGHT"; //$NON-NLS-1$
- static final String INITIAL_WINDOW_STATE = "NewPortletClassDataModel.INITIAL_WINDOW_STATE";
+ static final String INITIAL_WINDOW_STATE = "NewPortletClassDataModel.INITIAL_WINDOW_STATE"; //$NON-NLS-1$
- static final String IF_EXISTS = "NewPortletClassDataModel.IF_EXISTS";
+ static final String IF_EXISTS = "NewPortletClassDataModel.IF_EXISTS"; //$NON-NLS-1$
- static final String ADD_PORTLET = "NewPortletClassDataModel.ADD_PORTLET";
+ static final String ADD_PORTLET = "NewPortletClassDataModel.ADD_PORTLET"; //$NON-NLS-1$
- static final String ADD_JBOSS_APP = "NewPortletClassDataModel.ADD_JBOSS_APP";
+ static final String ADD_JBOSS_APP = "NewPortletClassDataModel.ADD_JBOSS_APP"; //$NON-NLS-1$
- static final String ADD_JBOSS_PORTLET = "NewPortletClassDataModel.ADD_JBOSS_PORTLET";
+ static final String ADD_JBOSS_PORTLET = "NewPortletClassDataModel.ADD_JBOSS_PORTLET"; //$NON-NLS-1$
- static final String JBOSS_APP = "NewPortletClassDataModel.JBOSS_APP";
+ static final String JBOSS_APP = "NewPortletClassDataModel.JBOSS_APP"; //$NON-NLS-1$
- static final String IS_JSF_PORTLET = "NewPortletClassDataModel.IS_JSF_PORTLET";
+ static final String IS_JSF_PORTLET = "NewPortletClassDataModel.IS_JSF_PORTLET"; //$NON-NLS-1$
- static final String IS_SEAM_PORTLET = "NewPortletClassDataModel.IS_SEAM_PORTLET";
+ static final String IS_SEAM_PORTLET = "NewPortletClassDataModel.IS_SEAM_PORTLET"; //$NON-NLS-1$
- static final String COPY_JSF_TEMPLATES = "NewPortletClassDataModel.COPY_JSF_TEMPLATES";
+ static final String COPY_JSF_TEMPLATES = "NewPortletClassDataModel.COPY_JSF_TEMPLATES"; //$NON-NLS-1$
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/IPortletUIConstants.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/IPortletUIConstants.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/IPortletUIConstants.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -5,15 +5,15 @@
*/
public interface IPortletUIConstants {
- static final String NEW_PORTLET_WIZARD_PAGE_TITLE = "Create Portlet";
- static final String ADD_PORTLET_WIZARD_PAGE_DESC = "Enter portlet deployment descriptor specific information.";
+ static final String NEW_PORTLET_WIZARD_PAGE_TITLE = Messages.IPortletUIConstants_Create_Portlet;
+ static final String ADD_PORTLET_WIZARD_PAGE_DESC = Messages.IPortletUIConstants_Enter_portlet_deployment_descriptor_specific_information;
- static final String ADD_JBOSS_PORTLET_WIZARD_PAGE_TITLE = "Create Portlet";
- static final String ADD_JBOSS_JSF_PORTLET_WIZARD_PAGE_TITLE = "Create JBoss JSF Portlet";
- static final String ADD_JBOSS_PORTLET_WIZARD_PAGE_DESC = "Enter JBoss portlet specific information";
+ static final String ADD_JBOSS_PORTLET_WIZARD_PAGE_TITLE = Messages.IPortletUIConstants_Create_Portlet;
+ static final String ADD_JBOSS_JSF_PORTLET_WIZARD_PAGE_TITLE = Messages.IPortletUIConstants_Create_JBoss_JSF_Portlet;
+ static final String ADD_JBOSS_PORTLET_WIZARD_PAGE_DESC = Messages.IPortletUIConstants_Enter_JBoss_portlet_specific_information;
- static final String DISPLAY_NAME_LABEL = "Display name:";
- static final String TITLE_LABEL = "Title:";
+ static final String DISPLAY_NAME_LABEL = Messages.IPortletUIConstants_Display_name;
+ static final String TITLE_LABEL = Messages.IPortletUIConstants_Title;
static final String QUALIFIED_PORTLET = "javax.portlet.Portlet"; //$NON-NLS-1$
static final String QUALIFIED_GENERIC_PORTLET = "javax.portlet.GenericServlet"; //$NON-NLS-1$
@@ -52,27 +52,27 @@
static final String RENDER_SIGNATURE = "(Ljavax/portlet/RenderRequest;Ljavax/portlet/RenderResponse;)V"; //$NON-NLS-1$
static final String PROCESS_ACTION_SIGNATURE = "(Ljavax/portlet/ActionRequest;Ljavax/portlet/ActionResponse;)V"; //$NON-NLS-1$
- static final String ADD_PORTLET_LABEL = "Create Portlet Instance";
- static final String INSTANCE_NAME_LABEL = "Instance Name:";
- static final String WINDOW_NAME_LABEL = "Window Name:";
- static final String PAGE_NAME_LABEL = "Page Name:";
- static final String PARENT_PORTAL_LABEL = "Parent Reference:";
- static final String PAGE_REGION_LABEL = "Region:";
- static final String PORTLET_HEIGHT_LABEL = "Height:";
- static final String INITIAL_WINDOW_STATE_LABEL = "Initial Window State:";
- static final String IF_EXISTS_LABEL = "If Exists:";
- static final String NEW_JBOSS_JSF_PORTLET_WIZARD_PAGE_DESC = "Specify class file information";
- static final String JBOSS_JSF_PORTLET_CLASS = "javax.portlet.faces.GenericFacesPortlet";
- static final String JBOSS_JSF_PORTLET_NAME = "riPortlet";
- static final String JBOSS_SEAM_PORTLET_NAME = "seamPortlet";
- static final String JBOSS_JSF_DISPLAY_PORTLET_NAME = "JBoss JSF Portlet";
- static final String JBOSS_JSF_PORTLET_TITLE = "JBoss JSF Portlet";
- static final String JBOSS_SEAM_DISPLAY_PORTLET_NAME = "JBoss Seam Portlet";
- static final String JBOSS_SEAM_PORTLET_TITLE = "JBoss Seam Portlet";
- static final String JBOSS_APP_LABEL = "JBoss Application Name:";
- static final String ADD_JBOSS_APP_LABEL = "Create JBoss Application";
- static final String ADD_JBOSS_PORTLET_LABEL = "Add the jboss-portlet.xml file";
- static final String COPY_JSF_TEMPLATES_LABEL = "Copy JSF Templates";
+ static final String ADD_PORTLET_LABEL = Messages.IPortletUIConstants_Create_portlet_instance;
+ static final String INSTANCE_NAME_LABEL = Messages.IPortletUIConstants_Inastance_name;
+ static final String WINDOW_NAME_LABEL = Messages.IPortletUIConstants_Window_name;
+ static final String PAGE_NAME_LABEL = Messages.IPortletUIConstants_Page_name;
+ static final String PARENT_PORTAL_LABEL = Messages.IPortletUIConstants_Parent_Reference;
+ static final String PAGE_REGION_LABEL = Messages.IPortletUIConstants_Region;
+ static final String PORTLET_HEIGHT_LABEL = Messages.IPortletUIConstants_Height;
+ static final String INITIAL_WINDOW_STATE_LABEL = Messages.IPortletUIConstants_Initial_Window_State;
+ static final String IF_EXISTS_LABEL = Messages.IPortletUIConstants_If_Exists;
+ static final String NEW_JBOSS_JSF_PORTLET_WIZARD_PAGE_DESC = Messages.IPortletUIConstants_Specify_class_file_information;
+ static final String JBOSS_JSF_PORTLET_CLASS = "javax.portlet.faces.GenericFacesPortlet"; //$NON-NLS-1$
+ static final String JBOSS_JSF_PORTLET_NAME = "riPortlet"; //$NON-NLS-1$
+ static final String JBOSS_SEAM_PORTLET_NAME = "seamPortlet"; //$NON-NLS-1$
+ static final String JBOSS_JSF_DISPLAY_PORTLET_NAME = Messages.IPortletUIConstants_JBoss_JSF_Portlet;
+ static final String JBOSS_JSF_PORTLET_TITLE = Messages.IPortletUIConstants_JBoss_JSF_Portlet;
+ static final String JBOSS_SEAM_DISPLAY_PORTLET_NAME = Messages.IPortletUIConstants_JBoss_Seam_Portlet;
+ static final String JBOSS_SEAM_PORTLET_TITLE = Messages.IPortletUIConstants_JBoss_Seam_Portlet;
+ static final String JBOSS_APP_LABEL = Messages.IPortletUIConstants_JBoss_Application_Name;
+ static final String ADD_JBOSS_APP_LABEL = Messages.IPortletUIConstants_Create_JBoss_Application;
+ static final String ADD_JBOSS_PORTLET_LABEL = Messages.IPortletUIConstants_Add_the_jboss_portlet_xml_file;
+ static final String COPY_JSF_TEMPLATES_LABEL = Messages.IPortletUIConstants_Copy_JSF_Templates;
}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -0,0 +1,60 @@
+package org.jboss.tools.portlet.ui;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.tools.portlet.ui.messages"; //$NON-NLS-1$
+ public static String AddPortletWizardPage_Edit;
+ public static String AddPortletWizardPage_Help;
+ public static String AddPortletWizardPage_Portlet_Modes;
+ public static String AddPortletWizardPage_View;
+ public static String NewJSFPortletClassWizardPage_Choose_a_JSF_portlet_class;
+ public static String NewJSFPortletClassWizardPage_Choose_a_Seam_portlet_class;
+ public static String NewJSFPortletClassWizardPage_New_JSF_Portlet;
+ public static String NewJSFPortletClassWizardPage_New_Seam_Portlet;
+ public static String NewPortletClassWizardPage_Choose_a_portlet_class;
+ public static String NewPortletClassWizardPage_New_Portlet;
+ public static String NewPortletClassWizardPage_Use_an_existing_Portlet_class;
+ public static String NewPortletWizard_Specify_modifiers_interfaces_to_implement_and_method_stubs_to_generate;
+ public static String No_portlets_exist_to_add;
+ public static String IPortletUIConstants_Add_the_jboss_portlet_xml_file;
+ public static String IPortletUIConstants_Copy_JSF_Templates;
+ public static String IPortletUIConstants_Create_JBoss_Application;
+ public static String IPortletUIConstants_Create_JBoss_JSF_Portlet;
+ public static String IPortletUIConstants_Create_Portlet;
+ public static String IPortletUIConstants_Create_portlet_instance;
+ public static String IPortletUIConstants_Display_name;
+ public static String IPortletUIConstants_Enter_JBoss_portlet_specific_information;
+ public static String IPortletUIConstants_Enter_portlet_deployment_descriptor_specific_information;
+ public static String IPortletUIConstants_Height;
+ public static String IPortletUIConstants_If_Exists;
+ public static String IPortletUIConstants_Inastance_name;
+ public static String IPortletUIConstants_Initial_Window_State;
+ public static String IPortletUIConstants_JBoss_Application_Name;
+ public static String IPortletUIConstants_JBoss_JSF_Portlet;
+ public static String IPortletUIConstants_JBoss_Seam_Portlet;
+ public static String IPortletUIConstants_Page_name;
+ public static String IPortletUIConstants_Parent_Reference;
+ public static String IPortletUIConstants_Region;
+ public static String IPortletUIConstants_Specify_class_file_information;
+ public static String IPortletUIConstants_Title;
+ public static String IPortletUIConstants_Window_name;
+ public static String JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet_capabilities_to_this_Web_Project;
+ public static String JSFPortletFacetInstallPage_Browse;
+ public static String JSFPortletFacetInstallPage_Deploy_jars;
+ public static String JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory;
+ public static String JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilities;
+ public static String JSFPortletFacetInstallPage_Portletbridge_Runtime;
+ public static String JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required;
+ public static String JSFPortletFacetInstallPage_Select_Portletbridge_Runtime;
+ public static String PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project;
+ public static String PortletFacetInstallPage_JBoss_Portlet_Capabilities;
+ public static String PortletUIActivator_The_portlet_xml_file_doesnt_exist;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/MultiSelectFilteredFileSelectionDialog.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/MultiSelectFilteredFileSelectionDialog.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/MultiSelectFilteredFileSelectionDialog.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -49,10 +49,6 @@
import org.eclipse.ui.part.PageBook;
import org.jboss.tools.portlet.core.PortletCoreActivator;
-/**
- * Insert the type's description here.
- * Creation date: (7/30/2001 11:16:36 AM)
- */
public class MultiSelectFilteredFileSelectionDialog extends
FilteredFileSelectionDialog implements SelectionListener {
@@ -131,7 +127,7 @@
//StatusInfo currStatus = new StatusInfo();
//currStatus.setOK();
- Status currStatus = new Status(Status.OK, PortletCoreActivator.PLUGIN_ID, Status.OK, "", null);
+ Status currStatus = new Status(Status.OK, PortletCoreActivator.PLUGIN_ID, Status.OK, "", null); //$NON-NLS-1$
updateStatus(currStatus);
fElementRenderer = new TypeRenderer();
@@ -457,7 +453,7 @@
public int open() {
if (fIT == null || fIT.length == 0) {
- MessageDialog.openInformation(getShell(), WebAppEditResourceHandler.getString("Empty_List_1"), "No portlets exist to add");
+ MessageDialog.openInformation(getShell(), WebAppEditResourceHandler.getString("Empty_List_1"), Messages.No_portlets_exist_to_add); //$NON-NLS-1$
return CANCEL;
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/PortletUIActivator.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/PortletUIActivator.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/PortletUIActivator.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -26,7 +26,7 @@
public class PortletUIActivator extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.portlet.ui";
+ public static final String PLUGIN_ID = "org.jboss.tools.portlet.ui"; //$NON-NLS-1$
// The shared instance
private static PortletUIActivator plugin;
@@ -70,7 +70,7 @@
IPortletConstants.CONFIG_PATH);
if (!portletVirtualFile.getUnderlyingFile().exists()) {
- log(new RuntimeException("The portlet.xml file doesn't exist"));
+ log(new RuntimeException(Messages.PortletUIActivator_The_portlet_xml_file_doesnt_exist));
return null;
}
@@ -90,7 +90,7 @@
public static boolean isPortletProject(IDataModel model) {
String projectName = model.getStringProperty(PROJECT_NAME);
- if(projectName != null && !"".equals(projectName.trim())){
+ if(projectName != null && !"".equals(projectName.trim())){ //$NON-NLS-1$
IProject project = ProjectUtilities.getProject(projectName);
try {
IFacetedProject facetedProject = ProjectFacetsManager.create(project);
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -20,6 +20,7 @@
import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelSynchHelper;
import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
/**
@@ -38,9 +39,9 @@
private Button deployButton;
public JSFPortletFacetInstallPage() {
- super("JSFPortletProjectConfigurationWizardPage");
- setTitle("JBoss JSF Portlet Capabilities");
- setDescription("Add JBoss JSF Portlet capabilities to this Web Project");
+ super("JSFPortletProjectConfigurationWizardPage"); //$NON-NLS-1$
+ setTitle(Messages.JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilities);
+ setDescription(Messages.JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet_capabilities_to_this_Web_Project);
// ImageDescriptor imageDesc = getDefaultPageImageDescriptor( );
// if ( imageDesc != null )
// setImageDescriptor( imageDesc );
@@ -50,7 +51,7 @@
jsfSection = dialogSettings
.addNewSection(IPortletConstants.JSF_SECTION);
deployJars = true;
- portletbridgeRuntime = "";
+ portletbridgeRuntime = ""; //$NON-NLS-1$
jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME,
portletbridgeRuntime);
} else {
@@ -58,7 +59,7 @@
portletbridgeRuntime = jsfSection
.get(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
if (portletbridgeRuntime == null) {
- portletbridgeRuntime = "";
+ portletbridgeRuntime = ""; //$NON-NLS-1$
jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME,
portletbridgeRuntime);
}
@@ -78,7 +79,7 @@
private void createButton(Composite composite) {
deployButton = new Button(composite, SWT.CHECK);
- deployButton.setText("Deploy jars to WEB-INF/lib");
+ deployButton.setText(Messages.JSFPortletFacetInstallPage_Deploy_jars);
deployButton.setSelection(deployJars);
deployButton.addSelectionListener(new SelectionAdapter() {
@@ -98,7 +99,7 @@
private void addFolderGroup(Composite composite) {
// folder
Label folderLabel = new Label(composite, SWT.LEFT);
- folderLabel.setText("Portletbridge Runtime");
+ folderLabel.setText(Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime);
folderLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
folderText = new Text(composite, SWT.SINGLE | SWT.BORDER);
@@ -116,7 +117,7 @@
});
folderButton = new Button(composite, SWT.PUSH);
- folderButton.setText("Browse...");
+ folderButton.setText(Messages.JSFPortletFacetInstallPage_Browse);
folderButton
.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
folderButton.addSelectionListener(new SelectionAdapter() {
@@ -132,7 +133,7 @@
String folderString = folderText.getText();
folderString = folderString.trim();
if (folderString.length() <= 0) {
- setErrorMessage("Portletbridge Runtime directory is required.");
+ setErrorMessage(Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required);
setPageComplete(false);
return;
}
@@ -144,7 +145,7 @@
String[] fileList = folder.list(new FilenameFilter() {
public boolean accept(File dir, String name) {
- if (name.startsWith("portletbridge") || name.endsWith(".jar")) {
+ if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
return true;
}
return false;
@@ -161,14 +162,14 @@
}
private void setInvalidPortletbridgeRuntime() {
- setErrorMessage("Invalid Portletbridge Runtime directory.");
+ setErrorMessage(Messages.JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory);
setPageComplete(false);
}
protected void handleFolderButtonPressed() {
String lastPath = folderText.getText();
DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.MULTI);
- dialog.setText("Select Portletbridge Runtime");
+ dialog.setText(Messages.JSFPortletFacetInstallPage_Select_Portletbridge_Runtime);
dialog.setFilterPath(lastPath);
String res = dialog.open();
if (res == null) {
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -9,6 +9,7 @@
import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizardPage;
import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage;
import org.eclipse.wst.common.project.facet.ui.IWizardContext;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
/**
@@ -21,9 +22,9 @@
public PortletFacetInstallPage() {
super(DataModelFactory.createDataModel(new AbstractDataModelProvider() {
- }), "jboss.portal.facet.install.page");
- setTitle("JBoss Portlet Capabilities");
- setDescription("Add JBoss Portlet capabilities to this Web Project");
+ }), "jboss.portal.facet.install.page"); //$NON-NLS-1$
+ setTitle(Messages.PortletFacetInstallPage_JBoss_Portlet_Capabilities);
+ setDescription(Messages.PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project);
dialogSettings = PortletUIActivator.getDefault().getDialogSettings();
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddJBossPortletWizardPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddJBossPortletWizardPage.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddJBossPortletWizardPage.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -75,6 +75,7 @@
import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin;
import org.jboss.tools.portlet.ui.INewPortletClassDataModelProperties;
import org.jboss.tools.portlet.ui.IPortletUIConstants;
+import org.jboss.tools.portlet.ui.Messages;
/**
* JBoss Portlet Wizard Setting Page
@@ -142,7 +143,7 @@
ifExistsLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
final Combo ifExistsCombo = new Combo(composite,SWT.READ_ONLY);
ifExistsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- ifExistsCombo.setItems(new String[] {"overwrite","keep"});
+ ifExistsCombo.setItems(new String[] {"overwrite","keep"}); //$NON-NLS-1$ //$NON-NLS-2$
synchHelper.synchCombo(ifExistsCombo, IF_EXISTS, null);
// instance name
@@ -199,7 +200,7 @@
initialWindowStateLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
final Combo initialWindowStateCombo = new Combo(composite,SWT.READ_ONLY);
initialWindowStateCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- initialWindowStateCombo.setItems(new String[] {"maximized","minimized","normal"});
+ initialWindowStateCombo.setItems(new String[] {"maximized","minimized","normal"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
synchHelper.synchCombo(initialWindowStateCombo, INITIAL_WINDOW_STATE, null);
addPortlet.addSelectionListener(new SelectionAdapter() {
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddPortletWizardPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddPortletWizardPage.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/AddPortletWizardPage.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -47,6 +47,7 @@
import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin;
import org.jboss.tools.portlet.ui.INewPortletClassDataModelProperties;
import org.jboss.tools.portlet.ui.IPortletUIConstants;
+import org.jboss.tools.portlet.ui.Messages;
/**
* Portlet Wizard Setting Page
@@ -99,21 +100,21 @@
if (isJSFPortlet()) {
List<String[]> initParamList = new ArrayList<String[]>();
String[] arrayString = new String[3];
- arrayString[0]="javax.portlet.faces.defaultViewId.view";
- arrayString[1]="/jsf/view.jsp";
- arrayString[2]="";
+ arrayString[0]="javax.portlet.faces.defaultViewId.view"; //$NON-NLS-1$
+ arrayString[1]="/jsf/view.jsp"; //$NON-NLS-1$
+ arrayString[2]=""; //$NON-NLS-1$
initParamList.add(arrayString);
arrayString = new String[3];
- arrayString[0]="javax.portlet.faces.defaultViewId.edit";
- arrayString[1]="/jsf/edit.jsp";
- arrayString[2]="";
+ arrayString[0]="javax.portlet.faces.defaultViewId.edit"; //$NON-NLS-1$
+ arrayString[1]="/jsf/edit.jsp"; //$NON-NLS-1$
+ arrayString[2]=""; //$NON-NLS-1$
initParamList.add(arrayString);
arrayString = new String[3];
- arrayString[0]="javax.portlet.faces.defaultViewId.help";
- arrayString[1]="/jsf/help.jsp";
- arrayString[2]="";
+ arrayString[0]="javax.portlet.faces.defaultViewId.help"; //$NON-NLS-1$
+ arrayString[1]="/jsf/help.jsp"; //$NON-NLS-1$
+ arrayString[2]=""; //$NON-NLS-1$
initParamList.add(arrayString);
initSection.setInput(initParamList);
@@ -122,9 +123,9 @@
if (isSeamPortlet()) {
List<String[]> initParamList = new ArrayList<String[]>();
String[] arrayString = new String[3];
- arrayString[0]="javax.portlet.faces.defaultViewId.view";
- arrayString[1]="/home.xhtml";
- arrayString[2]="";
+ arrayString[0]="javax.portlet.faces.defaultViewId.view"; //$NON-NLS-1$
+ arrayString[1]="/home.xhtml"; //$NON-NLS-1$
+ arrayString[2]=""; //$NON-NLS-1$
initParamList.add(arrayString);
initSection.setInput(initParamList);
@@ -148,18 +149,18 @@
Group composite = new Group(parent,SWT.NULL);
composite.setLayout(new GridLayout(3,false));
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
- composite.setText("Portlet Modes");
+ composite.setText(Messages.AddPortletWizardPage_Portlet_Modes);
Button viewModeButton = new Button(composite,SWT.CHECK);
- viewModeButton.setText("View");
+ viewModeButton.setText(Messages.AddPortletWizardPage_View);
synchHelper.synchCheckbox(viewModeButton, INewPortletClassDataModelProperties.VIEW_MODE, null);
Button editModeButton = new Button(composite,SWT.CHECK);
- editModeButton.setText("Edit");
+ editModeButton.setText(Messages.AddPortletWizardPage_Edit);
synchHelper.synchCheckbox(editModeButton, INewPortletClassDataModelProperties.EDIT_MODE, null);
Button helpModeButton = new Button(composite,SWT.CHECK);
- helpModeButton.setText("Help");
+ helpModeButton.setText(Messages.AddPortletWizardPage_Help);
synchHelper.synchCheckbox(helpModeButton, INewPortletClassDataModelProperties.HELP_MODE, null);
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -46,6 +46,7 @@
import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
import org.jboss.tools.portlet.core.IPortletConstants;
import org.jboss.tools.portlet.ui.IPortletUIConstants;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.MultiSelectFilteredFileSelectionDialog;
/**
@@ -131,14 +132,14 @@
MultiSelectFilteredFileSelectionDialog ms = null;
if (model.getBooleanProperty(IS_JSF_PORTLET)) {
ms = new MultiSelectFilteredFileSelectionDialog(
- getShell(), "New JSF Portlet",
- "Choose a JSF portlet class:", new String[0], false,
+ getShell(), Messages.NewJSFPortletClassWizardPage_New_JSF_Portlet,
+ Messages.NewJSFPortletClassWizardPage_Choose_a_JSF_portlet_class, new String[0], false,
project);
}
if (model.getBooleanProperty(IS_SEAM_PORTLET)) {
ms = new MultiSelectFilteredFileSelectionDialog(
- getShell(), "New Seam Portlet",
- "Choose a Seam portlet class:", new String[0], false,
+ getShell(), Messages.NewJSFPortletClassWizardPage_New_Seam_Portlet,
+ Messages.NewJSFPortletClassWizardPage_Choose_a_Seam_portlet_class, new String[0], false,
project);
}
IContainer root = component.getRootFolder().getUnderlyingFolder();
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletWizard.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletWizard.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletWizard.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -17,6 +17,7 @@
import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
import org.jboss.tools.portlet.ui.INewPortletClassDataModelProperties;
import org.jboss.tools.portlet.ui.IPortletUIConstants;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
/**
@@ -43,7 +44,7 @@
@Override
protected ImageDescriptor getImage() {
- return PortletUIActivator.imageDescriptorFromPlugin(PortletUIActivator.PLUGIN_ID, "/icons/portlet_wiz.gif");
+ return PortletUIActivator.imageDescriptorFromPlugin(PortletUIActivator.PLUGIN_ID, "/icons/portlet_wiz.gif"); //$NON-NLS-1$
}
@Override
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassDataModelProvider.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassDataModelProvider.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassDataModelProvider.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -41,6 +41,7 @@
import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin;
import org.jboss.tools.portlet.operations.AddPortletOperation;
import org.jboss.tools.portlet.ui.INewPortletClassDataModelProperties;
+import org.jboss.tools.portlet.ui.Messages;
/**
*
@@ -53,13 +54,13 @@
/**
* The fully qualified default portlet superclass: GenericPortlet.
*/
- private final static String PORTLET_SUPERCLASS = "javax.portlet.GenericPortlet";
+ private final static String PORTLET_SUPERCLASS = "javax.portlet.GenericPortlet"; //$NON-NLS-1$
/**
* String array of the default, minimum required fully qualified Portlet
* interfaces
*/
- private final static String QUALIFIED_PORTLET = "javax.portlet.Portlet";
+ private final static String QUALIFIED_PORTLET = "javax.portlet.Portlet"; //$NON-NLS-1$
private final static String[] PORTLET_INTERFACES = { QUALIFIED_PORTLET };
private final static String ANNOTATED_TEMPLATE_DEFAULT = "portlet.javajet"; //$NON-NLS-1$
@@ -238,46 +239,46 @@
return Boolean.FALSE;
if (propertyName.equals(INSTANCE_NAME)) {
- return getPortletPrefix() + "Instance";
+ return getPortletPrefix() + "Instance"; //$NON-NLS-1$
}
if (propertyName.equals(WINDOW_NAME)) {
- return getPortletPrefix() + "Window";
+ return getPortletPrefix() + "Window"; //$NON-NLS-1$
}
if (propertyName.equals(PAGE_NAME)) {
if (isSeamPortlet) {
- return "SeamPortlet";
+ return "SeamPortlet"; //$NON-NLS-1$
}
if (isJSFPortlet) {
- return "JSFPortlet";
+ return "JSFPortlet"; //$NON-NLS-1$
}
- return "";
+ return ""; //$NON-NLS-1$
}
if (propertyName.equals(PORTLET_HEIGHT)) {
- return "1";
+ return "1"; //$NON-NLS-1$
}
if (propertyName.equals(INITIAL_WINDOW_STATE)) {
- return "maximized";
+ return "maximized"; //$NON-NLS-1$
}
if (propertyName.equals(JBOSS_APP)) {
if (isSeamPortlet) {
- return "seamPortletApp";
+ return "seamPortletApp"; //$NON-NLS-1$
}
if (isJSFPortlet) {
- return "riPortletApp";
+ return "riPortletApp"; //$NON-NLS-1$
}
- return "portletApp";
+ return "portletApp"; //$NON-NLS-1$
}
if (propertyName.equals(PAGE_REGION)) {
- return "center";
+ return "center"; //$NON-NLS-1$
}
if (propertyName.equals(PARENT_PORTAL)) {
if (isSeamPortlet || isJSFPortlet) {
- return "default";
+ return "default"; //$NON-NLS-1$
}
- return "default.default";
+ return "default.default"; //$NON-NLS-1$
}
if (propertyName.equals(IF_EXISTS)) {
- return "overwrite";
+ return "overwrite"; //$NON-NLS-1$
}
if (propertyName.equals(INewJavaClassDataModelProperties.JAVA_SOURCE_FOLDER)) {
return getSourceFolder();
@@ -333,9 +334,9 @@
private String getPortletPrefix() {
String prefix = null;
if (isSeamPortlet) {
- prefix = "SeamPortlet";
+ prefix = "SeamPortlet"; //$NON-NLS-1$
} else if (isJSFPortlet) {
- prefix = "JSFPortlet";
+ prefix = "JSFPortlet"; //$NON-NLS-1$
} else {
prefix = (String) getDefaultProperty(NAME);
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassWizardPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassWizardPage.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletClassWizardPage.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -46,6 +46,7 @@
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.MultiSelectFilteredFileSelectionDialog;
import org.jboss.tools.portlet.ui.internal.wizard.xpl.NewJavaClassWizardPageEx;
@@ -92,7 +93,7 @@
}
protected String getUseExistingCheckboxText() {
- return "Use an existing Portlet class";
+ return Messages.NewPortletClassWizardPage_Use_an_existing_Portlet_class;
}
@@ -120,8 +121,8 @@
IProject project = (IProject) model.getProperty(PROJECT);
MultiSelectFilteredFileSelectionDialog ms = new MultiSelectFilteredFileSelectionDialog(
getShell(),
- "New Portlet",
- "Choose a portlet class:",
+ Messages.NewPortletClassWizardPage_New_Portlet,
+ Messages.NewPortletClassWizardPage_Choose_a_portlet_class,
new String[0],
false,
project);
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletWizard.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletWizard.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewPortletWizard.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -13,6 +13,7 @@
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
import org.jboss.tools.portlet.ui.IPortletUIConstants;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
/**
@@ -20,7 +21,7 @@
*/
public class NewPortletWizard extends NewWebArtifactWizard {
- protected static final String PAGE_FOUR = "pageFour";
+ protected static final String PAGE_FOUR = "pageFour"; //$NON-NLS-1$
public NewPortletWizard() {
this(null);
@@ -37,7 +38,7 @@
@Override
protected ImageDescriptor getImage() {
- return PortletUIActivator.imageDescriptorFromPlugin(PortletUIActivator.PLUGIN_ID, "/icons/portlet_wiz.gif");
+ return PortletUIActivator.imageDescriptorFromPlugin(PortletUIActivator.PLUGIN_ID, "/icons/portlet_wiz.gif"); //$NON-NLS-1$
}
@Override
@@ -53,7 +54,7 @@
NewPortletClassOptionsWizardPage page2 = new NewPortletClassOptionsWizardPage(
getDataModel(),
PAGE_TWO,
- "Specify modifiers, interfaces to implement and method stubs to generate.",
+ Messages.NewPortletWizard_Specify_modifiers_interfaces_to_implement_and_method_stubs_to_generate,
IPortletUIConstants.NEW_PORTLET_WIZARD_PAGE_TITLE);
//page3.setInfopopID(IWebUIContextIds.WEBEDITOR_SERVLET_PAGE_ADD_SERVLET_WIZARD_3);
addPage(page2);
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewSeamPortletWizard.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewSeamPortletWizard.java 2008-11-16 21:43:10 UTC (rev 11815)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewSeamPortletWizard.java 2008-11-16 21:43:50 UTC (rev 11816)
@@ -17,6 +17,7 @@
import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
import org.jboss.tools.portlet.ui.INewPortletClassDataModelProperties;
import org.jboss.tools.portlet.ui.IPortletUIConstants;
+import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
/**
@@ -39,7 +40,7 @@
@Override
protected ImageDescriptor getImage() {
- return PortletUIActivator.imageDescriptorFromPlugin(PortletUIActivator.PLUGIN_ID, "/icons/portlet_wiz.gif");
+ return PortletUIActivator.imageDescriptorFromPlugin(PortletUIActivator.PLUGIN_ID, "/icons/portlet_wiz.gif"); //$NON-NLS-1$
}
@Override
Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties 2008-11-16 21:43:50 UTC (rev 11816)
@@ -0,0 +1,46 @@
+AddPortletWizardPage_Edit=Edit
+AddPortletWizardPage_Help=Help
+AddPortletWizardPage_Portlet_Modes=Portlet Modes
+AddPortletWizardPage_View=View
+IPortletUIConstants_Add_the_jboss_portlet_xml_file=Add the jboss-portlet.xml file
+IPortletUIConstants_Copy_JSF_Templates=Copy JSF Templates
+IPortletUIConstants_Create_JBoss_Application=Create JBoss Application
+IPortletUIConstants_Create_JBoss_JSF_Portlet=Create JBoss JSF Portlet
+IPortletUIConstants_Create_Portlet=Create Portlet
+IPortletUIConstants_Create_portlet_instance=Create Portlet Instance
+IPortletUIConstants_Display_name=Display name:
+IPortletUIConstants_Enter_JBoss_portlet_specific_information=Enter JBoss portlet specific information
+IPortletUIConstants_Enter_portlet_deployment_descriptor_specific_information=Enter portlet deployment descriptor specific information.
+IPortletUIConstants_Height=Height:
+IPortletUIConstants_If_Exists=If Exists:
+IPortletUIConstants_Inastance_name=Instance Name:
+IPortletUIConstants_Initial_Window_State=Initial Window State:
+IPortletUIConstants_JBoss_Application_Name=JBoss Application Name:
+IPortletUIConstants_JBoss_JSF_Portlet=JBoss JSF Portlet
+IPortletUIConstants_JBoss_Seam_Portlet=JBoss Seam Portlet
+IPortletUIConstants_Page_name=Page Name:
+IPortletUIConstants_Parent_Reference=Parent Reference:
+IPortletUIConstants_Region=Region:
+IPortletUIConstants_Specify_class_file_information=Specify class file information
+IPortletUIConstants_Title=Title:
+IPortletUIConstants_Window_name=Window Name:
+JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet_capabilities_to_this_Web_Project=Add JBoss JSF Portlet capabilities to this Web Project
+JSFPortletFacetInstallPage_Browse=Browse...
+JSFPortletFacetInstallPage_Deploy_jars=Deploy jars to WEB-INF/lib
+JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory=Invalid Portletbridge Runtime directory.
+JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilities=JBoss JSF Portlet Capabilities
+JSFPortletFacetInstallPage_Portletbridge_Runtime=Portletbridge Runtime
+JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required=Portletbridge Runtime directory is required.
+JSFPortletFacetInstallPage_Select_Portletbridge_Runtime=Select Portletbridge Runtime
+PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project=Add JBoss Portlet capabilities to this Web Project
+PortletFacetInstallPage_JBoss_Portlet_Capabilities=JBoss Portlet Capabilities
+PortletUIActivator_The_portlet_xml_file_doesnt_exist=The portlet.xml file doesn't exist
+NewJSFPortletClassWizardPage_Choose_a_JSF_portlet_class=Choose a JSF portlet class:
+NewJSFPortletClassWizardPage_Choose_a_Seam_portlet_class=Choose a Seam portlet class:
+NewJSFPortletClassWizardPage_New_JSF_Portlet=New JSF Portlet
+NewJSFPortletClassWizardPage_New_Seam_Portlet=New Seam Portlet
+NewPortletClassWizardPage_Choose_a_portlet_class=Choose a portlet class:
+NewPortletClassWizardPage_New_Portlet=New Portlet
+NewPortletClassWizardPage_Use_an_existing_Portlet_class=Use an existing Portlet class
+NewPortletWizard_Specify_modifiers_interfaces_to_implement_and_method_stubs_to_generate=Specify modifiers, interfaces to implement and method stubs to generate.
+No_portlets_exist_to_add=No portlets exist to add
\ No newline at end of file
17 years, 5 months
JBoss Tools SVN: r11815 - trunk/portlet/features/org.jboss.tools.portlet.feature.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-16 16:43:10 -0500 (Sun, 16 Nov 2008)
New Revision: 11815
Added:
trunk/portlet/features/org.jboss.tools.portlet.feature/license.html
Removed:
trunk/portlet/features/org.jboss.tools.portlet.feature/feature.properties
Modified:
trunk/portlet/features/org.jboss.tools.portlet.feature/build.properties
trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml
Log:
JBIDE-3001 Internationalize Portal component
Modified: trunk/portlet/features/org.jboss.tools.portlet.feature/build.properties
===================================================================
--- trunk/portlet/features/org.jboss.tools.portlet.feature/build.properties 2008-11-15 20:12:04 UTC (rev 11814)
+++ trunk/portlet/features/org.jboss.tools.portlet.feature/build.properties 2008-11-16 21:43:10 UTC (rev 11815)
@@ -1,2 +1,3 @@
bin.includes = feature.xml,\
- feature.properties
+ feature.properties,\
+ license.html
Deleted: trunk/portlet/features/org.jboss.tools.portlet.feature/feature.properties
===================================================================
Modified: trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml
===================================================================
--- trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml 2008-11-15 20:12:04 UTC (rev 11814)
+++ trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml 2008-11-16 21:43:10 UTC (rev 11815)
@@ -1,229 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.portlet.feature"
- label="JBoss Portlet"
+ label="%featureName"
version="1.0.0"
- provider-name="JBoss, a division of Red Hat"
+ provider-name="%providerName"
plugin="org.jboss.tools.portlet.ui">
- <description url="http://www.example.com/description">
- JBoss Portlet
+ <description>
+ %description
</description>
<copyright>
- Copyright (c) 2008 Red Hat, Inc.
-Distributed under license by Red Hat, Inc. All rights reserved.
-This program is made available under the terms of the
-Eclipse Public License v1.0 which accompanies this distribution,
-and is available at http://www.eclipse.org/legal/epl-v10.html
-Contributors:
-Red Hat, Inc. - initial API and implementation
+ %copyright
</copyright>
- <license url="http://www.eclipse.org/legal/epl-v10.html">
- Eclipse Public License - v 1.0
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS
-ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.
-1. DEFINITIONS
-"Contribution" means:
-a) in the case of the initial Contributor, the initial code and
-documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-i) changes to the Program, and
-ii) additions to the Program;
-where such changes and/or additions to the Program originate
-from and are distributed by that particular Contributor. A Contribution
-'originates' from a Contributor if it was added to the Program
-by such Contributor itself or anyone acting on such Contributor's
-behalf. Contributions do not include additions to the Program
-which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-"Contributor" means any person or entity that distributes the
-Program.
-"Licensed Patents " mean patent claims licensable by a Contributor
-which are necessarily infringed by the use or sale of its Contribution
-alone or when combined with the Program.
-"Program" means the Contributions distributed in accordance with
-this Agreement.
-"Recipient" means anyone who receives the Program under this
-Agreement, including all Contributors.
-2. GRANT OF RIGHTS
-a) Subject to the terms of this Agreement, each Contributor hereby
-grants Recipient a non-exclusive, worldwide, royalty-free copyright
-license to reproduce, prepare derivative works of, publicly display,
-publicly perform, distribute and sublicense the Contribution
-of such Contributor, if any, and such derivative works, in source
-code and object code form.
-b) Subject to the terms of this Agreement, each Contributor hereby
-grants Recipient a non-exclusive, worldwide, royalty-free patent
-license under Licensed Patents to make, use, sell, offer to sell,
-import and otherwise transfer the Contribution of such Contributor,
-if any, in source code and object code form. This patent license
-shall apply to the combination of the Contribution and the Program
-if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to
-be covered by the Licensed Patents. The patent license shall
-not apply to any other combinations which include the Contribution.
-No hardware per se is licensed hereunder.
-c) Recipient understands that although each Contributor grants
-the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe
-the patent or other intellectual property rights of any other
-entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement
-of intellectual property rights or otherwise. As a condition
-to exercising the rights and licenses granted hereunder, each
-Recipient hereby assumes sole responsibility to secure any other
-intellectual property rights needed, if any. For example, if
-a third party patent license is required to allow Recipient to
-distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-d) Each Contributor represents that to its knowledge it has sufficient
-copyright rights in its Contribution, if any, to grant the copyright
-license set forth in this Agreement.
-3. REQUIREMENTS
-A Contributor may choose to distribute the Program in object
-code form under its own license agreement, provided that:
-a) it complies with the terms and conditions of this Agreement;
-and
-b) its license agreement:
-i) effectively disclaims on behalf of all Contributors all warranties
-and conditions, express and implied, including warranties or
-conditions of title and non-infringement, and implied warranties
-or conditions of merchantability and fitness for a particular
-purpose;
-ii) effectively excludes on behalf of all Contributors all liability
-for damages, including direct, indirect, special, incidental
-and consequential damages, such as lost profits;
-iii) states that any provisions which differ from this Agreement
-are offered by that Contributor alone and not by any other party;
-and
-iv) states that source code for the Program is available from
-such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for
-software exchange.
-When the Program is made available in source code form:
-a) it must be made available under this Agreement; and
-b) a copy of this Agreement must be included with each copy of
-the Program.
-Contributors may not remove or alter any copyright notices contained
-within the Program.
-Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-4. COMMERCIAL DISTRIBUTION
-Commercial distributors of software may accept certain responsibilities
-with respect to end users, business partners and the like. While
-this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and indemnify
-every other Contributor ("Indemnified Contributor") against any
-losses, damages and costs (collectively "Losses") arising from
-claims, lawsuits and other legal actions brought by a third party
-against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection
-with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any
-claims or Losses relating to any actual or alleged intellectual
-property infringement. In order to qualify, an Indemnified Contributor
-must: a) promptly notify the Commercial Contributor in writing
-of such claim, and b) allow the Commercial Contributor to control,
-and cooperate with the Commercial Contributor in, the defense
-and any related settlement negotiations. The Indemnified Contributor
-may participate in any such claim at its own expense.
-For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have
-to defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any
-other Contributor to pay any damages as a result, the Commercial
-Contributor must pay those damages.
-5. NO WARRANTY
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM
-IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with
-its exercise of rights under this Agreement , including but not
-limited to the risks and costs of program errors, compliance
-with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations.
-6. DISCLAIMER OF LIABILITY
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE
-OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY
-OF SUCH DAMAGES.
-7. GENERAL
-If any provision of this Agreement is invalid or unenforceable
-under applicable law, it shall not affect the validity or enforceability
-of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be
-reformed to the minimum extent necessary to make such provision
-valid and enforceable.
-If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging
-that the Program itself (excluding combinations of the Program
-with other software or hardware) infringes such Recipient's patent(s),
-then such Recipient's rights granted under Section 2(b) shall
-terminate as of the date such litigation is filed.
-All Recipient's rights under this Agreement shall terminate if
-it fails to comply with any of the material terms or conditions
-of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If
-all Recipient's rights under this Agreement terminate, Recipient
-agrees to cease use and distribution of the Program as soon as
-reasonably practicable. However, Recipient's obligations under
-this Agreement and any licenses granted by Recipient relating
-to the Program shall continue and survive.
-Everyone is permitted to copy and distribute copies of this Agreement,
-but in order to avoid inconsistency the Agreement is copyrighted
-and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other
-than the Agreement Steward has the right to modify this Agreement.
-The Eclipse Foundation is the initial Agreement Steward. The
-Eclipse Foundation may assign the responsibility to serve as
-the Agreement Steward to a suitable separate entity. Each new
-version of the Agreement will be given a distinguishing version
-number. The Program (including Contributions) may always be distributed
-subject to the version of the Agreement under which it was received.
-In addition, after a new version of the Agreement is published,
-Contributor may elect to distribute the Program (including its
-Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights
-or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under
-this Agreement are reserved.
-This Agreement is governed by the laws of the State of New York
-and the intellectual property laws of the United States of America.
-No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose.
-Each party waives its rights to a jury trial in any resulting
-litigation.
+ <license url="%licenseURL">
+ %license
</license>
<url>
- <update label="JBossTools Update Site" url="http://download.jboss.org/jbosstools/updates/stable"/>
+ <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable"/>
</url>
-
-
+
<plugin
id="org.jboss.tools.portlet.core"
download-size="0"
Added: trunk/portlet/features/org.jboss.tools.portlet.feature/license.html
===================================================================
--- trunk/portlet/features/org.jboss.tools.portlet.feature/license.html (rev 0)
+++ trunk/portlet/features/org.jboss.tools.portlet.feature/license.html 2008-11-16 21:43:10 UTC (rev 11815)
@@ -0,0 +1,79 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
+<title>Eclipse.org Software User Agreement</title>
+</head>
+
+<body lang="EN-US" link=blue vlink=purple>
+<h2>Eclipse Foundation Software User Agreement</h2>
+<p>March 17, 2005</p>
+
+<h3>Usage Of Content</h3>
+
+<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
+ (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
+ CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
+ OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
+ NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
+ CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
+
+<h3>Applicable Licenses</h3>
+
+<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
+ ("EPL"). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+ For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository ("Repository") in CVS
+ modules ("Modules") and made available as downloadable archives ("Downloads").</p>
+
+<ul>
+ <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").</li>
+ <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".</li>
+ <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
+ and/or Fragments associated with that Feature.</li>
+ <li>Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.</li>
+</ul>
+
+<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
+Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
+including, but not limited to the following locations:</p>
+
+<ul>
+ <li>The top-level (root) directory</li>
+ <li>Plug-in and Fragment directories</li>
+ <li>Inside Plug-ins and Fragments packaged as JARs</li>
+ <li>Sub-directories of the directory named "src" of certain Plug-ins</li>
+ <li>Feature directories</li>
+</ul>
+
+<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license ("Feature Update License") during the
+installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
+inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
+Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
+that directory.</p>
+
+<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
+
+<ul>
+ <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
+ <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
+ <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
+ <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
+ <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
+ <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
+</ul>
+
+<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
+contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
+
+<h3>Cryptography</h3>
+
+<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
+ another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
+ possession, or use, and re-export of encryption software, to see if this is permitted.</p>
+
+<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
+</body>
+</html>
17 years, 5 months
JBoss Tools SVN: r11814 - in trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam: internal/core/project/facet and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-15 15:12:04 -0500 (Sat, 15 Nov 2008)
New Revision: 11814
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
Log:
JBIDE-3006 img resources from seam-gen in Seam 2.1 does not seem to be copied correctly
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2008-11-15 19:01:47 UTC (rev 11813)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2008-11-15 20:12:04 UTC (rev 11814)
@@ -39,4 +39,9 @@
public static String SEAM_FACET_INSTALL_ABSTRACT_DELEGATE_CHECK_ERROR_LOG_VIEW;
public static String SEAM_FACET_INSTALL_ABSTRACT_DELEGATE_ERROR;
public static String SEAM_INSTALL_WIZARD_PROJECT_NAME_WITH_UPPERCASE;
+ public static String SeamFacetAbstractInstallDelegate_Could_not_activate_Hibernate_nature_on_project;
+ public static String SeamFacetAbstractInstallDelegate_Could_not_save_changes_to_preferences;
+ public static String SeamFacetAbstractInstallDelegate_Error;
+ public static String SeamFacetAbstractInstallDelegate_Restrict_raw_XHTML_Documents;
+
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2008-11-15 19:01:47 UTC (rev 11813)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2008-11-15 20:12:04 UTC (rev 11814)
@@ -1,4 +1,8 @@
SeamCoreBuilder_1=Error storing build results for ''{0}''
+SeamFacetAbstractInstallDelegate_Could_not_activate_Hibernate_nature_on_project=Could not activate Hibernate nature on project
+SeamFacetAbstractInstallDelegate_Could_not_save_changes_to_preferences=Could not save changes to preferences
+SeamFacetAbstractInstallDelegate_Error=Error
+SeamFacetAbstractInstallDelegate_Restrict_raw_XHTML_Documents=Restrict raw XHTML Documents
ANT_COPY_UTILS_COPY_FAILED=Copy failed - ''{0}'' does not exist
ANT_COPY_UTILS_COULD_NOT_FIND_FOLDER=Could not find ''{0}''
ANT_COPY_UTILS_IN=\ in
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2008-11-15 19:01:47 UTC (rev 11813)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2008-11-15 20:12:04 UTC (rev 11814)
@@ -13,6 +13,7 @@
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -68,8 +69,11 @@
import org.eclipse.jst.javaee.web.WebFactory;
import org.eclipse.jst.javaee.web.WebResourceCollection;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.dialogs.IOverwriteQuery;
+import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
+import org.eclipse.ui.wizards.datatransfer.IImportStructureProvider;
+import org.eclipse.ui.wizards.datatransfer.ImportOperation;
import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
@@ -95,28 +99,28 @@
public abstract class SeamFacetAbstractInstallDelegate implements ILogListener,
IDelegate,ISeamFacetDataModelProperties {
- public static String ORG_RICHFACES_SKIN = "org.richfaces.SKIN";
- public static String ORG_RICHFACES_SKIN_VALUE = "blueSky";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMLISTENER = "org.jboss.seam.servlet.SeamListener";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMFILTER = "org.jboss.seam.servlet.SeamFilter";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMFILTER_NAME = "Seam Filter";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMFILTER_MAPPING_VALUE = "/*";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMRESOURCESERVLET = "org.jboss.seam.servlet.SeamResourceServlet";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMRESOURCESERVLET_NAME = "Seam Resource Servlet";
- public static String ORG_JBOSS_SEAM_SERVLET_SEAMRESOURCESERVLET_VALUE = "/seam/resource/*";
- public static String FACELETS_DEVELOPMENT = "facelets.DEVELOPMENT";
- public static String JAVAX_FACES_DEFAULT_SUFFIX = "javax.faces.DEFAULT_SUFFIX";
- public static String JAVAX_FACES_DEFAULT_SUFFIX_VALUE = ".xhtml";
- public static String RESTRICT_RAW_XHTML = "Restrict raw XHTML Documents";
- public static String XHTML = "XHTML";
- public static String WEB_RESOURCE_COLLECTION_PATTERN = "*.xhtml";
+ public static String ORG_RICHFACES_SKIN = "org.richfaces.SKIN"; //$NON-NLS-1$
+ public static String ORG_RICHFACES_SKIN_VALUE = "blueSky"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMLISTENER = "org.jboss.seam.servlet.SeamListener"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMFILTER = "org.jboss.seam.servlet.SeamFilter"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMFILTER_NAME = "Seam Filter"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMFILTER_MAPPING_VALUE = "/*"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMRESOURCESERVLET = "org.jboss.seam.servlet.SeamResourceServlet"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMRESOURCESERVLET_NAME = "Seam Resource Servlet"; //$NON-NLS-1$
+ public static String ORG_JBOSS_SEAM_SERVLET_SEAMRESOURCESERVLET_VALUE = "/seam/resource/*"; //$NON-NLS-1$
+ public static String FACELETS_DEVELOPMENT = "facelets.DEVELOPMENT"; //$NON-NLS-1$
+ public static String JAVAX_FACES_DEFAULT_SUFFIX = "javax.faces.DEFAULT_SUFFIX"; //$NON-NLS-1$
+ public static String JAVAX_FACES_DEFAULT_SUFFIX_VALUE = ".xhtml"; //$NON-NLS-1$
+ public static String RESTRICT_RAW_XHTML = SeamCoreMessages.SeamFacetAbstractInstallDelegate_Restrict_raw_XHTML_Documents;
+ public static String XHTML = "XHTML"; //$NON-NLS-1$
+ public static String WEB_RESOURCE_COLLECTION_PATTERN = "*.xhtml"; //$NON-NLS-1$
public static String SEAM_LIB_RELATED_PATH = "lib"; //$NON-NLS-1$
public static final String DEV_WAR_PROFILE = "dev-war"; //$NON-NLS-1$
public static final String DEV_EAR_PROFILE = "dev"; //$NON-NLS-1$
public static AntCopyUtils.FileSet JBOOS_EJB_WEB_INF_CLASSES_SET = new AntCopyUtils.FileSet()
.include("import\\.sql") //$NON-NLS-1$
- .include("seam\\.properties")
+ .include("seam\\.properties") //$NON-NLS-1$
.exclude(".*/WEB-INF"); //$NON-NLS-1$
public static AntCopyUtils.FileSet VIEW_FILESET = new AntCopyUtils.FileSet()
@@ -129,8 +133,8 @@
.include("layout/.*") //$NON-NLS-1$
.include("stylesheet") //$NON-NLS-1$
.include("stylesheet/.*") //$NON-NLS-1$
- .include("img/.*") //$NON-NLS-1$
- .include("img") //$NON-NLS-1$
+ //.include("img/.*") //$NON-NLS-1$
+ //.include("img") //$NON-NLS-1$
.exclude(".*/.*\\.ftl") //$NON-NLS-1$
.exclude(".*/CVS") //$NON-NLS-1$
.exclude(".*/\\.svn"); //$NON-NLS-1$
@@ -158,6 +162,12 @@
.exclude(".*\\.svn") //$NON-NLS-1$
.exclude(".*/\\.svn"); //$NON-NLS-1$
+ private static IOverwriteQuery OVERWRITE_ALL = new IOverwriteQuery() {
+ public String queryOverwrite(String file) {
+ return ALL;
+ }
+ };
+
/* (non-Javadoc)
* @see org.eclipse.wst.common.project.facet.core.IDelegate#execute(org.eclipse.core.resources.IProject, org.eclipse.wst.common.project.facet.core.IProjectFacetVersion, java.lang.Object, org.eclipse.core.runtime.IProgressMonitor)
*/
@@ -191,15 +201,15 @@
public static boolean toggleHibernateOnProject(IProject project, String defaultConsoleName) {
IScopeContext scope = new ProjectScope(project);
- Preferences node = scope.getNode("org.hibernate.eclipse.console");
+ Preferences node = scope.getNode("org.hibernate.eclipse.console"); //$NON-NLS-1$
if(node!=null) {
- node.putBoolean("hibernate3.enabled", true );
- node.put("default.configuration", defaultConsoleName );
+ node.putBoolean("hibernate3.enabled", true ); //$NON-NLS-1$
+ node.put("default.configuration", defaultConsoleName ); //$NON-NLS-1$
try {
node.flush();
} catch (BackingStoreException e) {
- SeamCorePlugin.getDefault().logError("Could not save changes to preferences", e);
+ SeamCorePlugin.getDefault().logError(SeamCoreMessages.SeamFacetAbstractInstallDelegate_Could_not_save_changes_to_preferences, e);
return false;
}
} else {
@@ -207,10 +217,10 @@
}
try {
- addProjectNature(project, "org.hibernate.eclipse.console.hibernateNature", new NullProgressMonitor() );
+ addProjectNature(project, "org.hibernate.eclipse.console.hibernateNature", new NullProgressMonitor() ); //$NON-NLS-1$
return true;
} catch(CoreException ce) {
- SeamCorePlugin.getDefault().logError("Could not activate Hibernate nature on project " + project.getName(), ce);
+ SeamCorePlugin.getDefault().logError(SeamCoreMessages.SeamFacetAbstractInstallDelegate_Could_not_activate_Hibernate_nature_on_project + project.getName(), ce);
return false;
}
}
@@ -340,6 +350,23 @@
viewFilterSetCollection,
false);
+ IImportStructureProvider structureProvider = FileSystemStructureProvider.INSTANCE;
+ File rootDir = new File(seamGenViewSource,"img"); //$NON-NLS-1$
+ IPath imgPath = webContentPath.append("img"); //$NON-NLS-1$
+ try {
+ ImportOperation op= new ImportOperation(imgPath, rootDir, structureProvider, OVERWRITE_ALL);
+ op.setCreateContainerStructure(false);
+ op.run(monitor);
+ } catch (InterruptedException e) {
+ // should not happen
+ } catch (InvocationTargetException e) {
+ Throwable t = e.getTargetException();
+ if (t instanceof CoreException) {
+ ErrorDialog.openError(Display.getCurrent().getActiveShell(), SeamCoreMessages.SeamFacetAbstractInstallDelegate_Error,
+ null, ((CoreException) t).getStatus());
+ }
+ }
+
// *******************************************************************
// Copy manifest and configuration resources the same way as view
// *******************************************************************
@@ -352,8 +379,8 @@
new File(webInfFolder, "components.xml"), //$NON-NLS-1$
new FilterSetCollection(projectFilterSet), false);
- File facesConfig = new File(webContentFolder, "WEB-INF/faces-config.xml");
- IPath webConfigPath = webContentPath.append("WEB-INF").append("faces-config.xml");
+ File facesConfig = new File(webContentFolder, "WEB-INF/faces-config.xml"); //$NON-NLS-1$
+ IPath webConfigPath = webContentPath.append("WEB-INF").append("faces-config.xml"); //$NON-NLS-1$ //$NON-NLS-2$
String webConfigName = webConfigPath.removeFirstSegments(1).toString();
if(facesConfig.exists()) {
configureFacesConfigXml(project, monitor, webConfigName);
@@ -393,7 +420,7 @@
srcRootFolder.createLink(actionSrcPath, 0, null);
srcRootFolder.createLink(modelSrcPath, 0, null);
- File actionsSrc = new File(project.getLocation().toFile(), source.getFullPath().removeFirstSegments(1) + "/action/");
+ File actionsSrc = new File(project.getLocation().toFile(), source.getFullPath().removeFirstSegments(1) + "/action/"); //$NON-NLS-1$
//AntCopyUtils.copyFileToFolder(new File(seamGenResFolder, "seam.properties"), actionsSrc, true); //$NON-NLS-1$
@@ -407,7 +434,7 @@
new File(srcFolder, "META-INF/persistence.xml"), //$NON-NLS-1$
viewFilterSetCollection, false);
- File resources = new File(project.getLocation().toFile(), "resources");
+ File resources = new File(project.getLocation().toFile(), "resources"); //$NON-NLS-1$
AntCopyUtils.copyFileToFile(
dataSourceDsFile,
new File(resources, project.getName() + "-ds.xml"), //$NON-NLS-1$
@@ -451,7 +478,7 @@
earContentsFolder = rootVirtFolder.getUnderlyingFolder().getLocation().toFile();
File metaInfFolder = new File(earContentsFolder, "META-INF"); //$NON-NLS-1$
- File applicationXml = new File(metaInfFolder, "application.xml");
+ File applicationXml = new File(metaInfFolder, "application.xml"); //$NON-NLS-1$
File earProjectFolder = project.getLocation().toFile();
FilterSet earFilterSet = new FilterSet();
@@ -475,7 +502,7 @@
fillEarContents();
- File resources = new File(earProjectFolder, "resources");
+ File resources = new File(earProjectFolder, "resources"); //$NON-NLS-1$
AntCopyUtils.copyFileToFile(
dataSourceDsFile, new File(resources, project.getName() + "-ds.xml"), //$NON-NLS-1$
viewFilterSetCollection, false);
@@ -493,7 +520,7 @@
Object module = iterator.next();
if(module instanceof EjbModule) {
EjbModule ejbModule = (EjbModule)module;
- if("jboss-seam.jar".equals(ejbModule.getUri())) {
+ if("jboss-seam.jar".equals(ejbModule.getUri())) { //$NON-NLS-1$
moduleExists = true;
break;
}
@@ -501,7 +528,7 @@
}
if(!moduleExists) {
EjbModule module = ApplicationFactory.eINSTANCE.createEjbModule();
- module.setUri("jboss-seam.jar");
+ module.setUri("jboss-seam.jar"); //$NON-NLS-1$
application.getModules().add(module);
}
@@ -588,7 +615,7 @@
AntCopyUtils.FileSet ejbSrcResourcesSet = new AntCopyUtils.FileSet(JBOOS_EJB_WEB_INF_CLASSES_SET).dir(seamGenResFolder);
AntCopyUtils.copyFilesAndFolders(seamGenResFolder, srcFile, new AntCopyUtils.FileSetFileFilter(ejbSrcResourcesSet), viewFilterSetCollection, false);
- File ejbJarXml = new File(srcFile, "META-INF/ejb-jar.xml");
+ File ejbJarXml = new File(srcFile, "META-INF/ejb-jar.xml"); //$NON-NLS-1$
if(!ejbJarXml.exists()) {
AntCopyUtils.copyFileToFolder(new File(seamGenResFolder, "META-INF/ejb-jar.xml"), //$NON-NLS-1$
new File(srcFile, "META-INF"), viewFilterSetCollection, false); //$NON-NLS-1$
@@ -688,7 +715,7 @@
}
if (model.getProperty(ISeamFacetDataModelProperties.JDBC_DRIVER_JAR_PATH) != null) {
File driver = new File(((String[]) model.getProperty(ISeamFacetDataModelProperties.JDBC_DRIVER_JAR_PATH))[0]);
- ejbFilterSet.addFilter("driverJar", " " + driver.getName() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
+ ejbFilterSet.addFilter("driverJar", " " + driver.getName() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
} else {
ejbFilterSet.addFilter("driverJar", ""); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -722,16 +749,16 @@
Object projectNamePackage = model.getProperty(ISeamFacetDataModelProperties.SEAM_PROJECT_NAME);
IStatus status = JavaConventions.validatePackageName(projectNamePackage.toString(), CompilerOptions.VERSION_1_5, CompilerOptions.VERSION_1_5);
if(!status.isOK()) {
- projectNamePackage = "project";
+ projectNamePackage = "project"; //$NON-NLS-1$
}
if(model.getProperty(ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME)==null) {
- model.setProperty(ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME, "org.domain." + projectNamePackage + ".session"); //$NON-NLS-1$
+ model.setProperty(ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME, "org.domain." + projectNamePackage + ".session"); //$NON-NLS-1$ //$NON-NLS-2$
}
if(model.getProperty(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME)==null) {
- model.setProperty(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME, "org.domain." + projectNamePackage + ".entity"); //$NON-NLS-1$
+ model.setProperty(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME, "org.domain." + projectNamePackage + ".entity"); //$NON-NLS-1$ //$NON-NLS-2$
}
if(model.getProperty(ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME)==null) {
- model.setProperty(ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME, "org.domain." + projectNamePackage + ".test"); //$NON-NLS-1$
+ model.setProperty(ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME, "org.domain." + projectNamePackage + ".test"); //$NON-NLS-1$ //$NON-NLS-2$
}
if(model.getProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME)==null) {
String runtimeName = SeamFacetInstallDataModelProvider.getSeamRuntimeDefaultValue(model);
@@ -807,7 +834,7 @@
prefs.put(SESSION_BEAN_PACKAGE_NAME, model.getProperty(SESSION_BEAN_PACKAGE_NAME).toString());
prefs.put(ENTITY_BEAN_PACKAGE_NAME, model.getProperty(ENTITY_BEAN_PACKAGE_NAME).toString());
prefs.put(TEST_CASES_PACKAGE_NAME, model.getProperty(TEST_CASES_PACKAGE_NAME).toString());
- prefs.put(TEST_CREATING, "false");
+ prefs.put(TEST_CREATING, "false"); //$NON-NLS-1$
prefs.put(SEAM_TEST_PROJECT, project.getName());
IVirtualComponent component = ComponentCore.createComponent(project);
@@ -822,7 +849,7 @@
srcRootFolder = getSrcFolder(project).getFullPath();
} catch (JavaModelException e) {
SeamCorePlugin.getPluginLog().logError(e);
- srcRootFolder = new Path("");
+ srcRootFolder = new Path(""); //$NON-NLS-1$
}
}
if(projectType == ProjectType.WAR) {
17 years, 5 months
JBoss Tools SVN: r11813 - trunk/birt/features/org.jboss.tools.birt.feature.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-15 14:01:47 -0500 (Sat, 15 Nov 2008)
New Revision: 11813
Added:
trunk/birt/features/org.jboss.tools.birt.feature/feature.properties
Log:
JBIDE-3000 Internationalize BIRT component
Added: trunk/birt/features/org.jboss.tools.birt.feature/feature.properties
===================================================================
--- trunk/birt/features/org.jboss.tools.birt.feature/feature.properties (rev 0)
+++ trunk/birt/features/org.jboss.tools.birt.feature/feature.properties 2008-11-15 19:01:47 UTC (rev 11813)
@@ -0,0 +1,41 @@
+###############################################################################
+# Copyright (c) 2008 JBoss, a division of Red Hat and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# JBoss, a division of Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss BIRT Integration
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss, a division of Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=JBoss BIRT Integration
+
+# "copyright" property - text of the "Feature Update Copyright"
+copyright=Copyright (c) 2008 JBoss, a division of Red Hat and others.\nAll rights reserved. This program and the accompanying materials\n
+are made available under the terms of the Eclipse Public License v1.0\nwhich accompanies this distribution, and is available at\nhttp\://www.eclipse.org/legal/epl-v10.html\n\nContributors\:\nJBoss, a division of Red Hat - Initial implementation.\n
+ ############### end of copyright property ####################################
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\nMarch 17, 2005\n\nUsage Of Content\n\nTHE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\nOTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\nUSE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\nAGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\nNOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\nAGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\nAND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\nOR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\nTERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\nOF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\nBELOW, THEN YOU MAY NOT USE THE CONTENT.\n\nApplicable Licenses\n\nUnless otherwise indicated, all Content made available by the Eclipse Foundation\nis provided to you under the terms and conditio!
ns of the Eclipse Public\nLicense Version 1.0 ("EPL"). A copy of the EPL is provided with this\nContent and is also available at http\://www.eclipse.org/legal/epl-v10.html.\nFor purposes of the EPL, "Program" will mean the Content.\n\nContent includes, but is not limited to, source code, object code,\ndocumentation and other files maintained in the Eclipse.org CVS\nrepository ("Repository") in CVS modules ("Modules") and made available\nas downloadable archives ("Downloads").\n\n- Content may be structured and packaged into modules to facilitate delivering,\nextending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\nplug-in fragments ("Fragments"), and features ("Features").\n- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\nin a directory named "plugins".\n- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\nEach Feature may be packaged as a sub-directory in a directory!
named "features".\nWithin a Feature, files named "feature.xml" may co
ntain a list of the names and version\nnumbers of the Plug-ins and/or Fragments associated with that Feature.\n- Features may also include other Features ("Included Features"). Within a Feature, files\nnamed "feature.xml" may contain a list of the names and version numbers of Included Features.\n\nFeatures may also include other Features ("Included Features"). Files named\n"feature.xml" may contain a list of the names and version numbers of\nIncluded Features.\n\nThe terms and conditions governing Plug-ins and Fragments should be\ncontained in files named "about.html" ("Abouts"). The terms and\nconditions governing Features and Included Features should be contained\nin files named "license.html" ("Feature Licenses"). Abouts and Feature\nLicenses may be located in any directory of a Download or Module\nincluding, but not limited to the following locations\:\n\n- The top-level (root) directory\n- Plug-in and Fragment directories\n- Inside Plug-ins and Fragments packaged as JAR!
s\n- Sub-directories of the directory named "src" of certain Plug-ins\n- Feature directories\n\nNote\: if a Feature made available by the Eclipse Foundation is installed using the\nEclipse Update Manager, you must agree to a license ("Feature Update\nLicense") during the installation process. If the Feature contains\nIncluded Features, the Feature Update License should either provide you\nwith the terms and conditions governing the Included Features or inform\nyou where you can locate them. Feature Update Licenses may be found in\nthe "license" property of files named "feature.properties". Such Abouts,\nFeature Licenses and Feature Update Licenses contain the terms and\nconditions (or references to such terms and conditions) that govern your\nuse of the associated Content in that directory.\n\nTHE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\nTO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\nSOME OF THESE OTHER LICENSE AGREEMENTS MA!
Y INCLUDE (BUT ARE NOT LIMITED TO)\:\n\n- Common Public License Versio
n 1.0 (available at http\://www.eclipse.org/legal/cpl-v10.html)\n- Apache Software License 1.1 (available at http\://www.apache.org/licenses/LICENSE)\n- Apache Software License 2.0 (available at http\://www.apache.org/licenses/LICENSE-2.0)\n- IBM Public License 1.0 (available at http\://oss.software.ibm.com/developerworks/opensource/license10.html)\n- Metro Link Public License 1.00 (available at http\://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n- Mozilla Public License Version 1.1 (available at http\://www.mozilla.org/MPL/MPL-1.1.html)\n\nIT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\nTO USE OF THE CONTENT. If no About, Feature License or Feature Update License\nis provided, please contact the Eclipse Foundation to determine what terms and conditions\ngovern that particular Content.\n\nCryptography\n\nContent may contain encryption software. The country in which you are\ncurrently may have restrictions on the import, posse!
ssion, and use,\nand/or re-export to another country, of encryption software. BEFORE\nusing any encryption software, please check the country's laws,\nregulations and policies concerning the import, possession, or use,\nand re-export of encryption software, to see if this is permitted.\n\nJava and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
+########### end of license property ##########################################
17 years, 5 months