Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339065

Summary: Move final location of cursor in generated [for/], [if/] and so on
Product: [Modeling] Acceleo Reporter: Stéphane Thibaudeau <stephane.thibaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.