Bug 66529 - [templates] create template from snippet
Summary: [templates] create template from snippet
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 251310 437743 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-10 11:53 EDT by Adam Kiezun CLA
Modified: 2016-10-13 12:41 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2004-06-10 11:53:21 EDT
3.0rc1

template creation could be simplified (in the simple case):
yesterday i decided i'd create templates for myself that do stuff like:

Set result= new HashSet();
List result= new ArrayList();
Map result= new HashMap();

in each 3 cases i had to go to the pref page and do some button clicking.
it'd be cool to just select a snippet and 
'remember as template'

i'd use templates all the time then. (i do now too - for 'for' loops and such 
but rarely create my own)
Comment 1 Adam Kiezun CLA 2005-08-25 10:10:15 EDT
any hope here?
Comment 2 Dani Megert CLA 2008-10-20 03:15:42 EDT
*** Bug 251310 has been marked as a duplicate of this bug. ***
Comment 3 Noopur Gupta CLA 2014-06-20 02:50:45 EDT
*** Bug 437743 has been marked as a duplicate of this bug. ***
Comment 4 Lars Vogel CLA 2016-08-29 16:16:08 EDT
Maybe we can offer this as a quickfix if source code is selected in the editor?
Comment 5 Dani Megert CLA 2016-10-13 12:41:54 EDT
(In reply to Lars Vogel from comment #4)
> Maybe we can offer this as a quickfix if source code is selected in the
> editor?

No. It would be a "normal" action.