Bug 516757 - [preferences][templates] Allow for Java editor templates per project
Summary: [preferences][templates] Allow for Java editor templates per project
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.7   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-16 15:33 EDT by Rüdiger Herrmann CLA
Modified: 2017-05-17 11:33 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2017-05-16 15:33:10 EDT
Currently, Java editor templates are stored per workspace. 

In order to share templates among team members and to have different templates per project, it would be desirable to have project-specific Java editor templates.

Just to give an example, the 'test' template could be adjusted to the test library used in the respective projects, i.e. TestNG vs. JUnit 3 vs. JUnit 4 vs. JUnit 5. Thus allowing users to type 'test' followed by Ctrl+Space and being presented with a test method skeleton that matches the test library used in the respective project.