Author: sflanigan
Date: 2009-05-25 00:38:33 -0400 (Mon, 25 May 2009)
New Revision: 15469
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/.settings/
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/.settings/
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/plugins/org.hibernate.eclipse/.settings/
trunk/hibernatetools/plugins/org.hibernate.eclipse/.settings/org.eclipse.jdt.core.prefs
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/.settings/org.eclipse.jdt.core.prefs
Log:
https://jira.jboss.org/jira/browse/JBIDE-3557 Externalise English Strings
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:38:33 UTC (rev 15469)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:38:33 UTC (rev 15469)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-05-23
22:09:46 UTC (rev 15468)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-05-25
04:38:33 UTC (rev 15469)
@@ -195,15 +195,21 @@
public static String NewHibernateMappingElementsSelectionPage_select;
public static String NewHibernateMappingFilePage_browse;
+ public static String NewHibernateMappingFilePage_class_name_column;
+
public static String NewHibernateMappingFilePage_class_to_map;
public static String NewHibernateMappingFilePage_container;
public static String NewHibernateMappingFilePage_file_container_must_be_specified;
public static String NewHibernateMappingFilePage_file_container_must_exist;
public static String NewHibernateMappingFilePage_file_name;
+ public static String NewHibernateMappingFilePage_file_name_column;
public static String NewHibernateMappingFilePage_file_name_must_be_specified;
public static String NewHibernateMappingFilePage_file_name_must_be_valid;
public static String NewHibernateMappingFilePage_hibernate_xml_mapping_file;
public static String NewHibernateMappingFilePage_project_must_be_writable;
+
+ public static String NewHibernateMappingFilePage_project_name_column;
+
public static String NewHibernateMappingFilePage_select_class_to_map;
public static String NewHibernateMappingFilePage_select_new_file_container;
public static String NewHibernateMappingFilePage_the_class_will_be_used_when;
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-05-23
22:09:46 UTC (rev 15468)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-05-25
04:38:33 UTC (rev 15469)
@@ -190,15 +190,18 @@
NewConfigurationWizardPage_user_name=User&name:
NewHibernateMappingElementsSelectionPage_select=Select compilation units or containers.
NewHibernateMappingFilePage_browse=Browse...
+NewHibernateMappingFilePage_class_name_column=Class name
NewHibernateMappingFilePage_class_to_map=Class to &map:
NewHibernateMappingFilePage_container=&Container:
NewHibernateMappingFilePage_file_container_must_be_specified=File container must be
specified
NewHibernateMappingFilePage_file_container_must_exist=File container must exist
NewHibernateMappingFilePage_file_name=&File name:
+NewHibernateMappingFilePage_file_name_column=File name
NewHibernateMappingFilePage_file_name_must_be_specified=File name must be specified
NewHibernateMappingFilePage_file_name_must_be_valid=File name must be valid
NewHibernateMappingFilePage_hibernate_xml_mapping_file=Hibernate XML Mapping file
NewHibernateMappingFilePage_project_must_be_writable=Project must be writable
+NewHibernateMappingFilePage_project_name_column=Project name
NewHibernateMappingFilePage_select_class_to_map=Select class to map
NewHibernateMappingFilePage_select_new_file_container=Select new file container
NewHibernateMappingFilePage_the_class_will_be_used_when=The class will be used when
generating the hbm.xml file
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:38:33 UTC (rev 15469)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:38:33 UTC (rev 15469)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:38:33 UTC (rev 15469)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2009-05-23
22:09:46 UTC (rev 15468)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2009-05-25
04:38:33 UTC (rev 15469)
@@ -420,12 +420,12 @@
@Override
public boolean visit(ParameterizedType type) {
- Assert.isNotNull(type, "Type object cannot be null");
- Assert.isNotNull(entityInfo, "EntityInfo object cannot be null");
+ Assert.isNotNull(type, "Type object cannot be null"); //$NON-NLS-1$
+ Assert.isNotNull(entityInfo, "EntityInfo object cannot be null");
//$NON-NLS-1$
ITypeBinding tb = type.resolveBinding();
- Assert.isNotNull(tb, "Type binding not resolved.");
+ Assert.isNotNull(tb, "Type binding not resolved."); //$NON-NLS-1$
rootClass = rootClasses.get(entityInfo.getFullyQualifiedName());
- Assert.isNotNull(rootClass, "RootClass not found.");
+ Assert.isNotNull(rootClass, "RootClass not found."); //$NON-NLS-1$
Value value = null;
if (ref != null && rootClasses.get(ref.fullyQualifiedName) != null){
@@ -491,7 +491,7 @@
} else if (value instanceof org.hibernate.mapping.Map){
SimpleValue map_key = new SimpleValue();
//FIXME: how to detect key-type here
- map_key.setTypeName("String");
+ map_key.setTypeName("String"); //$NON-NLS-1$
((IndexedCollection)value).setIndex(map_key);
}
prop.setCascade("none");//$NON-NLS-1$
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java 2009-05-23
22:09:46 UTC (rev 15468)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java 2009-05-25
04:38:33 UTC (rev 15469)
@@ -93,22 +93,22 @@
private void createTableColumns(Table table){
int coulmnIndex = 0;
TableColumn column = new TableColumn(table, SWT.CENTER, coulmnIndex++);
- column.setText("!");
+ column.setText("!"); //$NON-NLS-1$
column.setWidth(20);
column.setResizable(false);
//if (project_infos.keySet().size() > 1){
column = new TableColumn(table, SWT.LEFT, coulmnIndex++);
- column.setText("Project name");
+ column.setText(HibernateConsoleMessages.NewHibernateMappingFilePage_project_name_column);
column.setWidth(120);
//}
column = new TableColumn(table, SWT.LEFT, coulmnIndex++);
- column.setText("Class name");
+ column.setText(HibernateConsoleMessages.NewHibernateMappingFilePage_class_name_column);
column.setWidth(150);
column = new TableColumn(table, SWT.LEFT, coulmnIndex++);
- column.setText("File name");
+ column.setText(HibernateConsoleMessages.NewHibernateMappingFilePage_file_name_column);
column.setWidth(150);
}
@@ -143,7 +143,7 @@
public Boolean isCreate = true;
public TableLine(String projectName, String className){
- this(projectName, className, className + ".hbm.xml",true);
+ this(projectName, className, className + ".hbm.xml",true); //$NON-NLS-1$
}
public TableLine(String projectName, String className, String fileName, boolean
isCreate){
@@ -233,13 +233,13 @@
}
public Object getValue(Object element, String property) {
- if (Columns.CLASS.toString().equals(property)){//$NON-NLS-1$
+ if (Columns.CLASS.toString().equals(property)){
return ((TableLine)element).className;
- } else if (Columns.PROJECT.toString().equals(property)){//$NON-NLS-1$
+ } else if (Columns.PROJECT.toString().equals(property)){
return ((TableLine)element).projectName;
- } else if (Columns.FILE.toString().equals(property)){//$NON-NLS-1$
+ } else if (Columns.FILE.toString().equals(property)){
return ((TableLine)element).fileName;
- } else if (Columns.CREATE.toString().equals(property)){//$NON-NLS-1$
+ } else if (Columns.CREATE.toString().equals(property)){
return ((TableLine)element).isCreate;
}
return null;
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/.settings/org.eclipse.jdt.core.prefs 2009-05-23
22:09:46 UTC (rev 15468)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:38:33 UTC (rev 15469)
@@ -9,4 +9,5 @@
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
org.eclipse.jdt.core.compiler.source=1.3