Author: vyemialyanchyk
Date: 2011-01-05 11:12:31 -0500 (Wed, 05 Jan 2011)
New Revision: 27917
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java
Log:
https://issues.jboss.org/browse/JBIDE-8027 - correct message in case of null execution
context, fixed
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java 2011-01-05
15:55:28 UTC (rev 27916)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java 2011-01-05
16:12:31 UTC (rev 27917)
@@ -539,7 +539,7 @@
return file;
}
final ConsoleConfiguration cc2 = consoleConfig;
- List<String> documentPaths =
(List<String>)consoleConfig.getExecutionContext().execute(new
ExecutionContext.Command() {
+ List<String> documentPaths = (List<String>)consoleConfig.execute(new
ExecutionContext.Command() {
public Object execute() {
return OpenMappingUtilsEjb3.enumDocuments(cc2);
}
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java 2011-01-05
15:55:28 UTC (rev 27916)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java 2011-01-05
16:12:31 UTC (rev 27917)
@@ -104,7 +104,7 @@
protected void readDatabaseSchema(final IProgressMonitor monitor, final
DefaultDatabaseCollector db, ConsoleConfiguration consoleConfiguration, final
ReverseEngineeringStrategy strategy) {
final Configuration configuration = consoleConfiguration.buildWith(null, false);
- consoleConfiguration.getExecutionContext().execute(new ExecutionContext.Command() {
+ consoleConfiguration.execute(new ExecutionContext.Command() {
public Object execute() {
Settings settings = configuration.buildSettings();