Bug 95787

Summary: [5.0][1.7][content assist][templates] Provide means to specify the Java version for templates
Product: [Eclipse Project] JDT Reporter: Pascal Rapicault <pascal>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: benno.baumgartner, commer, daniel_megert, deepakazad, gautier.desaintmartinlacaze, hendrik, markus.kell.r, Olivier_Thomann
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 102747, 102839, 351856, 351864, 357408, 519028    

Description Pascal Rapicault CLA 2005-05-18 11:43:49 EDT
I20050513-1415

I started to type "for" in the editor and then hit completion. In the list of
results, I obtained foreach, which I should not get because I only have a jdk1.4
installed and my compiler compliance level is set to 1.4 as well.
Comment 1 Dani Megert CLA 2005-05-18 13:41:04 EDT
That's a template. We currently don't have the infrastructure to specify the JDK
level.
Comment 2 Dani Megert CLA 2005-06-05 08:41:57 EDT
*** Bug 98429 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2005-11-16 05:05:45 EST
*** Bug 115997 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2007-08-23 11:10:12 EDT
*** Bug 200920 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2011-07-12 10:51:44 EDT
Provide means to specify the Java version for templates.
Comment 6 Deepak Azad CLA 2012-11-14 04:02:20 EST
I don't this it is trivial to add more fields (e.g. Java version) to a 'Template'. So maybe the right/acceptable solution is to create additional contexts e.g. Java statements, Java 5 statements, Java 7 statements etc ?
Comment 7 Dani Megert CLA 2012-11-14 04:33:31 EST
(In reply to comment #6)
> I don't this it is trivial to add more fields (e.g. Java version) to a
> 'Template'. So maybe the right/acceptable solution is to create additional
> contexts e.g. Java statements, Java 5 statements, Java 7 statements etc ?

Quick answer would be "no", but I'd first have to take a closer look regarding another approach.
Comment 8 Gautier de SAINT MARTIN LACAZE CLA 2014-09-02 17:17:34 EDT
Does anyone working on this bug? I think this bug fix will be appreciated by developers. It would then be possible to unlock the other bugs and thus provide users with templates more suitable.
Comment 9 Dani Megert CLA 2014-09-02 17:24:11 EDT
(In reply to Gautier de SAINT MARTIN LACAZE from comment #8)
> Does anyone working on this bug? I think this bug fix will be appreciated by
> developers. It would then be possible to unlock the other bugs and thus
> provide users with templates more suitable.

No. Help is welcome.