Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339065 - Move final location of cursor in generated [for/], [if/] and so on
Summary: Move final location of cursor in generated [for/], [if/] and so on
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 enhancement
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 04:43 EST by Stéphane Thibaudeau CLA
Modified: 2011-04-26 08:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Thibaudeau CLA 2011-03-07 04:43:40 EST
When using autocompletion to generate a [for/] construct for example, the generated code looks like the following :

[for (it : Type | expression)]
		
[/for]

Using the "TAB" key several times, one can highlight the iteration variable name, then its type, then the expression and finally the cursor is placed right after the "[/for]" statement.

It would be useful if the last location of cursor were inside the [for/] statement. One could then start to type the statement without having to move the cursor there.

[for (it : Type | expression)]
	{final location}
[/for]

Same enhancement stands for other statements : [if/], [let/], [template/], [query/] and so on.
Comment 1 Stephane Begaudeau CLA 2011-04-26 08:30:22 EDT
Some changes have been made to improve the available locations for the cursor with tabulation for:
- let
- if
- for
- file
- template

The fix has been contributed on HEAD, it will be available in Acceleo 3.1.0 M7.