Author: dgeraskov
Date: 2012-02-15 10:51:46 -0500 (Wed, 15 Feb 2012)
New Revision: 38760
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
https://issues.jboss.org/browse/JBIDE-10913
Make execute and reset methods synchronized
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2012-02-15
14:37:20 UTC (rev 38759)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2012-02-15
15:51:46 UTC (rev 38760)
@@ -102,7 +102,7 @@
return prefs.getName();
}
- public Object execute(Command c) {
+ public synchronized Object execute(Command c) {
if (executionContext != null) {
return executionContext.execute(c);
}
@@ -116,7 +116,7 @@
* Reset configuration, session factory, class loader and execution context.
*
*/
- public boolean reset() {
+ public synchronized boolean reset() {
boolean resetted = false;
// resetting state
if (getHibernateExtension() != null ) {