Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368910 - Content assist for certain cases do not work when define a variable in if/try block
Summary: Content assist for certain cases do not work when define a variable in if/try...
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: 2012-01-18 01:57 EST by fahua jin CLA
Modified: 2017-02-23 14:19 EST (History)
3 users (show)

See Also:


Attachments
The sample project. (13.01 KB, application/x-zip)
2012-01-18 01:58 EST, fahua jin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fahua jin CLA 2012-01-18 01:57:23 EST
Build Identifier: 0.8.0.v201201162102

1) Set up the attached project.
2) Refer to below code fragment, in the 1st line of main body, type 'test ' (a space after 'test', then invoke the content assist, the record definition in the project can be displayed.
3) Repeat the same operation in the if block, the content assist does not work.

	function main()
		
		if(true)
			 
		end
	end

Reproducible: Always
Comment 1 fahua jin CLA 2012-01-18 01:58:21 EST
Created attachment 209659 [details]
The sample project.
Comment 2 Xiao Bin Chen CLA 2012-01-18 02:17:41 EST
Not include in RBD, We need to add a new proposal for 

1>if()
xx
else
xx
end

2>
try
xx

catch

3>
while
xxx


I think there maybe more statement block can't work for types proposal.
Comment 3 Xiao Bin Chen CLA 2012-01-19 00:02:36 EST
Fixed.

add support for:
IFStatement
WhileStatement
trystatement
forStatement
caseStatement
Comment 4 fahua jin CLA 2012-01-19 21:02:03 EST
Verified in 0.8.0.v201201190938.