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

Bug 338094

Summary: Templates: Do not propose templates if there is an expected type and the completion is on a member
Product: z_Archived Reporter: Johannes Lerch <lerch>
Component: RecommendersAssignee: Stefan Henss <stefan.henss>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Johannes Lerch CLA 2011-02-24 09:47:55 EST
As discussed in Bug 337368 no template proposals should be made if there is an expected type and we are doing completion on a member. Manual tests show that this is not fixed yet. (Tested in CompletionOnReturn in fixture project org.eclipse.recommenders.tests.fixtures.rcp.codecompletion.templates)

For example no template proposals should be done in these cases:
 Button b = new Button(null, 0);
 return b.<^Space>;
 
 Button b = new Button(null, 0);
 String s = b.<^Space>
Comment 1 Stefan Henss CLA 2011-02-25 01:44:25 EST
This bug should be fixed in the latest version of the templates branch.
Comment 2 Marcel Bruch CLA 2012-02-02 01:41:28 EST
Closing this issue. Please give latest dev build (v0.5) a try:

http://download.eclipse.org/recommenders/updates/dev/e37/
http://download.eclipse.org/recommenders/updates/dev/e42/
Comment 3 Marcel Bruch CLA 2012-02-02 01:41:52 EST
Closing this issue. Please give latest dev build (v0.5) a try:

http://download.eclipse.org/recommenders/updates/dev/e37/
http://download.eclipse.org/recommenders/updates/dev/e42/