Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360254 - [RBD]Content assist is not giving all the types when using it on the function parameter declartion line
Summary: [RBD]Content assist is not giving all the types when using it on the function...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Xiao Bin Chen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 12:12 EDT by Jing Qian CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments
function parameter type (48.45 KB, image/png)
2011-10-13 01:41 EDT, Xiao Bin Chen CLA
no flags Details

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