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

Bug 353347

Summary: initialUI not captured in IRs
Product: z_Archived Reporter: Scott Greer <greer>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 352125    

Description Scott Greer CLA 2011-07-28 13:12:23 EDT
The RUIWidget annotation defines an initialUI field declaration;  the problem is that this never shows up in the IR.   

This is a small testcase that illustrates the problem (I'm intentionally assigning initialUI to be an empty array to avoid dependencies on other widgets in this testcase).

package FVT.primitives;

handler InitialUI type RUIHandler {
		onConstructionFunction =  myStartupFunction,
		handleHardIOErrors = no, 
		throwNRFEOFExceptions = yes
		,initialUI = 
		[  
		]
	 }

	function myStartupFunction()
	end
end
Comment 1 Paul Harmon CLA 2011-07-28 15:47:43 EDT
I have added a new field to StructPart (initializerStatements). This is needed to handle initialization of fields inherited from the defaultSuperType (in this case, initialUI).

I have updated the following files for this:

edtCompiler.eglar
EGL2MofPart
StructPart
StructPartImpl
ProxyPart
egl.mofar

org.eclipse.edt.mof.egl.Structure.egl
Comment 2 Scott Greer CLA 2011-07-30 14:20:22 EDT
Verified fix.