Bug 95787 - [5.0][1.7][content assist][templates] Provide means to specify the Java version for templates
Summary: [5.0][1.7][content assist][templates] Provide means to specify the Java versi...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 115997 (view as bug list)
Depends on:
Blocks: 102747 102839 351856 351864 357408 519028
  Show dependency tree
 
Reported: 2005-05-18 11:43 EDT by Pascal Rapicault CLA
Modified: 2017-11-10 05:33 EST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.