Bug 3196

Summary: DCR - CodeAssist - code assist doesn't assist for keywords (1G0FUQF)
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P4 CC: martinae, philippe_mulet
Version: 2.0   
Target Milestone: 2.1 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Erich Gamma CLA 2001-10-10 22:51:07 EDT
EG (8/29/00 11:42:51 AM)
	in LeapFrog I could use code assist to expand keywords 
like "synchronized".
	I miss this functionality in the new code assist.

NOTES:

PM (8/29/00 10:37:52 AM)
	Keyword completions are nice to have, in the form of macros (like in 
VAJ), however I am reluctant to consider it
	as a standard completion engine inference. Indeed usually I think I 
know exactly I want a keyword pattern and not a type
	completion, and using a case insensitive code assist, a completion on 
prefix 'sync' would require to traverse the entire
	workspace looking for possible type matches.

	In LF or VAJ, completions were performed against build states, and did 
not cost as much, but now it might be quite painfull.

	Wouldn't it be more reasonable to consider doing these on a different 
shortcut ?

EG (8/30/00 12:35:41 PM)
	code assist gives me support to enter a program, so why should there be 
a different shortcut for keyword completion?
	Competitive code assist implementations provide different short cuts 
for code assist in different contexts.
	
PM (10/4/2001 10:08:28 AM)
	Current approach is that this is a pure UI issue. Note that we have the 
API to answer keywords (depending on current context).
	Will wait to close until UI declares success.
Comment 1 Martin Aeschlimann CLA 2002-02-15 11:15:55 EST
can we give this issue some life?
code assist for keywords like 'instanceof' of 'synchronized' is definitly 
helpful.
The API is there in the ICodeCompletionRequestor, but the callback is not 
called for 'for' ect.

'for' would be intresting as we can use this information as context information 
for templates.
Comment 2 Philipe Mulet CLA 2002-06-11 08:24:52 EDT
Defer
Comment 3 Philipe Mulet CLA 2003-04-02 05:55:01 EST
Reopen
Comment 4 Philipe Mulet CLA 2003-04-02 05:55:17 EST

*** This bug has been marked as a duplicate of 19063 ***