Author: vyemialyanchyk
Date: 2010-10-01 10:01:23 -0400 (Fri, 01 Oct 2010)
New Revision: 25395
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java
Log:
https://jira.jboss.org/browse/JBIDE-7228 - fix updated
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java 2010-10-01
13:54:34 UTC (rev 25394)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java 2010-10-01
14:01:23 UTC (rev 25395)
@@ -814,9 +814,12 @@
}
}
str = ef.getProperties().get(ExporterFactoryStrings.QUERY_STRING);
- if (str != null && str.length() == 0) {
- msg =
NLS.bind(HibernateConsoleMessages.ExporterSettingsTab_query_should_have_not_empty_value,
ef.getExporterDefinition().getDescription());
- break;
+ if (str != null) {
+ str = str.trim();
+ if (str.length() == 0) {
+ msg =
NLS.bind(HibernateConsoleMessages.ExporterSettingsTab_query_should_have_not_empty_value,
ef.getExporterDefinition().getDescription());
+ break;
+ }
}
}
updateStatus(msg);