Author: vyemialyanchyk
Date: 2010-12-28 13:41:56 -0500 (Tue, 28 Dec 2010)
New Revision: 27781
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCompletionProcessor.java
Log:
https://issues.jboss.org/browse/JBIDE-7991 - fixed
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCompletionProcessor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCompletionProcessor.java 2010-12-28
18:30:51 UTC (rev 27780)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCompletionProcessor.java 2010-12-28
18:41:56 UTC (rev 27781)
@@ -135,7 +135,10 @@
Configuration configuration =
consoleConfiguration!=null?consoleConfiguration.getConfiguration():null;
IHQLCodeAssist hqlEval = new HQLCodeAssist(configuration);
EclipseHQLCompletionRequestor eclipseHQLCompletionCollector = new
EclipseHQLCompletionRequestor();
- hqlEval.codeComplete(doc.get(), currentOffset, eclipseHQLCompletionCollector);
+ String query = doc.get();
+ // workaround to fix JBIDE-7991
+ query = query.replace('\t', ' ');
+ hqlEval.codeComplete(query, currentOffset, eclipseHQLCompletionCollector);
proposalList.addAll(eclipseHQLCompletionCollector.getCompletionProposals());
errorMessage = eclipseHQLCompletionCollector.getLastErrorMessage();