Bug 21942 - Template - allow to insert clipboard contents to ${cursor}
Summary: Template - allow to insert clipboard contents to ${cursor}
Status: RESOLVED DUPLICATE of bug 198886
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-26 08:57 EDT by Philipe Mulet CLA
Modified: 2008-09-01 03:03 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 Philipe Mulet CLA 2002-07-26 08:57:34 EDT
Build 2.0

When using templates, it would be a nice improvement for quick code writing to 
be able to automatically paste the clipboard contents into the template.

Alternatively, a ${clipboard} variable could be defined, but would be less 
practical since it would require to duplicate all templates. 

Maybe this could be an option ? Note that if the clipboard content is inserted, 
it should be selected, so I can get rid of it easily.
Comment 1 Dirk Baeumer CLA 2002-07-26 11:11:36 EDT
Can you clarify this a little bit more. Why do you prefer Ctrl+Space selecting 
entry "clipboard" over "Ctrl+V" or Ctrl+Ins. Is the reason that template code 
gets formatted ?
Comment 2 Philipe Mulet CLA 2002-07-29 11:47:37 EDT
Yes exactly. But I guess the template+ctrl-V is acceptable (just more 
keystrokes).

Comment 3 Claude Knaus CLA 2002-09-02 04:50:36 EDT
Isn't this a very rare use case? Why do you have the code which you want to 
appear at ${cursor} in the clipboard in the first place? Note that there's the 
new feature allowing to wrap a selection with a template. Does that solve your 
problem?
Comment 4 Claude Knaus CLA 2002-09-12 10:45:00 EDT
I could write a Template variable which would resolve itself to the clipboard 
contents. I still don't understand when you would want to use it though.

I certainly don't want to duplicate templates. Right now, ${cursor} is already
overloaded with the selection if there is any. If there are more cases where 
reassigning variables to other variables is useful, I will consider adding such
a feature.
Comment 5 Kai-Uwe Maetzel CLA 2003-01-13 12:16:19 EST
"Unassign" PRs because of changes in staffing
Comment 6 Kai-Uwe Maetzel CLA 2003-01-15 11:44:59 EST
Will not be implemented.
Comment 7 Dani Megert CLA 2008-09-01 03:03:50 EDT

*** This bug has been marked as a duplicate of bug 198886 ***