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) {