Bug 37312 - [code templates] ${cursor} missing in Code and Comments
Summary: [code templates] ${cursor} missing in Code and Comments
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 69435 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-07 05:17 EDT by MH CLA
Modified: 2010-06-08 02:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MH CLA 2003-05-07 05:17:56 EDT
In Preferences > Java > Editor > Templates you can set the place where the 
cursor appears after insertion of the template via

${cursor}

This is missing in In Preferences > Java > Code Generation !
Comment 1 Martin Aeschlimann CLA 2003-05-12 06:42:30 EDT
$cursor would make sense when using 'Add Javadoc comment', but there are many
use cases of 'code templates' where it doesn't: Create type uses file comment,
type comment and sometimes method comment and bodyt together. Same with
'Override method' and Quick fix.

It a good that I'll keep in mind.
Where would you like to use the $cursor?
Comment 2 MH CLA 2003-05-12 06:49:46 EDT
of course, ${cursor} would just be an optional tag you can add. i have code 
templates that also include javadoc comments. e.g. i have a code template for a 
method. as soon as the template is expanded, i want to write the javadoc 
comment for it, so i need the ${cursor}. i can't find a reason why not offer it 
as in Preferences > Java > Editor > Templates. your mentioned cases still keep 
being valid as ${cursor} is just an optional tag the user can use if he wants 
to. ;-)
Comment 3 Eclipse Webmaster CLA 2009-08-30 02:42:17 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 4 Dani Megert CLA 2010-06-07 10:06:31 EDT
See also bug 69435.
Comment 5 Dani Megert CLA 2010-06-07 10:07:19 EDT
*** Bug 69435 has been marked as a duplicate of this bug. ***