[
http://jira.jboss.com/jira/browse/JBIDE-1424?page=comments#action_12391994 ]
Dima Geraskov commented on JBIDE-1424:
--------------------------------------
5) To add CodeAssist to HQL Editor used class
org.hibernate.tool.ide.completion.HQLCodeAssist from hibernate-tools.jar
it in his order uses org.hibernate.tool.ide.completion.ConfigurationCompletion and
it's method
public void getMatchingImports(String prefix, int cursorPosition, IHQLCompletionRequestor
collector) {
Iterator iterator = cfg.getImports().entrySet().iterator();
while ( iterator.hasNext() ) {
Map.Entry entry = (Entry) iterator.next();
String entityImport = (String) entry.getKey();
String entityName = (String) entry.getValue();
if(entityImport.startsWith(prefix)) { //should be
something like this (*)
//create proposal
}
}
}
(*) entityImport.toLowerCase().startsWith(prefix.toLowerCase())
So we need to write our subclasses of HQLCodeAssist and ConfigurationComplition to fix
the problem.
HQL/Criteria editor: improvements issues
----------------------------------------
Key: JBIDE-1424
URL:
http://jira.jboss.com/jira/browse/JBIDE-1424
Project: JBoss Tools
Issue Type: Feature Request
Components: Hibernate
Affects Versions: 2.0.0.GA
Reporter: Alexander Chabatar
Assigned To: Dima Geraskov
Priority: Minor
Fix For: LATER
1) if call HQL/Criteria editor on entity (also true for all child nodes of Console
configuration) - console configuration is not selected automatically in the combobox.
2) generate starting point like "from Customer"... if it was called from
Customer entity or corresponding database table.
from Max: "double click did this at some point - seem to have been lost."
3) Run button is always enabled (even if no configuration is selected) - should be
disabled also in case of empty query
4) when Save As is called no extension (hql?) is attached automatically -> will be not
possible to easy reopen this file. Save doesn't work if "Save As" was not
called first.
from Max: "minor thing - but the best thing was that save as actually saved it back
to where the query came from (e.g. hbm.xml or java code)"
5) Code assist should be case-insensitive like in Java
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira