Author: vyemialyanchyk
Date: 2009-02-06 11:59:28 -0500 (Fri, 06 Feb 2009)
New Revision: 13520
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.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java
Log:
externalize english strings small fix
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-02-06
16:54:21 UTC (rev 13519)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-02-06
16:59:28 UTC (rev 13520)
@@ -461,6 +461,7 @@
public static String ConsoleConfigurationMainTab_project_must_be_jpa;
public static String ConsoleConfigurationMainTab_cp_not_specified;
public static String ConsoleConfigurationMainTab_project_must_be_set;
+ public static String ConsoleConfigurationMainTab_mode_must_be_used;
public static String ConsoleConfigurationMappingsTab_add_hbm_xml_file;
public static String ConsoleConfigurationMappingsTab_add_hibernate_mapping_file;
public static String ConsoleConfigurationMappingsTab_additional_mapping_files;
@@ -507,6 +508,7 @@
public static String GeneralExceptionStatusHandler_generating_code;
public static String PathHelper_does_not_exist;
public static String PathHelper_has_invalid_variable_references;
+ public static String PathHelper_not_directory;
public static String PathHelper_has_to_be_folder_or_project;
public static String PathHelper_project_for_is_closed;
//
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-02-06
16:54:21 UTC (rev 13519)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-02-06
16:59:28 UTC (rev 13520)
@@ -452,6 +452,7 @@
ConsoleConfigurationMainTab_project_must_be_jpa=Project ''{0}'' must be a
JPA project
ConsoleConfigurationMainTab_cp_not_specified=Connection profile for project
''{0}'' not specified
ConsoleConfigurationMainTab_project_must_be_set=Project must be set to JPA project
+ConsoleConfigurationMainTab_mode_must_be_used={0} mode must be used for jpa project
configured connection
ConsoleConfigurationMappingsTab_add_hbm_xml_file=Add hbm.xml file
ConsoleConfigurationMappingsTab_add_hibernate_mapping_file=Add a Hibernate Mapping file
ConsoleConfigurationMappingsTab_additional_mapping_files=Additonal mapping files (not
listed in cfg.xml)
@@ -498,6 +499,7 @@
GeneralExceptionStatusHandler_exception_while_generating_code=Exception while generating
code
GeneralExceptionStatusHandler_generating_code=Generating code
PathHelper_does_not_exist={0} does not exist [{1}]
+PathHelper_not_directory=The path {0} is not a directory
PathHelper_has_invalid_variable_references={0} has invalid variable references [{1}]
PathHelper_has_to_be_folder_or_project={0} has to be a folder or project [{1}]
PathHelper_project_for_is_closed=Project for {0} is closed [{1}]
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java 2009-02-06
16:54:21 UTC (rev 13519)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java 2009-02-06
16:59:28 UTC (rev 13520)
@@ -401,7 +401,7 @@
return false;
}
JpaDataSource ds = jpaProject.getDataSource();
- if (ds == null || "".equals(ds.getConnectionProfileName())){
+ if (ds == null || "".equals(ds.getConnectionProfileName())){ //$NON-NLS-1$
setErrorMessage(NLS.bind(HibernateConsoleMessages.ConsoleConfigurationMainTab_cp_not_specified,
getProjectName()));
return false;
}
@@ -415,7 +415,7 @@
if (ConnectionProfileCtrl.JPA_CONNECTIN_NAME.equals(cpName)){
if (!jpaMode.getSelection()){
- String out = NLS.bind("{0} mode must be used for jpa project configured
connection", jpaMode.getText());
+ String out =
NLS.bind(HibernateConsoleMessages.ConsoleConfigurationMainTab_mode_must_be_used,
jpaMode.getText());
setErrorMessage(out);
return false;
}
Show replies by date