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

Bug 368910

Summary: Content assist for certain cases do not work when define a variable in if/try block
Product: z_Archived Reporter: fahua jin <jinfahua>
Component: EDTAssignee: Xiao Bin Chen <xiaobinc>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, smythew, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The sample project. none

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.