Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 417058

Summary: Require file template service
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maciej Bendkowski CLA 2013-09-12 04:22:06 EDT
Some time ago I created a license header plugin for Orion (http://maciej-bendkowski.github.io/orion-license-headers/). The plugin is implemented as an editor command. Unfortunately, this approach has obvious downsides:

1) The license header boilerplate command has to be triggered manually.
2) The header text is influenced by auto-indention.
3) The command can be triggered any time in the file life-cycle, for that reason it has to provide special logic in atypical cases.

Ideally we should have a notion of file templates attached to specific file extensions. Plugins could contribute smarter templates, and had full control over the end result. No manual triggering would be required.
Comment 1 John Arthorne CLA 2015-05-05 14:51:16 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html