[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1668) HQL/Criteria editor: when Save As is called no extension is attached automatically

Dima Geraskov (JIRA) jira-events at lists.jboss.org
Mon Feb 25 04:40:52 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1668?page=comments#action_12400444 ] 
            
Dima Geraskov commented on JBIDE-1668:
--------------------------------------

Ok, I'll bind this on Ctrl+4 keys.
This will work for java and hbm.xml files.
Algorithm is the following:
1. User selects some text in editor1.
2. presses Ctrl+4, HQL with the text opens. 
3. user modifies the text in HQL editor and presses  Save
4. selected text in editor1 is replaced with query from HQL editor.

Max, what should we do if user changes text in editor1 before he press save in HQL editor (and at the old offset other text situated - not selected before)?
possible solutions:
1. Replace text which is situated on the old place (the worst)
2. Replace selected(highlited) text (or paste it to the cursor position if selection is empty)
3. Replace all old text entries with new entry into editor1 (We can ask user whether he wants it).

I choose second solution.

> HQL/Criteria editor: when Save As is called no extension is attached automatically
> ----------------------------------------------------------------------------------
>
>                 Key: JBIDE-1668
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1668
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>            Reporter: Dima Geraskov
>         Assigned To: Dima Geraskov
>            Priority: Minor
>             Fix For: LATER
>
>
> 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)" 

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

        



More information about the jbosstools-issues mailing list