[jbosstools-commits] JBoss Tools SVN: r6691 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Mar 5 09:21:17 EST 2008


Author: dgeraskov
Date: 2008-03-05 09:21:17 -0500 (Wed, 05 Mar 2008)
New Revision: 6691

Modified:
   trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/AbstractQueryEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1667

Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/AbstractQueryEditor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/AbstractQueryEditor.java	2008-03-05 13:27:11 UTC (rev 6690)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/AbstractQueryEditor.java	2008-03-05 14:21:17 UTC (rev 6691)
@@ -82,12 +82,14 @@
 	}
 	
 	protected void updateExecButton(){
-		if (getSourceViewer() != null ){
+		/*if (getSourceViewer() != null ){
 			execAction.setEnabled(getConsoleConfigurationName().trim().length() != 0 
 					&& getSourceViewer().getDocument().get().trim().length() > 0);
 		} else {
 			execAction.setEnabled(false);
-		}
+		}*/
+		execAction.setEnabled(getQueryString().trim().length() > 0
+				&& getConsoleConfigurationName().length() != 0);
 	}
 
 	public void showEditorInput(IEditorInput editorInput) {




More information about the jbosstools-commits mailing list