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

Bug 360254

Summary: [RBD]Content assist is not giving all the types when using it on the function parameter declartion line
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Xiao Bin Chen <xiaobinc>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
function parameter type none

Description Jing Qian CLA 2011-10-07 12:12:51 EDT
If I type the following inside a function, content assist gives me the choices for InvalidArgumentException as I type inv ==> content assit

  x InvalidArgumentException;

but If I do the same on delcaring the parameter, like the following

function abc (x InvalidArgumentException in)

after I type x inv ==> content assit, it does not give me InvalidArgumentException as a choice.
Comment 1 Xiao Bin Chen CLA 2011-10-13 01:41:07 EDT
Created attachment 205082 [details]
function parameter type
Comment 2 Xiao Bin Chen CLA 2011-10-13 01:41:49 EDT
Hi Jing:
   Maybe Type in function parameters is tiny different from variable definition.

I have check in RBD

x NullValueException;
function abc(x n<invoke CA here> )

and NullValueException is not in the dialog.
Comment 3 Jing Qian CLA 2011-10-13 10:19:16 EDT
despite the fact that this seems to have the same issue as RBD, do you know what's the underline cause for this?  Why is it not showing for EDT?

I thought CA has been redesigned to fit EDT model that things are no longer hard coded and is better than RBD.
Comment 4 Xiao Bin Chen CLA 2011-10-14 02:15:18 EDT
Hi, Jing:

The underly reason for this issue is Type proposals for function parameter will include Exception type and ruiWidget/ruihandler part type.

I did not find the original reason for WHY NOT LIST THOSE PART in RBD. But If the Type can appear in the function parameter type position,  It will not be a ERROR FOR CONTENT ASSIST to show those type there.

We may be need to track this for RBD, So I add a RBD tag in prefix for this defect.
Comment 5 Xiao Bin Chen CLA 2011-10-14 02:39:08 EDT
fixed.
Comment 6 Jing Qian CLA 2011-11-11 12:36:47 EST
verified on 2011/11/11/0901's build