Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353347 - initialUI not captured in IRs
Summary: initialUI not captured in IRs
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 352125
  Show dependency tree
 
Reported: 2011-07-28 13:12 EDT by Scott Greer CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

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