JBoss Tools SVN: r11751 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-11-13 05:53:25 -0500 (Thu, 13 Nov 2008)
New Revision: 11751
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
Log:
JBIDE-3184 - cleanup legacy keys
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2008-11-13 10:26:12 UTC (rev 11750)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2008-11-13 10:53:25 UTC (rev 11751)
@@ -68,6 +68,9 @@
if(!workingCopy.getAttributes().containsKey(DEFAULTS_SET)) {
forceDefaultsSet(workingCopy, server);
}
+
+ // Cleanup legacy keys
+ workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, (String)null);
}
public static void forceDefaultsSet(ILaunchConfigurationWorkingCopy wc, IServer server) throws CoreException {
17 years, 5 months
JBoss Tools SVN: r11750 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-11-13 05:26:12 -0500 (Thu, 13 Nov 2008)
New Revision: 11750
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-3171
UI updates make in ui thread.
Added fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=255149
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/MANIFEST.MF 2008-11-13 10:25:04 UTC (rev 11749)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/MANIFEST.MF 2008-11-13 10:26:12 UTC (rev 11750)
@@ -15,7 +15,6 @@
org.eclipse.datatools.connectivity;bundle-version="1.1.0",
org.eclipse.jdt.launching;bundle-version="3.4.0",
org.eclipse.wst.common.project.facet.ui;bundle-version="1.3.0",
- org.eclipse.wst.common.frameworks;bundle-version="1.1.200",
org.eclipse.jpt.utility;bundle-version="1.2.0",
org.eclipse.ui.forms;bundle-version="3.3.100",
org.jboss.tools.hibernate.jpt.core;bundle-version="1.0.0"
17 years, 5 months
JBoss Tools SVN: r11749 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core: src/org/jboss/tools/hibernate/jpt/core/internal/context and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-11-13 05:25:04 -0500 (Thu, 13 Nov 2008)
New Revision: 11749
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3171
UI updates make in ui thread.
Added fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=255149
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF 2008-11-13 10:24:58 UTC (rev 11748)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF 2008-11-13 10:25:04 UTC (rev 11749)
@@ -12,7 +12,8 @@
org.hibernate.eclipse.console;bundle-version="3.2.0",
org.hibernate.eclipse;bundle-version="3.2.0",
org.eclipse.jdt.launching;bundle-version="3.4.0",
- org.eclipse.debug.core;bundle-version="3.4.0"
+ org.eclipse.debug.core;bundle-version="3.4.0",
+ org.eclipse.emf.ecore;bundle-version="2.4.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: Hibernate Team
Export-Package: org.jboss.tools.hibernate.jpt.core.internal,
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java 2008-11-13 10:24:58 UTC (rev 11748)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java 2008-11-13 10:25:04 UTC (rev 11749)
@@ -11,8 +11,13 @@
package org.jboss.tools.hibernate.jpt.core.internal.context;
import java.io.File;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
import java.util.List;
-import java.util.ResourceBundle;
+import java.util.Map;
+import java.util.Set;
+import java.util.Map.Entry;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -22,6 +27,10 @@
import org.eclipse.jpt.core.context.persistence.Property;
import org.eclipse.jpt.core.internal.context.persistence.GenericPersistenceUnit;
import org.eclipse.jpt.core.resource.persistence.XmlPersistenceUnit;
+import org.eclipse.jpt.core.resource.persistence.XmlProperties;
+import org.eclipse.jpt.core.resource.persistence.XmlProperty;
+import org.eclipse.jpt.utility.internal.iterators.CloneIterator;
+import org.eclipse.jpt.utility.internal.iterators.EmptyIterator;
import org.eclipse.wst.validation.internal.core.Message;
import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.jboss.tools.hibernate.jpt.core.internal.context.basic.BasicHibernateProperties;
@@ -89,7 +98,57 @@
}
}
+
/**
+ * If persistence.xml contains 3 properties: dialect, driver, url and we delete
+ * driver-property, then parent's method changes current properties so:
+ * 1. replace 1-st model's property(dialect) with 1-st property from persistence.xml (dialect)
+ * 2. replace 2-nd model's property(driver) with 2-nd property from persistence.xml (url)
+ * 3. remove 3-rd model's property(url)
+ * Step 3 call property change event which set url=null and this is wrong.
+ * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=255149
+ * TODO: remove after bug fixed.
+ */
+ @Override
+ protected void updateProperties(XmlPersistenceUnit persistenceUnit) {
+ XmlProperties xmlProperties = persistenceUnit.getProperties();
+
+ Iterator<Property> stream = properties();
+ Iterator<XmlProperty> stream2;
+
+ if (xmlProperties == null) {
+ stream2 = EmptyIterator.instance();
+ }
+ else {
+ stream2 = new CloneIterator<XmlProperty>(xmlProperties.getProperties());//avoid ConcurrentModificationException
+ }
+
+ Map<String, XmlProperty> map = new HashMap<String, XmlProperty>();
+ while (stream2.hasNext()){
+ XmlProperty xmlProp = stream2.next();
+ map.put(xmlProp.getName(), xmlProp);
+ }
+ Set<String> performedSet = new HashSet<String>();
+ while (stream.hasNext()) {
+ Property property = stream.next();
+ if (map.containsKey(property.getName())) {
+ XmlProperty xmlProp = map.get(property.getName());
+ property.update(xmlProp);
+ performedSet.add(property.getName());
+ } else {
+ removeProperty_(property);
+ }
+ }
+
+ for (Entry<String, XmlProperty> entry : map.entrySet()) {
+ if (!performedSet.contains(entry.getKey())) {
+ addProperty_(buildProperty(entry.getValue()));
+ }
+ }
+ }
+
+
+ /**
* Hack class needed to make JPA/Validation API pick up our classloader instead of its own.
*
* @author max
17 years, 5 months
JBoss Tools SVN: r11748 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-11-13 05:24:58 -0500 (Thu, 13 Nov 2008)
New Revision: 11748
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3171
UI updates make in ui thread.
Added fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=255149
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java 2008-11-13 09:24:17 UTC (rev 11747)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java 2008-11-13 10:24:58 UTC (rev 11748)
@@ -18,6 +18,7 @@
import org.eclipse.jpt.core.context.persistence.PersistenceUnit;
import org.eclipse.jpt.ui.WidgetFactory;
import org.eclipse.jpt.ui.details.JpaPageComposite;
+import org.eclipse.jpt.ui.internal.listeners.SWTPropertyChangeListenerWrapper;
import org.eclipse.jpt.ui.internal.widgets.AbstractFormPane;
import org.eclipse.jpt.utility.internal.model.value.PropertyAspectAdapter;
import org.eclipse.jpt.utility.internal.model.value.SimpleListValueModel;
@@ -112,29 +113,34 @@
lvmUrl,
urlHolder,
null);
+
+ dialectHolder.addPropertyChangeListener(new SWTPropertyChangeListenerWrapper(
+ new PropertyChangeListener() {
+ public void propertyChanged(PropertyChangeEvent event) {
+ String dialectClass = helper.getDialectClass((String) event.getNewValue());
+ String[] driverClasses = helper.getDriverClasses(dialectClass);
+ String driver = driverHolder.getValue();//save value
+ lvmDriver.clear();
+ lvmDriver.addAll(Arrays.asList(driverClasses));
+ driverHolder.setValue(driver); //restore value
+ }
+ }
+ )
+ );
- dialectHolder.addPropertyChangeListener(new PropertyChangeListener() {
- public void propertyChanged(PropertyChangeEvent event) {
- String dialectClass = helper.getDialectClass((String) event.getNewValue());
- String[] driverClasses = helper.getDriverClasses(dialectClass);
- String driver = driverHolder.getValue();//save value
- lvmDriver.clear();
- lvmDriver.addAll(Arrays.asList(driverClasses));
- driverHolder.setValue(driver); //restore value
- }
- });
+ driverHolder.addPropertyChangeListener( new SWTPropertyChangeListenerWrapper(
+ new PropertyChangeListener() {
+ public void propertyChanged(PropertyChangeEvent event) {
+ String driverClass = (String) event.getNewValue();
+ String[] connectionURLS = helper.getConnectionURLS(driverClass);
+ String url = urlHolder.getValue();//save value
+ lvmUrl.clear();
+ lvmUrl.addAll(Arrays.asList(connectionURLS));
+ urlHolder.setValue(url); //restore value
+ }
+ }
+ ) );
- driverHolder.addPropertyChangeListener(new PropertyChangeListener() {
- public void propertyChanged(PropertyChangeEvent event) {
- String driverClass = (String) event.getNewValue();
- String[] connectionURLS = helper.getConnectionURLS(driverClass);
- String url = urlHolder.getValue();//save value
- lvmUrl.clear();
- lvmUrl.addAll(Arrays.asList(connectionURLS));
- urlHolder.setValue(url); //restore value
- }
- });
-
buildLabeledText(
section,
HibernateConsoleMessages.NewConfigurationWizardPage_default_schema,
@@ -318,5 +324,4 @@
public String getPageText() {
return "Hibernate";
}
-
}
17 years, 5 months
JBoss Tools SVN: r11747 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-11-13 04:24:17 -0500 (Thu, 13 Nov 2008)
New Revision: 11747
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
Log:
JBIDE-3149
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2008-11-13 07:27:33 UTC (rev 11746)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2008-11-13 09:24:17 UTC (rev 11747)
@@ -313,9 +313,14 @@
boolean rst = false;
for (ResourceReference ref : references) {
- if (value.contains(ref.getLocation())) {
- rst = true;
- }
+
+ //FIXED FOR JBIDE-3149 by sdzmitrovich
+ if (equalsExppression(value, ref.getLocation()))
+ return true;
+
+// if (value.contains(ref.getLocation())) {
+// rst = true;
+// }
}
return rst;
}
@@ -402,5 +407,17 @@
// }
+ private boolean equalsExppression(String value, String expression) {
+ final String dollarEl = String.valueOf(DOLLAR_PREFIX) + expression
+ + String.valueOf(SUFFIX);
+ final String sharpEl = String.valueOf(SHARP_PREFIX) + expression
+ + String.valueOf(SUFFIX);
+
+ if (value.contains(dollarEl) || value.contains(sharpEl)) {
+ return true;
+ }
+ return false;
+ }
+
}
17 years, 5 months
JBoss Tools SVN: r11746 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: ui/wizards and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-11-13 02:27:33 -0500 (Thu, 13 Nov 2008)
New Revision: 11746
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/Messages.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksNormalContentEditFormPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizard.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizard.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/AbstractFileSelectionWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/XMLStructuredDataWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/AbstractXMLModelAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLSourceModelAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLTargetModelAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/XML2XMLAnalyzer.java
Log:
JBIDE-3129
Externalize String
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -60,7 +60,7 @@
parent.setLayout(new FillLayout());
Section section = formToolKit.createSection(parent, Section.DESCRIPTION
| Section.TITLE_BAR);
- section.setText("Details Information");
+ section.setText(Messages.getString("AbstractSmooksModelDetailPage.DetailSectionTitle")); //$NON-NLS-1$
Composite client = formToolKit.createComposite(section);
section.setLayout(new FillLayout());
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -45,17 +45,17 @@
GridLayout layout = new GridLayout();
layout.numColumns = 2;
parent.setLayout(layout);
- this.formToolKit.createLabel(parent, "Format :");
+ this.formToolKit.createLabel(parent, Messages.getString("DateTypeDetailPage.DateTypeFormatText")); //$NON-NLS-1$
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- formatText = this.formToolKit.createText(parent, "");
+ formatText = this.formToolKit.createText(parent, ""); //$NON-NLS-1$
formatText.setLayoutData(gd);
- this.formToolKit.createLabel(parent, "Locale-Language :");
+ this.formToolKit.createLabel(parent, Messages.getString("DateTypeDetailPage.DateTypeLocaleLanguageText")); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
localeLangaugeCombo = new Combo(parent, SWT.FLAT);
localeLangaugeCombo.setLayoutData(gd);
- this.formToolKit.createLabel(parent, "Locale-Contry :");
+ this.formToolKit.createLabel(parent, Messages.getString("DateTypeDetailPage.DateTypeLocaleContryText")); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
localeContryCombo = new Combo(parent, SWT.FLAT);
localeContryCombo.setLayoutData(gd);
@@ -66,12 +66,12 @@
@Override
protected void initSectionUI() {
if(this.resourceConfigList != null){
- String formate = SmooksModelUtils.getParmaText("format", resourceConfigList);
- String locallang = SmooksModelUtils.getParmaText("Locale-Language", resourceConfigList);
- String localcontry = SmooksModelUtils.getParmaText("Locale-Contry", resourceConfigList);
- if(formate == null) formate = "";
- if(locallang == null) locallang = "";
- if(localcontry == null) localcontry = "";
+ String formate = SmooksModelUtils.getParmaText("format", resourceConfigList); //$NON-NLS-1$
+ String locallang = SmooksModelUtils.getParmaText("Locale-Language", resourceConfigList); //$NON-NLS-1$
+ String localcontry = SmooksModelUtils.getParmaText("Locale-Contry", resourceConfigList); //$NON-NLS-1$
+ if(formate == null) formate = ""; //$NON-NLS-1$
+ if(locallang == null) locallang = ""; //$NON-NLS-1$
+ if(localcontry == null) localcontry = ""; //$NON-NLS-1$
formatText.setText(formate);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -42,8 +42,8 @@
GridLayout layout = new GridLayout();
layout.numColumns = 2;
parent.setLayout(layout);
- this.formToolKit.createLabel(parent, "Selector :");
- selectorText = formToolKit.createText(parent, "");
+ this.formToolKit.createLabel(parent, Messages.getString("DocumentResourceTypeDetailPage.Selector")); //$NON-NLS-1$
+ selectorText = formToolKit.createText(parent, ""); //$NON-NLS-1$
selectorText.addModifyListener(new ModifyListener(){
public void modifyText(ModifyEvent e) {
@@ -55,12 +55,12 @@
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
selectorText.setLayoutData(gd);
- this.formToolKit.createLabel(parent, "Document Path:");
+ this.formToolKit.createLabel(parent, Messages.getString("DocumentResourceTypeDetailPage.DocPath")); //$NON-NLS-1$
Composite fileCom = formToolKit.createComposite(parent);
gd = new GridData(GridData.FILL_HORIZONTAL);
fileCom.setLayoutData(gd);
fileCom.setLayout(layout);
- text = formToolKit.createText(fileCom, "");
+ text = formToolKit.createText(fileCom, ""); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.grabExcessHorizontalSpace = true;
text.setLayoutData(gd);
@@ -72,7 +72,7 @@
});
- Button browseButton = formToolKit.createButton(fileCom, "Browse...", SWT.NONE);
+ Button browseButton = formToolKit.createButton(fileCom, Messages.getString("DocumentResourceTypeDetailPage.BrowseFile"), SWT.NONE); //$NON-NLS-1$
browseButton.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
@@ -94,7 +94,7 @@
protected void browseFileSystem(){
IFile[] files = WorkspaceResourceDialog.openFileSelection(this.parentEditor.getSite()
.getShell(),
- "", "", false, null, Collections.EMPTY_LIST);
+ "", "", false, null, Collections.EMPTY_LIST); //$NON-NLS-1$ //$NON-NLS-2$
// dialog.setInitialSelections(selectedResources);
if (files.length > 0) {
IFile file = files[0];
@@ -122,7 +122,7 @@
ResourceType resource = resourceConfigList.getResource();
if(resource != null){
String path = resource.getValue();
- if(path == null) path = "";
+ if(path == null) path = ""; //$NON-NLS-1$
text.setText(path);
}
}
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.ui.editors;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.ui.editors.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -156,7 +156,7 @@
private List<DesignTimeAnalyzeResult> analyzeResultList = new ArrayList<DesignTimeAnalyzeResult>();
- private static final String REFERENCE_MODEL = "__reference_model";
+ private static final String REFERENCE_MODEL = "__reference_model"; //$NON-NLS-1$
protected SmooksConfigurationFileGenerateContext smooksConfigurationFileGenerateContext;
protected IViewerInitor sourceViewerInitor;
protected IViewerInitor targetViewerInitor;
@@ -301,11 +301,11 @@
gridLayout.horizontalSpacing = 0;
form.getBody().setLayout(gridLayout);
Composite rootMainControl = form.getBody();
- form.setText("Data Mapping Page");
+ form.setText(Messages.getString("SmooksGraphicalFormPage.MappingPageFormTitle")); //$NON-NLS-1$
mappingGUISection = this.createPageSectionHeader(rootMainControl,
Section.TITLE_BAR | Section.DESCRIPTION,
- "Mapping Graph Edit Panel",
- "Edit the source and target assosiation");
+ Messages.getString("SmooksGraphicalFormPage.MappingSectionTitle"), //$NON-NLS-1$
+ Messages.getString("SmooksGraphicalFormPage.MappingSectionDescription")); //$NON-NLS-1$
Composite mainComposite = toolkit.createComposite(mappingGUISection);
mappingGUISection.setClient(mainComposite);
@@ -401,7 +401,7 @@
underToolPanel.setLayoutData(sgd1);
{
sourceLink = toolkit.createHyperlink(underToolPanel,
- "Source Select", SWT.NONE);
+ Messages.getString("SmooksGraphicalFormPage.SourceSelectLinkText"), SWT.NONE); //$NON-NLS-1$
sourceLink.addHyperlinkListener(new DataSelectLinkListener(
sourceViewer));
}
@@ -419,7 +419,7 @@
}
{
targetLink = toolkit.createHyperlink(underToolPanel,
- "Target Select", SWT.NONE);
+ Messages.getString("SmooksGraphicalFormPage.TargetSelectLinkText"), SWT.NONE); //$NON-NLS-1$
GridData label2LData = new GridData();
label2LData.horizontalAlignment = GridData.END;
targetLink.setLayoutData(label2LData);
@@ -713,9 +713,9 @@
boolean cleanError = MessageDialog
.openQuestion(
getSite().getShell(),
- "Clean all the errors please",
- "There occurs some errors on the graphical design , please clean all errors .\n"
- + "Click \"Yes\" to return . If you don't care that , click \"No\" to save file.");
+ Messages.getString("SmooksGraphicalFormPage.CleanErrorsDialogTitle"), //$NON-NLS-1$
+ Messages.getString("SmooksGraphicalFormPage.CleanErrorsDialogContents1") //$NON-NLS-1$
+ + Messages.getString("SmooksGraphicalFormPage.CleanErrorsDialogContents2")); //$NON-NLS-1$
if (cleanError)
return;
}
@@ -746,8 +746,8 @@
exp = e;
}
if (exp != null) {
- ErrorDialog.openError(getSite().getShell(), "Save Error",
- "Some errors occurs during saving the file.", UIUtils
+ ErrorDialog.openError(getSite().getShell(), Messages.getString("SmooksGraphicalFormPage.SaveErrorDlgTitle"), //$NON-NLS-1$
+ Messages.getString("SmooksGraphicalFormPage.SaveErrorDlgContent"), UIUtils //$NON-NLS-1$
.createErrorStatus(exp));
}
super.doSave(monitor);
@@ -1065,8 +1065,8 @@
// callParentRefillNormalModelInfor(mappingResourceConfigList
// .getRelationgResourceConfigList());
} catch (IOWrappedException ex) {
- MessageDialog.openWarning(getSite().getShell(), "Waring",
- "Exceptions occurd during parsing Smooks file, no worries");
+ MessageDialog.openWarning(getSite().getShell(), "Waring", //$NON-NLS-1$
+ "Exceptions occurd during parsing Smooks file, no worries"); //$NON-NLS-1$
} catch (Throwable e) {
throwable = e;
}
@@ -1134,8 +1134,8 @@
if (!MessageDialog
.openQuestion(
getSite().getShell(),
- "Changed Data ?",
- "Do you want to change the data ? If you do so , all connections will be losted")) {
+ Messages.getString("SmooksGraphicalFormPage.ReselectViewerContentDlgTitle"), //$NON-NLS-1$
+ Messages.getString("SmooksGraphicalFormPage.ReselectViewerContentDlgContent"))) { //$NON-NLS-1$
return;
}
}
@@ -1165,13 +1165,13 @@
commandStackChanged = true;
firePropertyChange(PROP_DIRTY);
} catch (Exception e) {
- MessageDialog.openError(getSite().getShell(), "Error",
- "a error occurs during filling Data into the viewer:\n"
+ MessageDialog.openError(getSite().getShell(), Messages.getString("SmooksGraphicalFormPage.FillViewerErrorTitle"), //$NON-NLS-1$
+ Messages.getString("SmooksGraphicalFormPage.FillViewerErrorContent") //$NON-NLS-1$
+ e.toString());
}
} else {
- MessageDialog.openError(getSite().getShell(), "Error",
- "a error occurs during filling Data into the viewer");
+ MessageDialog.openError(getSite().getShell(), Messages.getString("SmooksGraphicalFormPage.FillViewerErrorTitle"), //$NON-NLS-1$
+ Messages.getString("SmooksGraphicalFormPage.FillViewerErrorContent")); //$NON-NLS-1$
}
}
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksNormalContentEditFormPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksNormalContentEditFormPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksNormalContentEditFormPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -108,7 +108,7 @@
GridLayout gridLayout = UIUtils.createGeneralFormEditorLayout(1);
resourceBlock.createContent(managedForm);
Composite rootMainControl = form.getBody();
- form.setText("Configuration Page");
+ form.setText(Messages.getString("SmooksNormalContentEditFormPage.ConfigurationPageText")); //$NON-NLS-1$
createSmooksTypeGUI(rootMainControl, tool);
form.getBody().setLayout(gridLayout);
form.pack();
@@ -178,7 +178,7 @@
if (domButton != null)
domButton.setSelection(true);
}
- if ("SAX/DOM".equals(type)) {
+ if ("SAX/DOM".equals(type)) { //$NON-NLS-1$
if (saxdomButton != null)
saxdomButton.setSelection(true);
}
@@ -193,7 +193,7 @@
parseTypeSection.setLayoutData(gd);
Composite typeSelectComposite = tool.createComposite(parseTypeSection);
parseTypeSection.setClient(typeSelectComposite);
- parseTypeSection.setText("Smooks Parse Type");
+ parseTypeSection.setText(Messages.getString("SmooksNormalContentEditFormPage.SmooksParseType")); //$NON-NLS-1$
GridLayout layout1 = new GridLayout();
typeSelectComposite.setLayout(layout1);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -173,25 +173,25 @@
String selector = ((ResourceConfigType) element)
.getSelector();
if (selector == null)
- selector = "<NULL>";
- return "BeanPopulator : " + selector;
+ selector = Messages.getString("SmooksResourceConfigFormBlock.NULLString"); //$NON-NLS-1$
+ return Messages.getString("SmooksResourceConfigFormBlock.BeanPopulator") + selector; //$NON-NLS-1$
}
if (NormalSmooksModelBuilder
.isDateConfig((ResourceConfigType) element)) {
- return "Date Type";
+ return Messages.getString("SmooksResourceConfigFormBlock.DateType"); //$NON-NLS-1$
}
if (SmooksModelUtils
.isFilePathResourceConfig((ResourceConfigType) element)) {
String selector = ((ResourceConfigType) element)
.getSelector();
if (selector == null)
- selector = "<NULL>";
- return "Template File :" + selector;
+ selector = Messages.getString("SmooksResourceConfigFormBlock.NULLString"); //$NON-NLS-1$
+ return Messages.getString("SmooksResourceConfigFormBlock.TemplateFile") + selector; //$NON-NLS-1$
}
String s = ((ResourceConfigType) element).getSelector();
if (s == null)
- s = "<NULL>";
- return "UnKnown ResourceConfig - " + s;
+ s = Messages.getString("SmooksResourceConfigFormBlock.NULLString"); //$NON-NLS-1$
+ return Messages.getString("SmooksResourceConfigFormBlock.UnknownResourceConfig") + s; //$NON-NLS-1$
}
return super.getText(element);
}
@@ -244,7 +244,7 @@
FormToolkit tool, final IManagedForm managedForm) {
configurationSection = tool.createSection(rootMainControl,
Section.TITLE_BAR | Section.DESCRIPTION);
- configurationSection.setText("Data Type");
+ configurationSection.setText(Messages.getString("SmooksResourceConfigFormBlock.DateType")); //$NON-NLS-1$
sectionPart = new SectionPart(configurationSection);
managedForm.addPart(sectionPart);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -277,18 +277,18 @@
GridLayout buttonLayout = new GridLayout();
buttonComposite.setLayout(buttonLayout);
- addButton = tool.createButton(buttonComposite, "New", SWT.NONE);
+ addButton = tool.createButton(buttonComposite, Messages.getString("SmooksResourceConfigFormBlock.NewButton"), SWT.NONE); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
addButton.setLayoutData(gd);
- removeButton = tool.createButton(buttonComposite, "Delete", SWT.NONE);
+ removeButton = tool.createButton(buttonComposite, Messages.getString("SmooksResourceConfigFormBlock.DeleteButton"), SWT.NONE); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
removeButton.setLayoutData(gd);
- upButton = tool.createButton(buttonComposite, "Up", SWT.NONE);
+ upButton = tool.createButton(buttonComposite, Messages.getString("SmooksResourceConfigFormBlock.UpButton"), SWT.NONE); //$NON-NLS-1$
upButton.setLayoutData(gd);
- downButton = tool.createButton(buttonComposite, "Down", SWT.NONE);
+ downButton = tool.createButton(buttonComposite, Messages.getString("SmooksResourceConfigFormBlock.DownButton"), SWT.NONE); //$NON-NLS-1$
downButton.setLayoutData(gd);
hookButtons();
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizard.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizard.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizard.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -41,7 +41,7 @@
public void addPages(){
if(page == null){
- page = new TypeIDSelectionWizardPage("TypeID Selection",false);
+ page = new TypeIDSelectionWizardPage(Messages.getString("TypeIDSelectionWizard.TypeIDSelection"),false); //$NON-NLS-1$
page.setSelection(selection);
this.addPage(page);
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -105,8 +105,8 @@
public TypeIDSelectionWizardPage(String pageName, boolean showDataSelectPage) {
super(pageName);
this.showDataSelectPage = showDataSelectPage;
- setTitle("Select Source/Target Data Type");
- setDescription("Select the data type for source/target data");
+ setTitle(Messages.getString("TypeIDSelectionWizardPage.TypeIDSelectionWizardPageTitle")); //$NON-NLS-1$
+ setDescription(Messages.getString("TypeIDSelectionWizardPage.TypeIDSelectionWizardPageDescription")); //$NON-NLS-1$
}
@Override
@@ -207,10 +207,10 @@
mainComposite.setLayout(gl);
sourceList = AnalyzerFactory.getInstance().getRegistrySourceIDList();
Label sl = new Label(mainComposite, SWT.NONE);
- sl.setText("Source Data Type ID List : ");
+ sl.setText(Messages.getString("TypeIDSelectionWizardPage.SourceTypeIDTitle")); //$NON-NLS-1$
Label tl = new Label(mainComposite, SWT.NONE);
- tl.setText("Target Data Type ID List : ");
+ tl.setText(Messages.getString("TypeIDSelectionWizardPage.TargetTypeIDTitle")); //$NON-NLS-1$
Composite sourceBorder = new Composite(mainComposite,SWT.NONE);
sourceBorder.setBackground(ColorConstants.black);
@@ -237,7 +237,7 @@
initViewer();
sourceDataLink = new Hyperlink(mainComposite, SWT.NONE);
- sourceDataLink.setText("Source Model Select:Empty");
+ sourceDataLink.setText("Source Model Select:Empty"); //$NON-NLS-1$
sourceDataLink.addHyperlinkListener(new IHyperlinkListener() {
public void linkActivated(HyperlinkEvent e) {
@@ -256,7 +256,7 @@
// TODO don't show this
sourceDataLink.setVisible(false);
targetDataLink = new Hyperlink(mainComposite, SWT.NONE);
- targetDataLink.setText("Target Model Select:Empty");
+ targetDataLink.setText("Target Model Select:Empty"); //$NON-NLS-1$
targetDataLink.addHyperlinkListener(new IHyperlinkListener() {
public void linkActivated(HyperlinkEvent e) {
@@ -308,8 +308,8 @@
.getTreeViewerInputContents();
}
} else {
- MessageDialog.openInformation(getShell(), "Info",
- "Please select the data type first");
+ MessageDialog.openInformation(getShell(), "Info", //$NON-NLS-1$
+ Messages.getString("TypeIDSelectionWizardPage.WarningMessage")); //$NON-NLS-1$
}
return null;
@@ -428,7 +428,7 @@
});
TableColumn nameColumn = new TableColumn(viewer.getTable(), SWT.NONE);
nameColumn.setWidth(250);
- nameColumn.setText("Name");
+ nameColumn.setText(Messages.getString("TypeIDSelectionWizardPage.NameColumn")); //$NON-NLS-1$
viewer.setContentProvider(new TypeIDContentProvider());
viewer.setLabelProvider(new TypeIDLabelProvider());
return viewer;
@@ -469,7 +469,7 @@
// return ((DataTypeID) element).getId();
}
}
- return "";
+ return ""; //$NON-NLS-1$
}
}
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,39 @@
+AbstractSmooksModelDetailPage.DetailSectionTitle=Details Information
+DateTypeDetailPage.DateTypeFormatText=Format :
+DateTypeDetailPage.DateTypeLocaleContryText=Locale-Contry :
+DateTypeDetailPage.DateTypeLocaleLanguageText=Locale-Language :
+DocumentResourceTypeDetailPage.BrowseFile=Browse...
+DocumentResourceTypeDetailPage.DocPath=Document Path:
+DocumentResourceTypeDetailPage.Selector=Selector :
+SmooksGraphicalFormPage.CleanErrorsDialogContents1=There occurs some errors on the graphical design , please clean all errors .\n
+SmooksGraphicalFormPage.CleanErrorsDialogContents2=Click "Yes" to return . If you don't care that , click "No" to save file.
+SmooksGraphicalFormPage.CleanErrorsDialogTitle=Clean all the errors please
+SmooksGraphicalFormPage.FillViewerErrorContent=a error occurs during filling Data into the viewer:\n
+SmooksGraphicalFormPage.FillViewerErrorTitle=Error
+SmooksGraphicalFormPage.MappingPageFormTitle=Data Mapping Page
+SmooksGraphicalFormPage.MappingSectionDescription=Edit the source and target assosiation
+SmooksGraphicalFormPage.MappingSectionTitle=Mapping Graph Edit Panel
+SmooksGraphicalFormPage.ReselectViewerContentDlgContent=Do you want to change the data ? If you do so , all connections will be losted
+SmooksGraphicalFormPage.ReselectViewerContentDlgTitle=Changed Data ?
+SmooksGraphicalFormPage.SaveErrorDlgContent=Some errors occurs during saving the file.
+SmooksGraphicalFormPage.SaveErrorDlgTitle=Save Error
+SmooksGraphicalFormPage.SourceSelectLinkText=Source Select
+SmooksGraphicalFormPage.TargetSelectLinkText=Target Select
+SmooksNormalContentEditFormPage.ConfigurationPageText=Configuration Page
+SmooksNormalContentEditFormPage.SmooksParseType=Smooks Parse Type
+SmooksResourceConfigFormBlock.BeanPopulator=BeanPopulator :
+SmooksResourceConfigFormBlock.DateType=Data Type
+SmooksResourceConfigFormBlock.DeleteButton=Delete
+SmooksResourceConfigFormBlock.DownButton=Down
+SmooksResourceConfigFormBlock.NewButton=New
+SmooksResourceConfigFormBlock.NULLString=<NULL>
+SmooksResourceConfigFormBlock.TemplateFile=Template File :
+SmooksResourceConfigFormBlock.UnknownResourceConfig=UnKnown ResourceConfig -
+SmooksResourceConfigFormBlock.UpButton=Up
+TypeIDSelectionWizard.TypeIDSelection=TypeID Selection
+TypeIDSelectionWizardPage.NameColumn=Name
+TypeIDSelectionWizardPage.SourceTypeIDTitle=Source Data Type ID List :
+TypeIDSelectionWizardPage.TargetTypeIDTitle=Target Data Type ID List :
+TypeIDSelectionWizardPage.TypeIDSelectionWizardPageDescription=Select the data type for source/target data
+TypeIDSelectionWizardPage.TypeIDSelectionWizardPageTitle=Select Source/Target Data Type
+TypeIDSelectionWizardPage.WarningMessage=Please select the data type first
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.ui.wizards;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.ui.wizards.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -89,7 +89,7 @@
// config.setSelector(SmooksModelConstants.AT_DOCUMENT);
ResourceType resource = SmooksFactory.eINSTANCE
.createResourceType();
- resource.setValue("/");
+ resource.setValue("/"); //$NON-NLS-1$
config.setResource(resource);
return config;
@@ -100,15 +100,15 @@
public NewResourceConfigKey[] getAllIDs() {
NewResourceConfigKey bean = new NewResourceConfigKey();
bean.setId(SmooksModelConstants.BEAN_POPULATOR);
- bean.setName("BeanPopulator");
+ bean.setName("BeanPopulator"); //$NON-NLS-1$
NewResourceConfigKey date = new NewResourceConfigKey();
date.setId(SmooksModelConstants.DATE_DECODER);
- date.setName("Date Decoder");
+ date.setName("Date Decoder"); //$NON-NLS-1$
NewResourceConfigKey documentFile = new NewResourceConfigKey();
documentFile.setId(SmooksModelConstants.AT_DOCUMENT);
- documentFile.setName("Document");
+ documentFile.setName("Document"); //$NON-NLS-1$
return new NewResourceConfigKey[] { bean, date ,documentFile };
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigWizardPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigWizardPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -37,14 +37,14 @@
public NewResourceConfigWizardPage(String pageName, String title,
ImageDescriptor titleImage) {
- super(pageName, "Select New ResourceConfig Type", titleImage);
- setDescription("Select the ResourceConfig type to add into the config file");
+ super(pageName, Messages.getString("NewResourceConfigWizardPage.NewConfigWizardPageTitle"), titleImage); //$NON-NLS-1$
+ setDescription(Messages.getString("NewResourceConfigWizardPage.NewConfigWizardPageDescription")); //$NON-NLS-1$
}
public NewResourceConfigWizardPage(String pageName) {
super(pageName);
- setTitle("Select New ResourceConfig Type");
- setDescription("Select the ResourceConfig type to add into the config file");
+ setTitle(Messages.getString("NewResourceConfigWizardPage.NewConfigWizardPageTitle")); //$NON-NLS-1$
+ setDescription(Messages.getString("NewResourceConfigWizardPage.NewConfigWizardPageDescription")); //$NON-NLS-1$
}
/* (non-Javadoc)
@@ -68,7 +68,7 @@
protected void validatePageFinish(){
String error = null;
if(selectedKey == null){
- error = "Please select one key";
+ error = Messages.getString("NewResourceConfigWizardPage.NewConfigWizardPageErrorMessage1"); //$NON-NLS-1$
}
setErrorMessage(error);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizard.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizard.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizard.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -43,9 +43,9 @@
public class SmooksConfigFileNewWizard extends Wizard implements INewWizard,
ISmooksDataCreationAddtionWizard {
- public static final String PRO_SOURCE_DATA_PATH = "sourceDataPath";
+ public static final String PRO_SOURCE_DATA_PATH = "sourceDataPath"; //$NON-NLS-1$
- public static final String PRO_TARGET_DATA_PATH = "targetDataPath";
+ public static final String PRO_TARGET_DATA_PATH = "targetDataPath"; //$NON-NLS-1$
private SmooksConfigFileNewWizardPage page;
private TypeIDSelectionWizardPage typeIDPage;
@@ -64,7 +64,7 @@
public SmooksConfigFileNewWizard() {
super();
setNeedsProgressMonitor(true);
- super.setWindowTitle("New Smooks Configuration File");
+ super.setWindowTitle(Messages.getString("SmooksConfigFileNewWizard.NewConfigFileWizardTitle")); //$NON-NLS-1$
setDefaultPageImageDescriptor(ModelUIImages
.getImageDescriptor(ModelUIImages.WIZARD_NEW_PROJECT));
}
@@ -73,11 +73,11 @@
* Adding the page to the wizard.
*/
public void addPages() {
- page = new SmooksConfigFileNewWizardPage("newSmooksFile1",
+ page = new SmooksConfigFileNewWizardPage("newSmooksFile1", //$NON-NLS-1$
getSelection());
addPage(page);
// TODO don't use the WizardSelectionPage
- typeIDPage = new TypeIDSelectionWizardPage("", false);
+ typeIDPage = new TypeIDSelectionWizardPage("", false); //$NON-NLS-1$
typeIDPage.setSelection(selection);
addPage(typeIDPage);
}
@@ -108,7 +108,7 @@
return false;
} catch (InvocationTargetException e) {
Throwable realException = e.getTargetException();
- MessageDialog.openError(getShell(), "Error", realException
+ MessageDialog.openError(getShell(), Messages.getString("SmooksConfigFileNewWizard.ErrorTitle"), realException //$NON-NLS-1$
.getMessage());
return false;
}
@@ -143,7 +143,7 @@
file);
monitor.worked(1);
- monitor.setTaskName("Opening file for editing...");
+ monitor.setTaskName("Opening file for editing..."); //$NON-NLS-1$
getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
IWorkbenchPage page = PlatformUI.getWorkbench()
@@ -207,13 +207,13 @@
*/
private InputStream openContentStream() {
- String contents = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
- + " <smooks-resource-list xmlns=\"http://www.milyn.org/xsd/smooks-1.0.xsd\"/>";
+ String contents = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" //$NON-NLS-1$
+ + " <smooks-resource-list xmlns=\"http://www.milyn.org/xsd/smooks-1.0.xsd\"/>"; //$NON-NLS-1$
return new ByteArrayInputStream(contents.getBytes());
}
private void throwCoreException(String message) throws CoreException {
- IStatus status = new Status(IStatus.ERROR, "org.jboss.tools.smooks.ui",
+ IStatus status = new Status(IStatus.ERROR, "org.jboss.tools.smooks.ui", //$NON-NLS-1$
IStatus.OK, message, null);
throw new CoreException(status);
}
@@ -233,12 +233,12 @@
public void addSourceWizardPage(IWizardPage page) {
sourceCreationPages.add(page);
- page.setTitle("Source Data Selection");
+ page.setTitle(Messages.getString("SmooksConfigFileNewWizard.SourceDataTypeSelectionTitle")); //$NON-NLS-1$
}
public void addTargetWizardPage(IWizardPage page) {
targetCreationPages.add(page);
- page.setTitle("Target Data Selection");
+ page.setTitle(Messages.getString("SmooksConfigFileNewWizard.TargetDataTypeSelectionTitle")); //$NON-NLS-1$
}
public void clearSourceWizardPages() {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizardPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/SmooksConfigFileNewWizardPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -12,25 +12,25 @@
public SmooksConfigFileNewWizardPage(String pageName,
IStructuredSelection selection) {
super(pageName, selection);
- setFileExtension("smooks");
- super.setTitle("Smooks Configuration");
- super.setDescription("Create a new Smooks configuration file");
- this.setFileName("newConfig.smooks");
+ setFileExtension("smooks"); //$NON-NLS-1$
+ super.setTitle(Messages.getString("SmooksConfigFileNewWizardPage.NewConfigFileWizardPageTitle")); //$NON-NLS-1$
+ super.setDescription(Messages.getString("SmooksConfigFileNewWizardPage.NewConfigFileWizardPageDescription")); //$NON-NLS-1$
+ this.setFileName(Messages.getString("SmooksConfigFileNewWizardPage.NewConfigFileWizardPageDefaultFileName")); //$NON-NLS-1$
}
@Override
protected boolean validatePage() {
boolean flag = super.validatePage();
String name = this.getFileName();
- if (name.indexOf(".") == -1)
+ if (name.indexOf(".") == -1) //$NON-NLS-1$
return flag;
- String extensionName = name.substring(name.indexOf(".") + 1, name
+ String extensionName = name.substring(name.indexOf(".") + 1, name //$NON-NLS-1$
.length());
String error = null;
if (extensionName.equalsIgnoreCase(this.getFileExtension())) {
} else {
- error = "file extension must be \"smooks\"";
+ error = Messages.getString("SmooksConfigFileNewWizardPage.NewConfigFileWizardPageErrorMessage1"); //$NON-NLS-1$
}
if (error != null) {
this.setErrorMessage(error);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -82,7 +82,7 @@
IStructuredSelection selection = (IStructuredSelection) event
.getSelection();
IWizardNode node = (IWizardNode) selection.getFirstElement();
- desLabel.setText("");
+ desLabel.setText(""); //$NON-NLS-1$
if (node != null) {
setSelectedNode(node);
if(node instanceof TransformSelectWizardNode){
@@ -156,8 +156,8 @@
public TransformDataWizardSelectionPage(String pageName) {
super(pageName);
- setDescription("Select the transform data type");
- setTitle("Data Type Selection");
+ setDescription(Messages.getString("TransformDataWizardSelectionPage.TransformDataWizardDescription")); //$NON-NLS-1$
+ setTitle(Messages.getString("TransformDataWizardSelectionPage.TransformDataWizardTitle")); //$NON-NLS-1$
}
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,13 @@
+NewResourceConfigWizardPage.NewConfigWizardPageDescription=Select the ResourceConfig type to add into the config file
+NewResourceConfigWizardPage.NewConfigWizardPageErrorMessage1=Please select one key
+NewResourceConfigWizardPage.NewConfigWizardPageTitle=Select New ResourceConfig Type
+SmooksConfigFileNewWizard.ErrorTitle=Error
+SmooksConfigFileNewWizard.NewConfigFileWizardTitle=New Smooks Configuration File
+SmooksConfigFileNewWizard.SourceDataTypeSelectionTitle=Source Data Selection
+SmooksConfigFileNewWizard.TargetDataTypeSelectionTitle=Target Data Selection
+SmooksConfigFileNewWizardPage.NewConfigFileWizardPageDefaultFileName=newConfig.smooks
+SmooksConfigFileNewWizardPage.NewConfigFileWizardPageDescription=Create a new Smooks configuration file
+SmooksConfigFileNewWizardPage.NewConfigFileWizardPageErrorMessage1=file extension must be "smooks"
+SmooksConfigFileNewWizardPage.NewConfigFileWizardPageTitle=Smooks Configuration
+TransformDataWizardSelectionPage.TransformDataWizardDescription=Select the transform data type
+TransformDataWizardSelectionPage.TransformDataWizardTitle=Data Type Selection
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.utils;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.utils.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -54,8 +54,8 @@
*/
public class UIUtils {
- public static final String[] SELECTORE_SPLITER = new String[] { "\\",
- "/" };
+ public static final String[] SELECTORE_SPLITER = new String[] { "\\", //$NON-NLS-1$
+ "/" }; //$NON-NLS-1$
public static FillLayout createFillLayout(int marginW, int marginH) {
FillLayout fill = new FillLayout();
@@ -72,8 +72,8 @@
String splitString = SELECTORE_SPLITER[i];
if (selector.indexOf(splitString) != -1) {
throw new InvocationTargetException(new Exception(
- "The Selector string dosen't support \"" + splitString
- + "\" character. Selector is \"" + selector + "\""));
+ Messages.getString("UIUtils.SelectorCheckErrorMessage1") + splitString //$NON-NLS-1$
+ + Messages.getString("UIUtils.SelectorCheckErrorMessage2") + selector + "\"")); //$NON-NLS-1$ //$NON-NLS-2$
}
}
}
@@ -186,10 +186,10 @@
CompositeResolveCommand compositeCommand = new CompositeResolveCommand(
context);
compositeCommand
- .setResolveDescription("Connect all needed connections");
+ .setResolveDescription(Messages.getString("UIUtils.ConnectAllConnections")); //$NON-NLS-1$
disconnectCommand
- .setResolveDescription("Disconnect all connections of the current \""
- + currentNode.getName() + "\"node");
+ .setResolveDescription(Messages.getString("UIUtils.DisconnectAllConnections") //$NON-NLS-1$
+ + currentNode.getName() + Messages.getString("UIUtils.Node")); //$NON-NLS-1$
AbstractStructuredDataModel targetNode = UIUtils.findGraphModel(root,
currentNode);
if (targetNode instanceof IConnectableModel) {
@@ -214,10 +214,10 @@
if (tempMap.get(sourceParentNode) == null) {
JavaModelConnectionResolveCommand connectParent = new JavaModelConnectionResolveCommand(
context);
- connectParent.setResolveDescription("Connect the \""
+ connectParent.setResolveDescription(Messages.getString("UIUtils.ConnectNode1") //$NON-NLS-1$
+ context.getSourceViewerLabelProvider().getText(
- sourceParent) + "\" to the \""
- + parentNode.getName() + "\"");
+ sourceParent) + Messages.getString("UIUtils.ConnectNode2") //$NON-NLS-1$
+ + parentNode.getName() + "\""); //$NON-NLS-1$
connectParent.setSourceModel(sourceParentNode);
connectParent.setTargetModel(targetParentNode);
result.addResolveCommand(connectParent);
@@ -259,11 +259,11 @@
if (pgm != null && pgm instanceof IConnectableModel) {
if (((IConnectableModel) pgm)
.getModelTargetConnections().isEmpty()) {
- String errorMessage = "The parent of Java node \""
+ String errorMessage = Messages.getString("UIUtils.ParentNodeConnectErrorMessage1") //$NON-NLS-1$
+ javaModel.getName()
- + "\" : \""
+ + "\" : \"" //$NON-NLS-1$
+ parent.getName()
- + "\" doesn't be connected by any source node";
+ + Messages.getString("UIUtils.ParentNodeConnectErrorMessage2"); //$NON-NLS-1$
DesignTimeAnalyzeResult dr = new DesignTimeAnalyzeResult();
dr.setErrorMessage(errorMessage);
createJavaModelConnectionErrorResolveCommand(dr,
@@ -296,7 +296,7 @@
// TODO process primitive type
continue;
}
- String errorMessage = "";
+ String errorMessage = ""; //$NON-NLS-1$
try {
ClassLoader loader = newProjectClassLoader(context
.getSmooksConfigFile());
@@ -306,17 +306,17 @@
}
if (instanceClazz == null) {
DesignTimeAnalyzeResult result = new DesignTimeAnalyzeResult();
- result.setErrorMessage("The instance class of \""
+ result.setErrorMessage(Messages.getString("UIUtils.InstanceLoadedErrorMessage1") //$NON-NLS-1$
+ ((JavaBeanModel) refObj).getName()
- + "\" can't be loaded. Instance name is \""
- + instanceName + "\"");
+ + Messages.getString("UIUtils.InstanceLoadedErrorMessage2") //$NON-NLS-1$
+ + instanceName + "\""); //$NON-NLS-1$
JavaModelResolveCommand command = new JavaModelResolveCommand(
context);
command
- .setResolveDescription("Change the instance class to \""
+ .setResolveDescription(Messages.getString("UIUtils.InstanceLoadedResolveMessage1") //$NON-NLS-1$
+ ((JavaBeanModel) refObj)
.getBeanClass()
- .getCanonicalName() + "\"");
+ .getCanonicalName() + "\""); //$NON-NLS-1$
command.setInstanceName(((JavaBeanModel) refObj)
.getBeanClass().getCanonicalName());
command.setJavaBean((JavaBeanModel) refObj);
@@ -325,16 +325,16 @@
}
if (instanceClazz != null && instanceClazz.isInterface()) {
DesignTimeAnalyzeResult result = new DesignTimeAnalyzeResult();
- result.setErrorMessage("Java model \""
+ result.setErrorMessage(Messages.getString("UIUtils.JavaModelLoadedErrorMessage1") //$NON-NLS-1$
+ ((JavaBeanModel) refObj).getName()
- + "\" can't be instanced. Instance name is \""
- + instanceName + "\"");
+ + Messages.getString("UIUtils.JavaModelLoadedErrorMessage2") //$NON-NLS-1$
+ + instanceName + "\""); //$NON-NLS-1$
if (List.class.isAssignableFrom(instanceClazz)) {
JavaModelResolveCommand command = new JavaModelResolveCommand(
context);
command
- .setResolveDescription("Change the instance class to \"java.util.ArrayList\"");
- command.setInstanceName("java.util.ArrayList");
+ .setResolveDescription(Messages.getString("UIUtils.InstanceClassResolveMessage1")); //$NON-NLS-1$
+ command.setInstanceName(Messages.getString("UIUtils.InstanceClassResolveMessage2")); //$NON-NLS-1$
command.setJavaBean((JavaBeanModel) refObj);
result.addResolveCommand(command);
}
@@ -365,11 +365,11 @@
}
public static void showErrorDialog(Shell shell, Status status) {
- ErrorDialog.openError(shell, "Error", "error", status);
+ ErrorDialog.openError(shell, "Error", "error", status); //$NON-NLS-1$ //$NON-NLS-2$
}
public static Status createErrorStatus(Throwable throwable) {
- return createErrorStatus(throwable, "Error");
+ return createErrorStatus(throwable, "Error"); //$NON-NLS-1$
}
public static FillLayout createFormCompositeFillLayout() {
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,16 @@
+UIUtils.ConnectAllConnections=Connect all needed connections
+UIUtils.ConnectNode1=Connect the "
+UIUtils.ConnectNode2=" to the "
+UIUtils.DisconnectAllConnections=Disconnect all connections of the current "
+UIUtils.InstanceClassResolveMessage1=Change the instance class to "java.util.ArrayList"
+UIUtils.InstanceClassResolveMessage2=java.util.ArrayList
+UIUtils.InstanceLoadedErrorMessage1=The instance class of "
+UIUtils.InstanceLoadedErrorMessage2=" can't be loaded. Instance name is "
+UIUtils.InstanceLoadedResolveMessage1=Change the instance class to "
+UIUtils.JavaModelLoadedErrorMessage1=Java model "
+UIUtils.JavaModelLoadedErrorMessage2=" can't be instanced. Instance name is "
+UIUtils.Node="node
+UIUtils.ParentNodeConnectErrorMessage1=The parent of Java node "
+UIUtils.ParentNodeConnectErrorMessage2=" doesn't be connected by any source node
+UIUtils.SelectorCheckErrorMessage1=The Selector string dosen't support "
+UIUtils.SelectorCheckErrorMessage2=" character. Selector is "
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/AbstractFileSelectionWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/AbstractFileSelectionWizardPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/AbstractFileSelectionWizardPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -154,7 +154,7 @@
protected void openWorkSpaceSelection(Text relationT) {
IFile[] files = WorkspaceResourceDialog.openFileSelection(getShell(),
- "", "", false, null, Collections.EMPTY_LIST);
+ "", "", false, null, Collections.EMPTY_LIST); //$NON-NLS-1$ //$NON-NLS-2$
// dialog.setInitialSelections(selectedResources);
if (files.length > 0) {
IFile file = files[0];
@@ -174,7 +174,7 @@
xsdComposite.setLayout(xsdLayout);
Label nfileLanel = new Label(xsdComposite, SWT.NONE);
- nfileLanel.setText("XML File Path :");
+ nfileLanel.setText(Messages.getString("AbstractFileSelectionWizardPage.XMLFilePathLabelText")); //$NON-NLS-1$
fileTextComposite = new Composite(xsdComposite, SWT.NONE);
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.grabExcessHorizontalSpace = true;
@@ -223,10 +223,10 @@
browseButtonComposite.setLayout(bg);
fileSystemBrowseButton = new Button(browseButtonComposite, SWT.NONE);
- fileSystemBrowseButton.setText("Browse File System...");
+ fileSystemBrowseButton.setText(Messages.getString("AbstractFileSelectionWizardPage.BrowseFileSystemButtonText")); //$NON-NLS-1$
workspaceBrowseButton = new Button(browseButtonComposite, SWT.NONE);
- workspaceBrowseButton.setText("Browse workspace file..");
+ workspaceBrowseButton.setText(Messages.getString("AbstractFileSelectionWizardPage.BrowseWorkspaceButtonText")); //$NON-NLS-1$
gd = new GridData();
gd.horizontalAlignment = GridData.END;
workspaceBrowseButton.setLayoutData(gd);
@@ -290,8 +290,8 @@
protected void changeWizardPageStatus() {
String text = this.fileText.getText();
String error = null;
- if (text == null || "".equals(text))
- error = "Please Select a file";
+ if (text == null || "".equals(text)) //$NON-NLS-1$
+ error = Messages.getString("AbstractFileSelectionWizardPage.Errormessage"); //$NON-NLS-1$
// File tempFile = new File(text);
// if(!tempFile.exists()){
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.xml;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.xml.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,4 @@
+AbstractFileSelectionWizardPage.BrowseFileSystemButtonText=Browse File System...
+AbstractFileSelectionWizardPage.BrowseWorkspaceButtonText=Browse workspace file..
+AbstractFileSelectionWizardPage.Errormessage=Please Select a file
+AbstractFileSelectionWizardPage.XMLFilePathLabelText=XML File Path :
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.xml.ui;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.xml.ui.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/XMLStructuredDataWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/XMLStructuredDataWizardPage.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/XMLStructuredDataWizardPage.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -20,8 +20,8 @@
}
private void setPageText() {
- this.setTitle("Select xml file");
- this.setDescription("Select a .xml file to be the source/target data");
+ this.setTitle(Messages.getString("XMLStructuredDataWizardPage.XMLDataWizardPageTitle")); //$NON-NLS-1$
+ this.setDescription(Messages.getString("XMLStructuredDataWizardPage.XMLDataWizardPageDescription")); //$NON-NLS-1$
}
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,2 @@
+XMLStructuredDataWizardPage.XMLDataWizardPageDescription=Select a .xml file to be the source/target data
+XMLStructuredDataWizardPage.XMLDataWizardPageTitle=Select xml file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/AbstractXMLModelAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/AbstractXMLModelAnalyzer.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/AbstractXMLModelAnalyzer.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -36,11 +36,11 @@
public class AbstractXMLModelAnalyzer implements ISourceModelAnalyzer,
ITargetModelAnalyzer {
- public static final String FILE_PRIX = "File:/";
+ public static final String FILE_PRIX = "File:/"; //$NON-NLS-1$
- public static final String WORKSPACE_PRIX = "Workspace:/";
+ public static final String WORKSPACE_PRIX = "Workspace:/"; //$NON-NLS-1$
- private String parmaKey = "";
+ private String parmaKey = ""; //$NON-NLS-1$
public AbstractXMLModelAnalyzer(String paramKey) {
this.parmaKey = paramKey;
@@ -63,11 +63,11 @@
path = file.getLocation().toOSString();
} else {
throw new InvocationTargetException(new Exception(
- "file dosen't exist" + path + " on the workspace."));
+ Messages.getString("AbstractXMLModelAnalyzer.FileDosentExistErrorMessage1") + path + Messages.getString("AbstractXMLModelAnalyzer.FileDosentExistErrorMessage2"))); //$NON-NLS-1$ //$NON-NLS-2$
}
} else {
throw new InvocationTargetException(new Exception(
- "Illegal file path : " + path + "."));
+ Messages.getString("AbstractXMLModelAnalyzer.IllegalPathErrorMessage1") + path + ".")); //$NON-NLS-1$ //$NON-NLS-2$
}
}
return path;
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.xml2java.analyzer;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.xml2java.analyzer.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -245,7 +245,7 @@
if (source == null) {
// TODO if can't find the root , throw exception
// MODIFY by Dart 2008.11.07
- throw new RuntimeException("[XML2JavaAnalyzer]Can't find the root node.");
+ throw new RuntimeException(Messages.getString("XML2JavaAnalyzer.CantFindRootNodeErrorMessage")); //$NON-NLS-1$
// return MappingResourceConfigList.createEmptyList();
}
@@ -340,7 +340,7 @@
if (newRoot == null) {
// TODO If can't find the element , throw exception
// MODIFY by Dart , 2008.11.07
- throw new RuntimeException("[XML2JavaAnalyzer]Can't find the \""+ newSelector + "\" node.");
+ throw new RuntimeException(Messages.getString("XML2JavaAnalyzer.CantFindNodeErrorMessage1")+ newSelector + Messages.getString("XML2JavaAnalyzer.CantFindNodeErrorMessage2")); //$NON-NLS-1$ //$NON-NLS-2$
}
createMappingResourceConfigList(configList, listType,
resourceConfig1, newRoot, targetBean);
@@ -350,7 +350,7 @@
if (source == null) {
// TODO If can't find the element , throw exception
// MODIFY by Dart , 2008.11.07
- throw new RuntimeException("[XML2JavaAnalyzer]Can't find the \""+ selector + "\" node.");
+ throw new RuntimeException(Messages.getString("XML2JavaAnalyzer.CantFindNodeErrorMessage1")+ selector + Messages.getString("XML2JavaAnalyzer.CantFindNodeErrorMessage2")); //$NON-NLS-1$ //$NON-NLS-2$
}
if (source != null) {
MappingModel mapping = new MappingModel(source, targetBean);
@@ -489,8 +489,8 @@
boolean connectAuto = MessageDialog
.openQuestion(
displayParent,
- "Connection Question",
- "The root models don't be connected , it will make some errors with the generation config file contents.\nDo you wan to connect them?");
+ Messages.getString("XML2JavaAnalyzer.ConnectQDlgTitle"), //$NON-NLS-1$
+ Messages.getString("XML2JavaAnalyzer.ConnectQDlgContent")); //$NON-NLS-1$
if (connectAuto) {
// connect root model
LineConnectionModel connectionModel = new LineConnectionModel();
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLSourceModelAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLSourceModelAnalyzer.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLSourceModelAnalyzer.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -24,7 +24,7 @@
public class XMLSourceModelAnalyzer extends AbstractXMLModelAnalyzer {
public XMLSourceModelAnalyzer() {
- super("sourceDataPath");
+ super("sourceDataPath"); //$NON-NLS-1$
}
@Override
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLTargetModelAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLTargetModelAnalyzer.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XMLTargetModelAnalyzer.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -18,7 +18,7 @@
public class XMLTargetModelAnalyzer extends AbstractXMLModelAnalyzer{
public XMLTargetModelAnalyzer() {
- super("targetDataPath");
+ super("targetDataPath"); //$NON-NLS-1$
}
}
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,8 @@
+AbstractXMLModelAnalyzer.FileDosentExistErrorMessage1=file dosen't exist
+AbstractXMLModelAnalyzer.FileDosentExistErrorMessage2=\ on the workspace.
+AbstractXMLModelAnalyzer.IllegalPathErrorMessage1=Illegal file path :
+XML2JavaAnalyzer.CantFindNodeErrorMessage1=Can't find the "
+XML2JavaAnalyzer.CantFindNodeErrorMessage2=" node.
+XML2JavaAnalyzer.CantFindRootNodeErrorMessage=Can't find the root node.
+XML2JavaAnalyzer.ConnectQDlgContent=The root models don't be connected , it will make some errors with the generation config file contents.\nDo you wan to connect them?
+XML2JavaAnalyzer.ConnectQDlgTitle=Connection Question
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/Messages.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/Messages.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/Messages.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,22 @@
+package org.jboss.tools.smooks.xml2xml;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.smooks.xml2xml.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/XML2XMLAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/XML2XMLAnalyzer.java 2008-11-13 07:07:13 UTC (rev 11745)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/XML2XMLAnalyzer.java 2008-11-13 07:27:33 UTC (rev 11746)
@@ -31,8 +31,8 @@
SmooksConfigurationFileGenerateContext context)
throws SmooksAnalyzerException {
Shell shell = context.getShell();
- MessageDialog.openWarning(shell, "Warning",
- "The xml2xml can't be generate to config file currently.");
+ MessageDialog.openWarning(shell, Messages.getString("XML2XMLAnalyzer.WarningDlgTitle"), //$NON-NLS-1$
+ Messages.getString("XML2XMLAnalyzer.XML2XMLGenerateErrorMessage")); //$NON-NLS-1$
return;
}
@@ -47,7 +47,7 @@
public MappingResourceConfigList analyzeMappingSmooksModel(
SmooksResourceListType listType, Object sourceObject,
Object targetObject) {
- throw new RuntimeException("The Smooks editor doesn't support to parse the XML2XML config file currently.");
+ throw new RuntimeException(Messages.getString("XML2XMLAnalyzer.XML2XMLParseErrorMessage")); //$NON-NLS-1$
}
public DesignTimeAnalyzeResult[] analyzeGraphModel(
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties 2008-11-13 07:27:33 UTC (rev 11746)
@@ -0,0 +1,3 @@
+XML2XMLAnalyzer.WarningDlgTitle=Warning
+XML2XMLAnalyzer.XML2XMLGenerateErrorMessage=The xml2xml can't be generate to config file currently.
+XML2XMLAnalyzer.XML2XMLParseErrorMessage=The Smooks editor doesn't support to parse the XML2XML config file currently.
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
17 years, 5 months
JBoss Tools SVN: r11745 - in trunk/i18n: feature-template and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2008-11-13 02:07:13 -0500 (Thu, 13 Nov 2008)
New Revision: 11745
Added:
trunk/i18n/build.xml
trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION/
Removed:
trunk/i18n/build.xml
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/
Modified:
trunk/i18n/
Log:
Removed XPath processing for .meta files (not needed), and added more comments.
Property changes on: trunk/i18n
___________________________________________________________________
Name: svn:ignore
- target
+ target
.ant-targets-build.xml
Deleted: trunk/i18n/build.xml
===================================================================
--- trunk/i18n/build.xml 2008-11-13 04:38:23 UTC (rev 11744)
+++ trunk/i18n/build.xml 2008-11-13 07:07:13 UTC (rev 11745)
@@ -1,424 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="org.jboss.tools.translations" default="debug" basedir="." xmlns:artifact="urn:maven-artifact-ant">
-
- <path id="jbtdir" path="..">
- </path>
- <property name="jbt.srcdir" value="${toString:jbtdir}" />
-
- <property file="i18n.properties" />
- <property name="meta.dtd" value="${jbt.srcdir}/common/plugins/org.jboss.tools.common.model/resources/meta/meta.dtd" />
- <property name="meta.xpath" value="//@displayName | //XModelAttribute/@name | //XModelAttribute/@default | //Constraint/value/@name" />
-
- <!-- Target locations: -->
- <property name="target.dir" location="target" />
- <property name="potdir" value="${target.dir}${file.separator}pot" />
- <property name="propdir" value="${target.dir}${file.separator}prop" />
- <property name="jardir" value="${target.dir}${file.separator}jars" />
- <property name="zipdir" value="${target.dir}${file.separator}zips" />
-
- <!-- Fetch Maven Ant Tasks jar: -->
- <!-- 2.0.9 is not yet in the jboss maven repo -->
- <property name="maven.version" value="2.0.8" />
- <property name="maven-artifact-ant.bootstrap.jar" location="${target.dir}/lib/maven-ant-tasks-${maven.version}.jar" />
- <property name="remoteRepo" value="" />
-
- <target name="-check-get-maven-artifact-ant">
- <available property="-get-maven-artifact-ant-done" file="${maven-artifact-ant.bootstrap.jar}" />
- </target>
-
- <target name="-get-maven-artifact-ant" depends="-check-get-maven-artifact-ant" unless="-get-maven-artifact-ant-done">
- <mkdir dir="${target.dir}/lib" />
- <get src="http://repository.jboss.com/maven2/org/apache/maven/maven-ant-tasks/${mav..." dest="${maven-artifact-ant.bootstrap.jar}" />
- </target>
-
- <!-- Define the Ant-Contrib and Tennera Ant Gettext tasks, using Maven
- to resolve dependencies: -->
- <target name="initTaskDefs" depends="-get-maven-artifact-ant">
- <path id="maven-ant-tasks.classpath" path="${maven-artifact-ant.bootstrap.jar}" />
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
-
- <!-- This would be used if we wanted to keep maven's repo out of ${user.home}
- <artifact:localRepository id="local.repository" path="${basedir}/target/local-repo" layout="default"/>
-
- <property name="deploy.repository.url" value="${basedir}/target/deployment-repo" />
- <artifact:remoteRepository id="deploy.repository" url="file://localhost/${deploy.repository.url}" layout="default"/>
- -->
-
- <!-- Maven dependencies -->
- <artifact:pom file="pom.xml" id="maven.project" />
- <artifact:dependencies pathId="dependency.classpath" useScope="runtime" type="jar">
- <pom refid="maven.project" />
- </artifact:dependencies>
-
- <!-- pick up the "for" task from ant-contrib -->
- <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="dependency.classpath" />
-
- <!-- xpath task -->
- <taskdef resource="net/uworks/andariel/andariel.properties" classpathref="dependency.classpath" />
-
- <!-- ant-gettext tasks -->
- <taskdef name="prop2pot" classname="org.fedorahosted.tennera.antgettext.Prop2PotTask" classpathref="dependency.classpath" />
- <taskdef name="pot2en" classname="org.fedorahosted.tennera.antgettext.Pot2EnTask" classpathref="dependency.classpath" />
- <taskdef name="po2prop" classname="org.fedorahosted.tennera.antgettext.Po2PropTask" classpathref="dependency.classpath" />
- <taskdef name="xpath2pot" classname="org.fedorahosted.tennera.antgettext.XPath2PotTask" classpathref="dependency.classpath" />
- </target>
-
-
- <target name="init" depends="checkver,initTaskDefs">
- </target>
-
- <target name="debug" depends="init">
- <echo message="jbt.srcdir=${jbt.srcdir}"/>
- <!-- get the source compile classpath in a printable form -->
- <pathconvert pathsep="${line.separator}| |__ " property="echo.dependency.classpath" refid="dependency.classpath">
- </pathconvert>
- <echo message="|__ dependency.classpath path" />
- <echo message="| |" />
- <echo message="| |__ ${echo.dependency.classpath}" />
- </target>
-
- <target name="clean" description="Remove generated files">
- <delete dir="${potdir}" />
- <delete dir="po/en" />
- <delete dir="po/qps" />
- <delete dir="po/en_AA" />
- <delete dir="${propdir}" />
- <delete dir="${jardir}" />
- <delete dir="${zipdir}" />
- <delete dir="${target.dir}" includes="*.tmp" />
- </target>
-
- <target name="prop2pot" description="Extract translation templates (POT) from the JBoss Tools English properties files" depends="init">
- <delete dir="${potdir}" />
- <mkdir dir="${potdir}" />
- <for param="srcdir">
- <path>
- <!-- paths under jbt.srcdir look like: ${module}/plugins/${plugin}/{src,main,...} -->
- <dirset dir="${jbt.srcdir}" includes="*/plugins/*/*" excludes="${srcexcludes}" />
- </path>
- <sequential>
- <!-- work out srcdir's path relative to the jbosstools source tree
- -->
- <propertyregex override="true" property="relativesrcdir"
- input="@{srcdir}" regexp="^${jbt.srcdir}${file.separator}(.*)" select="\1" />
- <checkprop propname="relativesrcdir"/>
- <propertyregex override="true" property="plugin"
- input="@{srcdir}"
- regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}plugins${file.separator}([^/\\]+)${file.separator}.*"
- select="\1" />
- <checkprop propname="plugin"/>
- <echo level="verbose" message="extracting strings from @{srcdir} -> ${potdir}/${relativesrcdir}"/>
- <prop2pot srcDir="@{srcdir}" dstDir="${potdir}/${relativesrcdir}" />
- <xpath2pot srcDir="@{srcdir}" target="${potdir}/${relativesrcdir}/${plugin}_meta.pot" includes="**/*.meta" xpath="${meta.xpath}" pathprefix="${relativesrcdir}/">
- <dtd publicId="-//Red Hat, Inc.//DTD Meta 1.0//EN" location="${meta.dtd}" />
- </xpath2pot>
- </sequential>
- </for>
- </target>
-
- <!-- autogenerated "translations" -->
- <target name="en" depends="init" description="Generate English PO files from POT files">
- <delete dir="po/en" />
- <mkdir dir="po/en" />
- <pot2en srcDir="${potdir}" dstDir="po/en" />
- </target>
- <target name="qps" depends="init" description="Generate Pseudo-translation PO files for qps locale from POT files">
- <delete dir="po/qps" />
- <mkdir dir="po/qps" />
- <pot2en srcDir="${potdir}" dstDir="po/qps" pseudo="true" />
- </target>
-
- <target name="en_AA" depends="init" description="Generate Pseudo-translation PO files for en_AA locale from POT files">
- <delete dir="po/en_AA" />
- <mkdir dir="po/en_AA" />
- <pot2en srcDir="${potdir}" dstDir="po/en_AA" pseudo="true" />
- </target>
-
- <target name="po2prop" depends="init" description="Generate Java properties files from translated PO files">
- <delete dir="${propdir}" />
- <mkdir dir="${propdir}" />
- <!-- for each locale in po/* -->
- <for param="locale" list="${locales}">
- <sequential>
- <po2prop srcDir="po/@{locale}" dstDir="${propdir}/@{locale}" locale="@{locale}" />
- </sequential>
- </for>
- </target>
-
- <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
- macrodef: checkprop checks that specified property has been set
- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
- <macrodef name="checkprop">
- <attribute name="propname" />
- <sequential>
- <if>
- <!-- TODO fail on empty value -->
- <not>
- <isset property="@{propname}"/>
- </not>
- <then>
- <fail message="property '@{propname}' is not set"/>
- </then>
- </if>
- </sequential>
- </macrodef>
-
- <!-- = = = = = = = = = = = = = = = = =
- macrodef: processplugins
- = = = = = = = = = = = = = = = = = -->
- <macrodef name="processplugins">
- <attribute name="rootdir" />
- <attribute name="task" />
- <sequential>
- <for param="plugindir">
- <path>
- <dirset dir="@{rootdir}" includes="*/*/plugins/*">
- </dirset>
- </path>
- <sequential>
- <propertyregex override="true" property="locale"
- input="@{plugindir}"
- regexp="^(a){rootdir}${file.separator}([^/\\]+)${file.separator}.*"
- select="\1" />
- <checkprop propname="locale"/>
- <propertyregex override="true" property="module"
- input="@{plugindir}"
- regexp="^(a){rootdir}${file.separator}[^/\\]+${file.separator}([^/\\]+).*"
- select="\1" />
- <checkprop propname="module"/>
- <propertyregex override="true" property="plugin"
- input="@{plugindir}"
- regexp="^(a){rootdir}${file.separator}[^/\\]+${file.separator}[^/\\]+${file.separator}plugins${file.separator}(.*)"
- select="\1" />
- <checkprop propname="plugin"/>
- <propertycopy override="true" property="localename" from="NAME_${locale}"/>
- <echo level="verbose" message="@{plugindir} contains ${locale} props for plugin ${plugin} in module ${module}"/>
- <antcall target="@{task}">
- <param name="plugindir" value="@{plugindir}"/>
- </antcall>
- </sequential>
- </for>
- </sequential>
- </macrodef>
-
- <target name="manifests" depends="init" description="Generate fragment plugin manifests for langpack plugins">
- <delete dir="${propdir}" includes="*/*/plugins/*/META-INF/MANIFEST.MF"/>
- <processplugins rootdir="${propdir}" task="manifest" />
- </target>
-
- <target name="manifest">
- <!-- NB don't depend on initTaskDefs here, or ant loads the
- classes over and over until it exhausts memory -->
- <checkprop propname="plugindir"/>
- <checkprop propname="plugin"/>
- <checkprop propname="locale"/>
- <checkprop propname="localename"/>
- <checkprop propname="PLUGIN_VERSION"/>
- <checkprop propname="PLUGIN_VENDOR"/>
-<!-- TODO specify exact versions of host plugins? -->
- <copy overwrite="true" file="plugin-template.mf" tofile="${plugindir}/META-INF/MANIFEST.MF">
- <filterchain>
- <expandproperties/>
- </filterchain>
- </copy>
- <!-- only for debugging:
- <concat><filelist files="${plugindir}/META-INF/MANIFEST.MF"></filelist></concat>
--->
- </target>
-
- <target name="fragments" depends="init" description="Generate fragment plugin jars to contain translations" >
- <delete dir="${jardir}" />
- <mkdir dir="${jardir}/plugins" />
- <processplugins rootdir="${propdir}" task="fragment" />
- </target>
-
- <target name="fragment">
- <!-- NB don't depend on initTaskDefs here, or ant loads the
- classes over and over until it exhausts memory -->
- <checkprop propname="plugindir"/>
- <checkprop propname="plugin"/>
- <checkprop propname="locale"/>
- <checkprop propname="localename"/>
- <checkprop propname="PLUGIN_VERSION"/>
- <checkprop propname="PLUGIN_VENDOR"/>
- <property name="jar" value="${jardir}/plugins/${plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
- <echo level="verbose" message="Jarring up ${jar} from directory ${plugindir}"/>
- <!-- we exclude "*" because we only want about.properties and
- plugin.properties from the top-level -->
- <jar
- destfile="${jar}"
- update="no"
- basedir="${plugindir}"
- excludes="*"
- duplicate="fail"
- manifest="${plugindir}/META-INF/MANIFEST.MF">
- <!-- todo consider an inline manifest -->
- <include name="about.properties"/>
- <!-- NB features contain feature.properties but all are currently empty -->
- <include name="plugin.properties"/>
- <!-- FIXME too many source paths, see https://jira.jboss.org/jira/browse/JBIDE-2972 -->
- <!-- next two are Maven style, not currently used in JBT:
- <fileset erroronmissingdir="false" dir="${plugindir}/src/main/java"/>
- <fileset erroronmissingdir="false" dir="${plugindir}/src/main/resources"/>
- -->
- <fileset erroronmissingdir="false" dir="${plugindir}/src/main" excludes="java,resources"/>
- <fileset erroronmissingdir="false" dir="${plugindir}/src" excludes="main"/>
- <fileset erroronmissingdir="false" dir="${plugindir}/jbosscore"/>
- <fileset erroronmissingdir="false" dir="${plugindir}/jbossui"/>
- <fileset erroronmissingdir="false" dir="${plugindir}/resources"/>
- <!-- <fileset dir="${plugindir}/templates"/> -->
- <fileset erroronmissingdir="false" dir="${plugindir}/template-src"/>
- <!-- TODO identify and list unincluded directories -->
- </jar>
- </target>
-
- <target name="features" depends="init"
- description="Generate langpack feature manifests (one per locale) for each JBT feature, and corresponding site.xml">
- <delete dir="${propdir}/features" />
- <mkdir dir="${propdir}/features" />
- <delete dir="${jardir}/features" />
- <mkdir dir="${jardir}/features" />
- <var name="temp.file.sitefeatures" unset="true" />
- <tempfile property="temp.file.sitefeatures" destdir="${target.dir}" prefix="site" suffix=".tmp" createfile="true" deleteonexit="false" />
- <sequential>
- <for param="featurexml">
- <path>
- <fileset dir="${jbt.srcdir}" includes="*/features/*/feature.xml"/>
- </path>
- <sequential>
- <propertyregex override="true" property="module"
- input="@{featurexml}"
- regexp="^${jbt.srcdir}${file.separator}([^/\\]+).*"
- select="\1" />
- <checkprop propname="module"/>
- <propertyregex override="true" property="feature"
- input="@{featurexml}"
- regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}features${file.separator}([^/\\]+)${file.separator}feature.xml"
- select="\1" />
- <checkprop propname="feature"/>
- <var name="featurename" value="${feature}" />
- <var name="jarsize" value="0" />
- <echo level="verbose" message="Processing feature ${feature} in module ${module}"/>
- <for param="locale" list="${locales}">
- <sequential>
- <var name="locale" value="@{locale}" />
- <propertycopy override="true" property="localename" from="NAME_@{locale}"/>
-
- <xpath
- file="@{featurexml}"
- expression="/feature/plugin/@id"
- delimiter=" "
- outputproperty="feature.${feature}.plugins"/>
- <propertycopy override="true" property="plugins" from="feature.${feature}.plugins"/>
-
-
- <var name="temp.file.featureplugins" unset="true" />
- <tempfile property="temp.file.featureplugins" destdir="${target.dir}" prefix="plugins" suffix=".tmp" createfile="true" deleteonexit="true" />
- <for param="plugin" list="${plugins}" delimiter=" ">
- <sequential>
- <if>
- <available file="${jardir}/plugins/(a){plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
- <then>
- <echo append="true" file="${temp.file.featureplugins}"
- message="<plugin
- id="(a){plugin}.nl-${locale}"
- fragment="true" unpack="false"
- version="${PLUGIN_VERSION}" />" />
- </then>
- </if>
- </sequential>
- </for>
- <var name="plugins" unset="true" />
- <loadfile property="plugins" srcFile="${temp.file.featureplugins}"/>
- <delete file="${temp.file.featureplugins}"/>
-
-
- <echo append="true" file="${temp.file.sitefeatures}"
- message="<feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
- id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
- <category name="JBoss Tools Localization (${localename})"/>
- </feature>" />
- <!-- demunged, that looks like:
- <feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
- id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
- <category name="JBoss Tools Localization"/>
- </feature>
- -->
-
- <!-- TODO download-size="${jarsize}" install-size="${jarsize}" -->
- <copy overwrite="true"
- todir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}">
- <filterchain>
- <expandproperties/>
- </filterchain>
- <!-- TODO rename to FEATURE.nl-LOCALE_VERSION -->
- <fileset dir="feature-template/org.jboss.tools.nl-LOCALE_VERSION" />
- </copy>
- <jar destfile="${jardir}/features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
- basedir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
- <!-- might want to keep around for debugging: -->
- <delete dir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
- </sequential>
- </for>
- </sequential>
- </for>
- </sequential>
- <for param="locale" list="${locales}">
- <sequential>
- <propertycopy override="true" property="localename" from="NAME_@{locale}"/>
- <echo append="true" file="${temp.file.sitefeatures}"
- message="<category-def name="JBoss Tools Localization (${localename})" label="JBoss Tools Localization (${localename})"/>" />
- <!-- demunged, that looks like:
- <category-def
- name="JBoss Tools Localization (${localename})"
- label="JBoss Tools Localization (${localename})"/>
- -->
- </sequential>
- </for>
-
-
-
- <var name="features" unset="true" />
- <loadfile property="features" srcFile="${temp.file.sitefeatures}"/>
- <delete file="${temp.file.sitefeatures}"/>
-
- <copy overwrite="true" tofile="${jardir}/site.xml" file="site-template.xml">
- <filterchain>
- <expandproperties/>
- </filterchain>
- </copy>
- </target>
-
- <target name="zips" depends="init">
- <delete dir="${zipdir}" />
- <mkdir dir="${zipdir}" />
- <for param="locale" list="${locales}">
- <sequential>
- <zip
- destfile="${zipdir}/jbosstools-nls-(a){locale}_${LANGPACK_VERSION}.zip"
- compress="false"
- whenempty="fail"
- basedir="${jardir}" >
- <include name="plugins/*.nl-(a){locale}_${PLUGIN_VERSION}.jar" />
- <include name="features/*.nl-(a){locale}_${PLUGIN_VERSION}.jar/" />
- <!--
- -->
- </zip>
- </sequential>
- </for>
- </target>
-
- <target name="all" depends="clean, prop2pot, en, qps, en_AA, po2prop, manifests, fragments, features, zips"
- description="Runs all targets in an appropriate order"/>
-
-
- <!-- Test for a class from Ant 1.7.1 (needed for the jar task's erroronmissingdir feature -->
- <available property="Ant-1.7.1-or-later"
- classname="org.apache.tools.ant.input.SecureInputHandler"/>
-
- <target name="checkver" unless="Ant-1.7.1-or-later">
- <fail message="Incorrect version of ant: ${ant.version} but required: 1.7.1"/>
- </target>
-
-</project>
Copied: trunk/i18n/build.xml (from rev 11744, trunk/i18n/build.xml)
===================================================================
--- trunk/i18n/build.xml (rev 0)
+++ trunk/i18n/build.xml 2008-11-13 07:07:13 UTC (rev 11745)
@@ -0,0 +1,427 @@
+<?xml version="1.0"?>
+
+<project name="org.jboss.tools.translations" default="debug" basedir="." xmlns:artifact="urn:maven-artifact-ant">
+
+ <path id="jbtdir" path="..">
+ </path>
+ <property name="jbt.srcdir" value="${toString:jbtdir}" />
+
+ <property file="i18n.properties" />
+
+ <!-- Target locations: -->
+ <property name="target.dir" location="target" />
+ <property name="potdir" value="${target.dir}${file.separator}pot" />
+ <property name="propdir" value="${target.dir}${file.separator}prop" />
+ <property name="jardir" value="${target.dir}${file.separator}jars" />
+ <property name="zipdir" value="${target.dir}${file.separator}zips" />
+
+ <!-- Fetch Maven Ant Tasks jar: -->
+ <!-- 2.0.9 is not yet in the jboss maven repo -->
+ <property name="maven.version" value="2.0.8" />
+ <property name="maven-artifact-ant.bootstrap.jar" location="${target.dir}/lib/maven-ant-tasks-${maven.version}.jar" />
+ <property name="remoteRepo" value="" />
+
+ <target name="-check-get-maven-artifact-ant">
+ <available property="-get-maven-artifact-ant-done" file="${maven-artifact-ant.bootstrap.jar}" />
+ </target>
+
+ <target name="-get-maven-artifact-ant" depends="-check-get-maven-artifact-ant" unless="-get-maven-artifact-ant-done">
+ <mkdir dir="${target.dir}/lib" />
+ <get src="http://repository.jboss.com/maven2/org/apache/maven/maven-ant-tasks/${mav..." dest="${maven-artifact-ant.bootstrap.jar}" />
+ </target>
+
+ <!-- Define the Ant-Contrib and Tennera Ant Gettext tasks, using Maven
+ to resolve dependencies: -->
+ <target name="initTaskDefs" depends="-get-maven-artifact-ant">
+ <path id="maven-ant-tasks.classpath" path="${maven-artifact-ant.bootstrap.jar}" />
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
+
+ <!-- This would be used if we wanted to keep maven's repo out of ${user.home}
+ <artifact:localRepository id="local.repository" path="${basedir}/target/local-repo" layout="default"/>
+
+ <property name="deploy.repository.url" value="${basedir}/target/deployment-repo" />
+ <artifact:remoteRepository id="deploy.repository" url="file://localhost/${deploy.repository.url}" layout="default"/>
+ -->
+
+ <!-- Maven dependencies -->
+ <artifact:pom file="pom.xml" id="maven.project" />
+ <artifact:dependencies pathId="dependency.classpath" useScope="runtime" type="jar">
+ <pom refid="maven.project" />
+ </artifact:dependencies>
+
+ <!-- pick up the "for" task from ant-contrib -->
+ <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="dependency.classpath" />
+
+ <!-- xpath task -->
+ <taskdef resource="net/uworks/andariel/andariel.properties" classpathref="dependency.classpath" />
+
+ <!-- ant-gettext tasks -->
+ <taskdef name="prop2pot" classname="org.fedorahosted.tennera.antgettext.Prop2PotTask" classpathref="dependency.classpath" />
+ <taskdef name="pot2en" classname="org.fedorahosted.tennera.antgettext.Pot2EnTask" classpathref="dependency.classpath" />
+ <taskdef name="po2prop" classname="org.fedorahosted.tennera.antgettext.Po2PropTask" classpathref="dependency.classpath" />
+ <taskdef name="xpath2pot" classname="org.fedorahosted.tennera.antgettext.XPath2PotTask" classpathref="dependency.classpath" />
+ </target>
+
+
+ <target name="init" depends="checkver,initTaskDefs">
+ </target>
+
+ <target name="debug" depends="init">
+ <echo message="jbt.srcdir=${jbt.srcdir}"/>
+ <!-- get the source compile classpath in a printable form -->
+ <pathconvert pathsep="${line.separator}| |__ " property="echo.dependency.classpath" refid="dependency.classpath">
+ </pathconvert>
+ <echo message="|__ dependency.classpath path" />
+ <echo message="| |" />
+ <echo message="| |__ ${echo.dependency.classpath}" />
+ </target>
+
+ <target name="clean" description="Remove generated files">
+ <delete dir="${potdir}" />
+ <delete dir="po/en" />
+ <delete dir="po/qps" />
+ <delete dir="po/en_AA" />
+ <delete dir="${propdir}" />
+ <delete dir="${jardir}" />
+ <delete dir="${zipdir}" />
+ <delete dir="${target.dir}" includes="*.tmp" />
+ </target>
+
+ <target name="prop2pot" description="Extract translation templates (POT) from the JBoss Tools English properties files" depends="init">
+ <delete dir="${potdir}" />
+ <mkdir dir="${potdir}" />
+ <for param="srcdir">
+ <path>
+ <!-- paths under jbt.srcdir look like: ${module}/plugins/${plugin}/{src,main,...} -->
+ <dirset dir="${jbt.srcdir}" includes="*/plugins/*/*" excludes="${srcexcludes}" />
+ </path>
+ <sequential>
+ <!-- work out srcdir's path relative to the jbosstools source tree
+ -->
+ <propertyregex override="true" property="relativesrcdir"
+ input="@{srcdir}" regexp="^${jbt.srcdir}${file.separator}(.*)" select="\1" />
+ <checkprop propname="relativesrcdir"/>
+ <propertyregex override="true" property="plugin"
+ input="@{srcdir}"
+ regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}plugins${file.separator}([^/\\]+)${file.separator}.*"
+ select="\1" />
+ <checkprop propname="plugin"/>
+ <echo level="verbose" message="extracting strings from @{srcdir} -> ${potdir}/${relativesrcdir}"/>
+ <prop2pot srcDir="@{srcdir}" dstDir="${potdir}/${relativesrcdir}" />
+ </sequential>
+ </for>
+ </target>
+
+ <!-- autogenerated "translations" -->
+ <target name="en" depends="init" description="Generate English PO files from POT files">
+ <delete dir="po/en" />
+ <mkdir dir="po/en" />
+ <pot2en srcDir="${potdir}" dstDir="po/en" />
+ </target>
+ <target name="qps" depends="init" description="Generate Pseudo-translation PO files for qps locale from POT files">
+ <delete dir="po/qps" />
+ <mkdir dir="po/qps" />
+ <pot2en srcDir="${potdir}" dstDir="po/qps" pseudo="true" />
+ </target>
+
+ <target name="en_AA" depends="init" description="Generate Pseudo-translation PO files for en_AA locale from POT files">
+ <delete dir="po/en_AA" />
+ <mkdir dir="po/en_AA" />
+ <pot2en srcDir="${potdir}" dstDir="po/en_AA" pseudo="true" />
+ </target>
+
+ <target name="po2prop" depends="init" description="Generate Java properties files from translated PO files">
+ <delete dir="${propdir}" />
+ <mkdir dir="${propdir}" />
+ <!-- for each locale in po/* -->
+ <for param="locale" list="${locales}">
+ <sequential>
+ <po2prop srcDir="po/@{locale}" dstDir="${propdir}/@{locale}" locale="@{locale}" />
+ </sequential>
+ </for>
+ </target>
+
+ <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
+ macrodef: checkprop checks that specified property has been set
+ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
+ <macrodef name="checkprop">
+ <attribute name="propname" />
+ <sequential>
+ <if>
+ <!-- TODO fail on empty value -->
+ <not>
+ <isset property="@{propname}"/>
+ </not>
+ <then>
+ <fail message="property '@{propname}' is not set"/>
+ </then>
+ </if>
+ </sequential>
+ </macrodef>
+
+ <!-- = = = = = = = = = = = = = = = = =
+ macrodef: processplugins
+ = = = = = = = = = = = = = = = = = -->
+ <macrodef name="processplugins">
+ <attribute name="rootdir" />
+ <attribute name="task" />
+ <sequential>
+ <for param="plugindir">
+ <path>
+ <dirset dir="@{rootdir}" includes="*/*/plugins/*">
+ </dirset>
+ </path>
+ <sequential>
+ <propertyregex override="true" property="locale"
+ input="@{plugindir}"
+ regexp="^(a){rootdir}${file.separator}([^/\\]+)${file.separator}.*"
+ select="\1" />
+ <checkprop propname="locale"/>
+ <propertyregex override="true" property="module"
+ input="@{plugindir}"
+ regexp="^(a){rootdir}${file.separator}[^/\\]+${file.separator}([^/\\]+).*"
+ select="\1" />
+ <checkprop propname="module"/>
+ <propertyregex override="true" property="plugin"
+ input="@{plugindir}"
+ regexp="^(a){rootdir}${file.separator}[^/\\]+${file.separator}[^/\\]+${file.separator}plugins${file.separator}(.*)"
+ select="\1" />
+ <checkprop propname="plugin"/>
+ <propertycopy override="true" property="localename" from="NAME_${locale}"/>
+ <echo level="verbose" message="@{plugindir} contains ${locale} props for plugin ${plugin} in module ${module}"/>
+ <antcall target="@{task}">
+ <param name="plugindir" value="@{plugindir}"/>
+ </antcall>
+ </sequential>
+ </for>
+ </sequential>
+ </macrodef>
+
+ <!-- Processes the generated props directory, one plugin at a time,
+ generating manifests -->
+ <target name="manifests" depends="init" description="Generate fragment plugin manifests for langpack plugins">
+ <delete dir="${propdir}" includes="*/*/plugins/*/META-INF/MANIFEST.MF"/>
+ <processplugins rootdir="${propdir}" task="manifest" />
+ </target>
+
+
+ <!-- Generates the manifest for one plugin. Called by processplugins. -->
+ <target name="manifest">
+ <!-- NB don't depend on initTaskDefs here, or ant loads the
+ classes over and over until it exhausts memory -->
+ <checkprop propname="plugindir"/>
+ <checkprop propname="plugin"/>
+ <checkprop propname="locale"/>
+ <checkprop propname="localename"/>
+ <checkprop propname="PLUGIN_VERSION"/>
+ <checkprop propname="PLUGIN_VENDOR"/>
+ <copy overwrite="true" file="plugin-template.mf" tofile="${plugindir}/META-INF/MANIFEST.MF">
+ <filterchain>
+ <expandproperties/>
+ </filterchain>
+ </copy>
+ <!-- for debug output:
+ <concat><filelist files="${plugindir}/META-INF/MANIFEST.MF"></filelist></concat>
+-->
+ </target>
+
+ <!-- Processes the generated props directory, one plugin at a time,
+ generating plugin jars from the props and manifest -->
+ <target name="fragments" depends="init" description="Generate fragment plugin jars to contain translations" >
+ <delete dir="${jardir}" />
+ <mkdir dir="${jardir}/plugins" />
+ <processplugins rootdir="${propdir}" task="fragment" />
+ </target>
+
+ <!-- Jars up one fragment plugin. Called by processplugins. -->
+ <target name="fragment">
+ <!-- NB don't depend on initTaskDefs here, or ant loads the
+ classes over and over until it exhausts memory -->
+ <checkprop propname="plugindir"/>
+ <checkprop propname="plugin"/>
+ <checkprop propname="locale"/>
+ <checkprop propname="localename"/>
+ <checkprop propname="PLUGIN_VERSION"/>
+ <checkprop propname="PLUGIN_VENDOR"/>
+ <property name="jar" value="${jardir}/plugins/${plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
+ <echo level="verbose" message="Jarring up ${jar} from directory ${plugindir}"/>
+ <!-- we exclude "*" because we only want about.properties and
+ plugin.properties from the top-level -->
+ <jar
+ destfile="${jar}"
+ update="no"
+ basedir="${plugindir}"
+ excludes="*"
+ duplicate="fail"
+ manifest="${plugindir}/META-INF/MANIFEST.MF">
+ <!-- todo consider an inline manifest -->
+ <include name="about.properties"/>
+ <!-- NB features contain feature.properties but all are currently empty -->
+ <include name="plugin.properties"/>
+ <!-- FIXME too many source paths, see https://jira.jboss.org/jira/browse/JBIDE-2972 -->
+ <!-- next two are Maven style, not currently used in JBT:
+ <fileset erroronmissingdir="false" dir="${plugindir}/src/main/java"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/src/main/resources"/>
+ -->
+ <fileset erroronmissingdir="false" dir="${plugindir}/src/main" excludes="java,resources"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/src" excludes="main"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/jbosscore"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/jbossui"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/resources"/>
+ <!-- <fileset dir="${plugindir}/templates"/> -->
+ <fileset erroronmissingdir="false" dir="${plugindir}/template-src"/>
+ <!-- TODO identify and list unincluded directories -->
+ </jar>
+ </target>
+
+ <target name="features" depends="init"
+ description="Generate langpack feature manifests (one per locale) for each JBT feature, and corresponding site.xml">
+ <delete dir="${propdir}/features" />
+ <mkdir dir="${propdir}/features" />
+ <delete dir="${jardir}/features" />
+ <mkdir dir="${jardir}/features" />
+ <var name="temp.file.sitefeatures" unset="true" />
+ <tempfile property="temp.file.sitefeatures" destdir="${target.dir}" prefix="site" suffix=".tmp" createfile="true" deleteonexit="false" />
+ <sequential>
+ <for param="featurexml">
+ <path>
+ <fileset dir="${jbt.srcdir}" includes="*/features/*/feature.xml"/>
+ </path>
+ <sequential>
+ <propertyregex override="true" property="module"
+ input="@{featurexml}"
+ regexp="^${jbt.srcdir}${file.separator}([^/\\]+).*"
+ select="\1" />
+ <checkprop propname="module"/>
+ <propertyregex override="true" property="feature"
+ input="@{featurexml}"
+ regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}features${file.separator}([^/\\]+)${file.separator}feature.xml"
+ select="\1" />
+ <checkprop propname="feature"/>
+ <var name="featurename" value="${feature}" />
+ <var name="jarsize" value="0" />
+ <echo level="verbose" message="Processing feature ${feature} in module ${module}"/>
+ <for param="locale" list="${locales}">
+ <sequential>
+ <var name="locale" value="@{locale}" />
+ <propertycopy override="true" property="localename" from="NAME_@{locale}"/>
+
+ <xpath
+ file="@{featurexml}"
+ expression="/feature/plugin/@id"
+ delimiter=" "
+ outputproperty="feature.${feature}.plugins"/>
+ <propertycopy override="true" property="plugins" from="feature.${feature}.plugins"/>
+
+
+ <var name="temp.file.featureplugins" unset="true" />
+ <tempfile property="temp.file.featureplugins" destdir="${target.dir}" prefix="plugins" suffix=".tmp" createfile="true" deleteonexit="true" />
+ <for param="plugin" list="${plugins}" delimiter=" ">
+ <sequential>
+ <if>
+ <available file="${jardir}/plugins/(a){plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
+ <then>
+ <echo append="true" file="${temp.file.featureplugins}"
+ message="<plugin
+ id="(a){plugin}.nl-${locale}"
+ fragment="true" unpack="false"
+ version="${PLUGIN_VERSION}" />" />
+ </then>
+ </if>
+ </sequential>
+ </for>
+ <var name="plugins" unset="true" />
+ <loadfile property="plugins" srcFile="${temp.file.featureplugins}"/>
+ <delete file="${temp.file.featureplugins}"/>
+
+
+ <echo append="true" file="${temp.file.sitefeatures}"
+ message="<feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
+ id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
+ <category name="JBoss Tools Localization (${localename})"/>
+ </feature>" />
+ <!-- demunged, that looks like:
+ <feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
+ id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
+ <category name="JBoss Tools Localization"/>
+ </feature>
+ -->
+
+ <!-- TODO download-size="${jarsize}" install-size="${jarsize}" -->
+ <copy overwrite="true"
+ todir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}">
+ <fileset dir="feature-template/FEATURE.nl-LOCALE_VERSION" />
+ <filterchain>
+ <expandproperties/>
+ </filterchain>
+ </copy>
+ <jar destfile="${jardir}/features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
+ basedir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
+ <!-- might want to keep around for debugging: -->
+ <delete dir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
+ </sequential>
+ </for>
+ </sequential>
+ </for>
+ </sequential>
+ <!--
+ Generate a list of features for each locale, so that the update
+ site can have a category for each locale:
+ -->
+ <for param="locale" list="${locales}">
+ <sequential>
+ <propertycopy override="true" property="localename" from="NAME_@{locale}"/>
+ <echo append="true" file="${temp.file.sitefeatures}"
+ message="<category-def name="JBoss Tools Localization (${localename})" label="JBoss Tools Localization (${localename})"/>" />
+ <!-- demunged, that looks like:
+ <category-def
+ name="JBoss Tools Localization (${localename})"
+ label="JBoss Tools Localization (${localename})"/>
+ -->
+ </sequential>
+ </for>
+
+
+ <!-- Read in the above list of features -->
+ <var name="features" unset="true" />
+ <loadfile property="features" srcFile="${temp.file.sitefeatures}"/>
+ <delete file="${temp.file.sitefeatures}"/>
+
+ <!-- And create the feature from the template, filling in the list of features -->
+ <copy overwrite="true" tofile="${jardir}/site.xml" file="site-template.xml">
+ <filterchain>
+ <expandproperties/>
+ </filterchain>
+ </copy>
+ </target>
+
+ <target name="zips" depends="init" description="Generate zip files containing langpacks, one zip per locale">
+ <delete dir="${zipdir}" />
+ <mkdir dir="${zipdir}" />
+ <for param="locale" list="${locales}">
+ <sequential>
+ <zip
+ destfile="${zipdir}/jbosstools-nls-(a){locale}_${LANGPACK_VERSION}.zip"
+ compress="false"
+ whenempty="fail"
+ basedir="${jardir}" >
+ <include name="plugins/*.nl-(a){locale}_${PLUGIN_VERSION}.jar" />
+ <include name="features/*.nl-(a){locale}_${PLUGIN_VERSION}.jar/" />
+ </zip>
+ </sequential>
+ </for>
+ </target>
+
+ <target name="all" depends="clean, prop2pot, en, qps, en_AA, po2prop, manifests, fragments, features, zips"
+ description="Runs all targets in an appropriate order"/>
+
+
+ <!-- Test for a class from Ant 1.7.1 (needed for the jar task's erroronmissingdir feature -->
+ <available property="Ant-1.7.1-or-later"
+ classname="org.apache.tools.ant.input.SecureInputHandler"/>
+
+ <target name="checkver" unless="Ant-1.7.1-or-later">
+ <fail message="Incorrect version of ant: ${ant.version} but required: 1.7.1"/>
+ </target>
+
+</project>
Property changes on: trunk/i18n/build.xml
___________________________________________________________________
Name: svn:mergeinfo
+
Copied: trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION (from rev 11744, trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION)
Property changes on: trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION
___________________________________________________________________
Name: svn:mergeinfo
+
17 years, 5 months
JBoss Tools SVN: r11744 - trunk/i18n.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2008-11-12 23:38:23 -0500 (Wed, 12 Nov 2008)
New Revision: 11744
Modified:
trunk/i18n/build.xml
Log:
Cleaned up echo statements, handling of temp files.
Modified: trunk/i18n/build.xml
===================================================================
--- trunk/i18n/build.xml 2008-11-13 04:35:19 UTC (rev 11743)
+++ trunk/i18n/build.xml 2008-11-13 04:38:23 UTC (rev 11744)
@@ -69,16 +69,13 @@
</target>
<target name="debug" depends="init">
- <echo message="jbt.srcdir=${jbt.srcdir}">
- </echo>
+ <echo message="jbt.srcdir=${jbt.srcdir}"/>
<!-- get the source compile classpath in a printable form -->
<pathconvert pathsep="${line.separator}| |__ " property="echo.dependency.classpath" refid="dependency.classpath">
</pathconvert>
<echo message="|__ dependency.classpath path" />
<echo message="| |" />
<echo message="| |__ ${echo.dependency.classpath}" />
- <!--
--->
</target>
<target name="clean" description="Remove generated files">
@@ -89,6 +86,7 @@
<delete dir="${propdir}" />
<delete dir="${jardir}" />
<delete dir="${zipdir}" />
+ <delete dir="${target.dir}" includes="*.tmp" />
</target>
<target name="prop2pot" description="Extract translation templates (POT) from the JBoss Tools English properties files" depends="init">
@@ -110,9 +108,7 @@
regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}plugins${file.separator}([^/\\]+)${file.separator}.*"
select="\1" />
<checkprop propname="plugin"/>
- <!--
- <echo message="extracting strings from @{srcdir} -> ${potdir}/${relativesrcdir}"/>
--->
+ <echo level="verbose" message="extracting strings from @{srcdir} -> ${potdir}/${relativesrcdir}"/>
<prop2pot srcDir="@{srcdir}" dstDir="${potdir}/${relativesrcdir}" />
<xpath2pot srcDir="@{srcdir}" target="${potdir}/${relativesrcdir}/${plugin}_meta.pot" includes="**/*.meta" xpath="${meta.xpath}" pathprefix="${relativesrcdir}/">
<dtd publicId="-//Red Hat, Inc.//DTD Meta 1.0//EN" location="${meta.dtd}" />
@@ -197,9 +193,7 @@
select="\1" />
<checkprop propname="plugin"/>
<propertycopy override="true" property="localename" from="NAME_${locale}"/>
- <!--
- <echo message="@{plugindir} contains ${locale} props for plugin ${plugin} in module ${module}"/>
- -->
+ <echo level="verbose" message="@{plugindir} contains ${locale} props for plugin ${plugin} in module ${module}"/>
<antcall target="@{task}">
<param name="plugindir" value="@{plugindir}"/>
</antcall>
@@ -249,9 +243,7 @@
<checkprop propname="PLUGIN_VERSION"/>
<checkprop propname="PLUGIN_VENDOR"/>
<property name="jar" value="${jardir}/plugins/${plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
- <!--
- <echo message="Jarring up ${jar} from directory ${plugindir}"/>
--->
+ <echo level="verbose" message="Jarring up ${jar} from directory ${plugindir}"/>
<!-- we exclude "*" because we only want about.properties and
plugin.properties from the top-level -->
<jar
@@ -307,7 +299,7 @@
<checkprop propname="feature"/>
<var name="featurename" value="${feature}" />
<var name="jarsize" value="0" />
- <echo message="Processing feature ${feature} in module ${module}"/>
+ <echo level="verbose" message="Processing feature ${feature} in module ${module}"/>
<for param="locale" list="${locales}">
<sequential>
<var name="locale" value="@{locale}" />
@@ -347,14 +339,12 @@
id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
<category name="JBoss Tools Localization (${localename})"/>
</feature>" />
- <!--
+ <!-- demunged, that looks like:
<feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
<category name="JBoss Tools Localization"/>
</feature>
-->
-
-
<!-- TODO download-size="${jarsize}" install-size="${jarsize}" -->
<copy overwrite="true"
@@ -364,18 +354,11 @@
</filterchain>
<!-- TODO rename to FEATURE.nl-LOCALE_VERSION -->
<fileset dir="feature-template/org.jboss.tools.nl-LOCALE_VERSION" />
- <!--
- features/org.*.nl-${locale}_${PLUGIN_VERSION}/
- license.html
- feature.properties
- feature.xml
- -->
</copy>
<jar destfile="${jardir}/features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
basedir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
-<!--
+ <!-- might want to keep around for debugging: -->
<delete dir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
--->
</sequential>
</for>
</sequential>
@@ -386,19 +369,19 @@
<propertycopy override="true" property="localename" from="NAME_@{locale}"/>
<echo append="true" file="${temp.file.sitefeatures}"
message="<category-def name="JBoss Tools Localization (${localename})" label="JBoss Tools Localization (${localename})"/>" />
+ <!-- demunged, that looks like:
+ <category-def
+ name="JBoss Tools Localization (${localename})"
+ label="JBoss Tools Localization (${localename})"/>
+ -->
</sequential>
</for>
- <!--
- <category-def name="JBoss Tools Localization (${localename})" label="JBoss Tools Localization (${localename})"/>
- -->
<var name="features" unset="true" />
<loadfile property="features" srcFile="${temp.file.sitefeatures}"/>
- <!--
<delete file="${temp.file.sitefeatures}"/>
- -->
<copy overwrite="true" tofile="${jardir}/site.xml" file="site-template.xml">
<filterchain>
17 years, 5 months
JBoss Tools SVN: r11743 - trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2008-11-12 23:35:19 -0500 (Wed, 12 Nov 2008)
New Revision: 11743
Added:
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.txt
Removed:
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html
Modified:
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml
Log:
Cleaned up the values in the langpack feature template a bit.
Modified: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties 2008-11-13 02:49:47 UTC (rev 11742)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties 2008-11-13 04:35:19 UTC (rev 11743)
@@ -1,13 +1,12 @@
-providerName=JBoss
+providerName=JBoss, a division of Red Hat
copyright=\
-\n\
-\n
+JBoss, Home of Professional Open Source\n\
+Copyright 2006, JBoss Inc., and individual contributors as indicated\n\
+by the @authors tag. See the copyright.txt in the distribution\n\
+for a full listing of individual contributors.
################ end of copyright property ####################################
-licenseURL=license.html
+licenseURL=license.txt
-license=\
-TBD\n\
-\n
########### end of license property ##########################################
Modified: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml 2008-11-13 02:49:47 UTC (rev 11742)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml 2008-11-13 04:35:19 UTC (rev 11743)
@@ -8,7 +8,406 @@
%copyright
</copyright>
<license url="%licenseURL">
- %license
+GNU LESSER GENERAL PUBLIC LICENSE
+Version 2.1, February 1999
+Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+[This is the first released version of the Lesser GPL. It also
+counts
+as the successor of the GNU Library Public License, version 2,
+hence
+the version number 2.1.]
+Preamble
+The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General
+Public Licenses are intended to guarantee your freedom to share
+and change free software--to make sure the software is free for
+all its users.
+This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of
+the Free Software Foundation and other authors who decide to
+use it. You can use it too, but we suggest you first think carefully
+about whether this license or the ordinary General Public License
+is the better strategy to use in any particular case, based on
+the explanations below.
+When we speak of free software, we are referring to freedom of
+use, not price. Our General Public Licenses are designed to make
+sure that you have the freedom to distribute copies of free software
+(and charge for this service if you wish); that you receive source
+code or can get it if you want it; that you can change the software
+and use pieces of it in new free programs; and that you are informed
+that you can do these things.
+To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender
+these rights. These restrictions translate to certain responsibilities
+for you if you distribute copies of the library or if you modify
+it.
+For example, if you distribute copies of the library, whether
+gratis or for a fee, you must give the recipients all the rights
+that we gave you. You must make sure that they, too, receive
+or can get the source code. If you link other code with the library,
+you must provide complete object files to the recipients, so
+that they can relink them with the library after making changes
+to the library and recompiling it. And you must show them these
+terms so they know their rights.
+We protect your rights with a two-step method: (1) we copyright
+the library, and (2) we offer you this license, which gives you
+legal permission to copy, distribute and/or modify the library.
+To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library
+is modified by someone else and passed on, the recipients should
+know that what they have is not the original version, so that
+the original author's reputation will not be affected by problems
+that might be introduced by others.
+Finally, software patents pose a constant threat to the existence
+of any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining
+a restrictive license from a patent holder. Therefore, we insist
+that any patent license obtained for a version of the library
+must be consistent with the full freedom of use specified in
+this license.
+Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries,
+and is quite different from the ordinary General Public License.
+We use this license for certain libraries in order to permit
+linking those libraries into non-free programs.
+When a program is linked with a library, whether statically or
+using a shared library, the combination of the two is legally
+speaking a combined work, a derivative of the original library.
+The ordinary General Public License therefore permits such linking
+only if the entire combination fits its criteria of freedom.
+The Lesser General Public License permits more lax criteria for
+linking other code with the library.
+We call this license the "Lesser" General Public License because
+it does Less to protect the user's freedom than the ordinary
+General Public License. It also provides other free software
+developers Less of an advantage over competing non-free programs.
+These disadvantages are the reason we use the ordinary General
+Public License for many libraries. However, the Lesser license
+provides advantages in certain special circumstances.
+For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that
+it becomes a de-facto standard. To achieve this, non-free programs
+must be allowed to use the library. A more frequent case is that
+a free library does the same job as widely used non-free libraries.
+In this case, there is little to gain by limiting the free library
+to free software only, so we use the Lesser General Public License.
+In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body
+of free software. For example, permission to use the GNU C Library
+in non-free programs enables many more people to use the whole
+GNU operating system, as well as its variant, the GNU/Linux operating
+system.
+Although the Lesser General Public License is Less protective
+of the users' freedom, it does ensure that the user of a program
+that is linked with the Library has the freedom and the wherewithal
+to run that program using a modified version of the Library.
+The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between
+a "work based on the library" and a "work that uses the library".
+The former contains code derived from the library, whereas the
+latter must be combined with the library in order to run.
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+0. This License Agreement applies to any software library or
+other program which contains a notice placed by the copyright
+holder or other authorized party saying it may be distributed
+under the terms of this Lesser General Public License (also called
+"this License"). Each licensee is addressed as "you".
+A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+The "Library", below, refers to any such software library or
+work which has been distributed under these terms. A "work based
+on the Library" means either the Library or any derivative work
+under copyright law: that is to say, a work containing the Library
+or a portion of it, either verbatim or with modifications and/or
+translated straightforwardly into another language. (Hereinafter,
+translation is included without limitation in the term "modification".)
+"Source code" for a work means the preferred form of the work
+for making modifications to it. For a library, complete source
+code means all the source code for all modules it contains, plus
+any associated interface definition files, plus the scripts used
+to control compilation and installation of the library.
+Activities other than copying, distribution and modification
+are not covered by this License; they are outside its scope.
+The act of running a program using the Library is not restricted,
+and output from such a program is covered only if its contents
+constitute a work based on the Library (independent of the use
+of the Library in a tool for writing it). Whether that is true
+depends on what the Library does and what the program that uses
+the Library does.
+1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided
+that you conspicuously and appropriately publish on each copy
+an appropriate copyright notice and disclaimer of warranty; keep
+intact all the notices that refer to this License and to the
+absence of any warranty; and distribute a copy of this License
+along with the Library.
+You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange
+for a fee.
+2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section
+1 above, provided that you also meet all of these conditions:
+a) The modified work must itself be a software library.
+b) You must cause the files modified to carry prominent notices
+stating that you changed the files and the date of any change.
+c) You must cause the whole of the work to be licensed at no
+charge to all third parties under the terms of this License.
+d) If a facility in the modified Library refers to a function
+or a table of data to be supplied by an application program that
+uses the facility, other than as an argument passed when the
+facility is invoked, then you must make a good faith effort to
+ensure that, in the event an application does not supply such
+function or table, the facility still operates, and performs
+whatever part of its purpose remains meaningful.
+(For example, a function in a library to compute square roots
+has a purpose that is entirely well-defined independent of the
+application. Therefore, Subsection 2d requires that any application-supplied
+function or table used by this function must be optional: if
+the application does not supply it, the square root function
+must still compute square roots.)
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works
+in themselves, then this License, and its terms, do not apply
+to those sections when you distribute them as separate works.
+But when you distribute the same sections as part of a whole
+which is a work based on the Library, the distribution of the
+whole must be on the terms of this License, whose permissions
+for other licensees extend to the entire whole, and thus to each
+and every part regardless of who wrote it.
+Thus, it is not the intent of this section to claim rights or
+contest your rights to work written entirely by you; rather,
+the intent is to exercise the right to control the distribution
+of derivative or collective works based on the Library.
+In addition, mere aggregation of another work not based on the
+Library with the Library (or with a work based on the Library)
+on a volume of a storage or distribution medium does not bring
+the other work under the scope of this License.
+3. You may opt to apply the terms of the ordinary GNU General
+Public License instead of this License to a given copy of the
+Library. To do this, you must alter all the notices that refer
+to this License, so that they refer to the ordinary GNU General
+Public License, version 2, instead of to this License. (If a
+newer version than version 2 of the ordinary GNU General Public
+License has appeared, then you can specify that version instead
+if you wish.) Do not make any other change in these notices.
+Once this change is made in a given copy, it is irreversible
+for that copy, so the ordinary GNU General Public License applies
+to all subsequent copies and derivative works made from that
+copy.
+This option is useful when you wish to copy part of the code
+of the Library into a program that is not a library.
+4. You may copy and distribute the Library (or a portion or derivative
+of it, under Section 2) in object code or executable form under
+the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code,
+which must be distributed under the terms of Sections 1 and 2
+above on a medium customarily used for software interchange.
+If distribution of object code is made by offering access to
+copy from a designated place, then offering equivalent access
+to copy the source code from the same place satisfies the requirement
+to distribute the source code, even though third parties are
+not compelled to copy the source along with the object code.
+5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled
+or linked with it, is called a "work that uses the Library".
+Such a work, in isolation, is not a derivative work of the Library,
+and therefore falls outside the scope of this License.
+However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because
+it contains portions of the Library), rather than a "work that
+uses the library". The executable is therefore covered by this
+License. Section 6 states terms for distribution of such executables.
+When a "work that uses the Library" uses material from a header
+file that is part of the Library, the object code for the work
+may be a derivative work of the Library even though the source
+code is not. Whether this is true is especially significant if
+the work can be linked without the Library, or if the work is
+itself a library. The threshold for this to be true is not precisely
+defined by law.
+If such an object file uses only numerical parameters, data structure
+layouts and accessors, and small macros and small inline functions
+(ten lines or less in length), then the use of the object file
+is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions
+of the Library will still fall under Section 6.)
+Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section
+6. Any executables containing that work also fall under Section
+6, whether or not they are linked directly with the Library itself.
+6. As an exception to the Sections above, you may also combine
+or link a "work that uses the Library" with the Library to produce
+a work containing portions of the Library, and distribute that
+work under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+You must give prominent notice with each copy of the work that
+the Library is used in it and that the Library and its use are
+covered by this License. You must supply a copy of this License.
+If the work during execution displays copyright notices, you
+must include the copyright notice for the Library among them,
+as well as a reference directing the user to the copy of this
+License. Also, you must do one of these things:
+a) Accompany the work with the complete corresponding machine-readable
+source code for the Library including whatever changes were used
+in the work (which must be distributed under Sections 1 and 2
+above); and, if the work is an executable linked with the Library,
+with the complete machine-readable "work that uses the Library",
+as object code and/or source code, so that the user can modify
+the Library and then relink to produce a modified executable
+containing the modified Library. (It is understood that the user
+who changes the contents of definitions files in the Library
+will not necessarily be able to recompile the application to
+use the modified definitions.)
+b) Use a suitable shared library mechanism for linking with the
+Library. A suitable mechanism is one that (1) uses at run time
+a copy of the library already present on the user's computer
+system, rather than copying library functions into the executable,
+and (2) will operate properly with a modified version of the
+library, if the user installs one, as long as the modified version
+is interface-compatible with the version that the work was made
+with.
+c) Accompany the work with a written offer, valid for at least
+three years, to give the same user the materials specified in
+Subsection 6a, above, for a charge no more than the cost of performing
+this distribution.
+d) If distribution of the work is made by offering access to
+copy from a designated place, offer equivalent access to copy
+the above specified materials from the same place.
+e) Verify that the user has already received a copy of these
+materials or that you have already sent this user a copy.
+For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that
+is normally distributed (in either source or binary form) with
+the major components (compiler, kernel, and so on) of the operating
+system on which the executable runs, unless that component itself
+accompanies the executable.
+It may happen that this requirement contradicts the license restrictions
+of other proprietary libraries that do not normally accompany
+the operating system. Such a contradiction means you cannot use
+both them and the Library together in an executable that you
+distribute.
+7. You may place library facilities that are a work based on
+the Library side-by-side in a single library together with other
+library facilities not covered by this License, and distribute
+such a combined library, provided that the separate distribution
+of the work based on the Library and of the other library facilities
+is otherwise permitted, and provided that you do these two things:
+a) Accompany the combined library with a copy of the same work
+based on the Library, uncombined with any other library facilities.
+This must be distributed under the terms of the Sections above.
+b) Give prominent notice with the combined library of the fact
+that part of it is a work based on the Library, and explaining
+where to find the accompanying uncombined form of the same work.
+8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License.
+Any attempt otherwise to copy, modify, sublicense, link with,
+or distribute the Library is void, and will automatically terminate
+your rights under this License. However, parties who have received
+copies, or rights, from you under this License will not have
+their licenses terminated so long as such parties remain in full
+compliance.
+9. You are not required to accept this License, since you have
+not signed it. However, nothing else grants you permission to
+modify or distribute the Library or its derivative works. These
+actions are prohibited by law if you do not accept this License.
+Therefore, by modifying or distributing the Library (or any work
+based on the Library), you indicate your acceptance of this License
+to do so, and all its terms and conditions for copying, distributing
+or modifying the Library or works based on it.
+10. Each time you redistribute the Library (or any work based
+on the Library), the recipient automatically receives a license
+from the original licensor to copy, distribute, link with or
+modify the Library subject to these terms and conditions. You
+may not impose any further restrictions on the recipients' exercise
+of the rights granted herein. You are not responsible for enforcing
+compliance by third parties with this License.
+11. If, as a consequence of a court judgment or allegation of
+patent infringement or for any other reason (not limited to patent
+issues), conditions are imposed on you (whether by court order,
+agreement or otherwise) that contradict the conditions of this
+License, they do not excuse you from the conditions of this License.
+If you cannot distribute so as to satisfy simultaneously your
+obligations under this License and any other pertinent obligations,
+then as a consequence you may not distribute the Library at all.
+For example, if a patent license would not permit royalty-free
+redistribution of the Library by all those who receive copies
+directly or indirectly through you, then the only way you could
+satisfy both it and this License would be to refrain entirely
+from distribution of the Library.
+If any portion of this section is held invalid or unenforceable
+under any particular circumstance, the balance of the section
+is intended to apply, and the section as a whole is intended
+to apply in other circumstances.
+It is not the purpose of this section to induce you to infringe
+any patents or other property right claims or to contest validity
+of any such claims; this section has the sole purpose of protecting
+the integrity of the free software distribution system which
+is implemented by public license practices. Many people have
+made generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of
+that system; it is up to the author/donor to decide if he or
+she is willing to distribute software through any other system
+and a licensee cannot impose that choice.
+This section is intended to make thoroughly clear what is believed
+to be a consequence of the rest of this License.
+12. If the distribution and/or use of the Library is restricted
+in certain countries either by patents or by copyrighted interfaces,
+the original copyright holder who places the Library under this
+License may add an explicit geographical distribution limitation
+excluding those countries, so that distribution is permitted
+only in or among countries not thus excluded. In such case, this
+License incorporates the limitation as if written in the body
+of this License.
+13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+Each version is given a distinguishing version number. If the
+Library specifies a version number of this License which applies
+to it and "any later version", you have the option of following
+the terms and conditions either of that version or of any later
+version published by the Free Software Foundation. If the Library
+does not specify a license version number, you may choose any
+version ever published by the Free Software Foundation.
+14. If you wish to incorporate parts of the Library into other
+free programs whose distribution conditions are incompatible
+with these, write to the author to ask for permission. For software
+which is copyrighted by the Free Software Foundation, write to
+the Free Software Foundation; we sometimes make exceptions for
+this. Our decision will be guided by the two goals of preserving
+the free status of all derivatives of our free software and of
+promoting the sharing and reuse of software generally.
+NO WARRANTY
+15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS
+NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE
+LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS
+AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
+PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE
+DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR
+OR CORRECTION.
+16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO
+IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO
+MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE,
+BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
+INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS
+OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED
+BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE
+WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY
+HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+END OF TERMS AND CONDITIONS
</license>
<description>JBoss Tools Language Pack for ${featurename} in ${localename}</description>
<url>
Deleted: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html 2008-11-13 02:49:47 UTC (rev 11742)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html 2008-11-13 04:35:19 UTC (rev 11743)
@@ -1,10 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>TBD</title>
-</head>
-
-<body>
-TBD
-</body>
-</html>
Copied: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.txt (from rev 11742, trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html)
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.txt (rev 0)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.txt 2008-11-13 04:35:19 UTC (rev 11743)
@@ -0,0 +1,458 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
Property changes on: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.txt
___________________________________________________________________
Name: svn:mergeinfo
+
17 years, 5 months
JBoss Tools SVN: r11742 - trunk/i18n/po.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2008-11-12 21:49:47 -0500 (Wed, 12 Nov 2008)
New Revision: 11742
Modified:
trunk/i18n/po/
Log:
Added to ignore list
Property changes on: trunk/i18n/po
___________________________________________________________________
Name: svn:ignore
+ en_AA
qps
en
17 years, 5 months