Bug 65781 - [templates] Make templates available to any editor
Summary: [templates] Make templates available to any editor
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-04 14:42 EDT by John P. A. Verhaeg CLA
Modified: 2019-09-06 16:07 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 John P. A. Verhaeg CLA 2004-06-04 14:42:45 EDT
Please provide a template mechanism similar to the Java templates that would 
be available to any editor type.  It would be key that user be able to include 
template references within other template definitions.
Comment 1 Kai-Uwe Maetzel CLA 2004-06-07 03:36:45 EDT
This has already be done for text editors in general. See the java editor 
example for how to include templates in your editor.
Comment 2 John P. A. Verhaeg CLA 2004-06-07 10:31:36 EDT
Maybe I'm missing something, but what I'm looking for is some generic template 
support that would already be built in the the standard platform, and that 
would apply to any editor.  It looks like the Java example only discusses 
developing extensions to Eclipse (more specifically how some of the Java 
editor features were developed).
Comment 3 Kai-Uwe Maetzel CLA 2004-06-07 11:58:57 EDT
This is what I said. How should we have implemented templates for the default 
text editor if it would not be part of the overall platform? 

"...apply to any editor" ... you don't get templates for free. There is no way 
to do it. Editor implementers have to integrate with the provided template 
support available in the platform the same way the Ant editor, the default 
text editor, the java editors, the java example editor, etc. do.

File PRs against the individual components if you find editors that do not 
support templates the way it should be.
Comment 4 John P. A. Verhaeg CLA 2004-06-09 14:47:54 EDT
Okay, I don't mean to be a pain, but I think you're going to have to really 
spell this out for me because I'm just not getting it.  What I'm looking for, 
s a built-in preference page just like what is offered under "Java->Editor-
>Templates" that offers me a way to configure my own templates for the default 
text editor (or to whichever editor type the particular template preference 
page applies).  As far as filing a PR against the specific component that 
doesn't offer this ability, that's what I thought I was doing here.  I'm 
looking for templates for the default text editor, so Platform/Text seemed to 
be the correct component.  Please let me know if something else would be more 
appropriate.
Comment 5 Dani Megert CLA 2004-07-23 10:18:13 EDT
Kai meant you want us to provide template support for general text editors. We
do that now. However, we do not offer a generic preference page under Workbench
> Editors as we do for example for Annotations or Quick Diff.

Sounds like an interesting enhancement.
Comment 6 Stephen Kestle CLA 2005-02-01 19:33:21 EST
This would be a big plus.  We have a .htm file (formatted for table data) that
would benefit greatly from being able to specify templates (to get the default
row types).  

It's a real hassle to have to do the template in a java file and then copy it in
Comment 7 Dani Megert CLA 2007-11-06 05:03:39 EST
See also bug 69581.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:07:50 EDT
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.