Author: vyemialyanchyk
Date: 2009-04-29 10:43:40 -0400 (Wed, 29 Apr 2009)
New Revision: 14960
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4239 - open HQL Editor instead of Hibernate Query
result view
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java 2009-04-29
14:25:19 UTC (rev 14959)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java 2009-04-29
14:43:40 UTC (rev 14960)
@@ -164,6 +164,12 @@
ConsoleConfiguration consoleConfiguration = node.getConsoleConfiguration();
if(consoleConfiguration.isSessionFactoryCreated() ) {
String hql = node.getHQL();
+ // open HQL Editor
+ HibernateConsolePlugin.getDefault().openScratchHQLEditor(
+ consoleConfiguration == null ? null : consoleConfiguration.getName(), hql);
+ /** /
+ // execute query and show results in
+ // Hibernate Query result view - commented cause old version
if(StringHelper.isNotEmpty( hql )) {
try {
if (getSite() != null && getSite().getPage() != null) {
@@ -174,6 +180,7 @@
}
consoleConfiguration.executeHQLQuery( hql );
}
+ /**/
}
} else if (selection instanceof TreeSelection){
TreePath[] paths = ((TreeSelection)selection).getPaths();