Summary: | [templates] Add a template variable ${selection} and allow Surround With action to deal consider it | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Sandip Chitale <sandipchitale> |
Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | CC: | daniel_megert, mussbach, sandipchitale |
Version: | 3.4 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Sandip Chitale
2008-08-31 13:04:34 EDT
Come to thik of it this is not JDT specific. The ${selection} template variable should be supported in all text editors. >In fact why is Surround with... action limited to templates containing
>${line_selection} only? Why not ${word_selection}?
Because 'Surround With' is currently only implemented for the Java editor where it makes sense to only surround blocks/lines.
Can give some concrete use cases where this addition would be useful?
Note that you can add that on top of Eclipse by declaring the template variable resolver in your own plug-in.
You could then contribute this back to the Eclipse project by attaching a patch
here.
I would absolutely undeline the need of such a Variable! It would be great to have the possibility to copy a Variable and use in in a template. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |