Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338094 - Templates: Do not propose templates if there is an expected type and the completion is on a member
Summary: Templates: Do not propose templates if there is an expected type and the comp...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Recommenders (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Henss CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 09:47 EST by Johannes Lerch CLA
Modified: 2019-07-24 14:35 EDT (History)
0 users

See Also:


Attachments

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