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

Bug 355687

Summary: Generation error with widgets
Product: z_Archived Reporter: Huo Zhen Zhong <huozz>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: greer, jinfahua
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Huo Zhen Zhong CLA 2011-08-24 06:47:40 EDT
Build Identifier: 2011-08-24

New a RUI handler, dnd the widget from Palette, most widgets has generation errors. For example, the Button error shows below:

Uncaught SyntaxError: Unexpected string
Test/org/eclipse/edt/rui/widgets/Button.js:137
[CRRUI2094E] Here are the EGL function calls leading to this error:

    Internal error while defining RUIHandler com.ibm.TestHandler() [native JavaScript]

Could not render UI
TypeError: Cannot read property 'eclipse' of undefined at [object Object].eze$$setInitial (TestHandler.js:18:30) at new (TestHandler.js:5:9) at [object Object].eze$$thisClass (egl.js:800:27) at TestHandler.html?contextKey=5:75:22 at Function.eze$$loadScripts (TestHandler.html?contextKey=5:51:3) at TestHandler.html?contextKey=5:49:43 at HTMLScriptElement. (TestHandler.html?contextKey=5:37:4)

Cannot read property 'eclipse' of undefined
[CRRUI2094E] Here are the EGL function calls leading to this error:

    Person.<init>() [native JavaScript]
    com/ibm/TestHandler.egl() at line 13
    TestHandler.<init>() [native JavaScript]

Uncaught TypeError: Cannot read property 'eclipse' of undefined
Test/com/ibm/TestHandler.html?contextKey=5:93
[CRRUI2095E] Could not find the EGL function calls leading to this error

Reproducible: Always
Comment 1 Scott Greer CLA 2011-08-24 22:38:08 EDT
Button and other widgets were generating correctly before all the language changes; I've spent the last two days working methodically through the problems in JavaScript gen and am now able to gen & execute the old FVT tests again.  This will enable me to focus on this and other problems related to the widgets in the coming days....
Comment 2 Huo Zhen Zhong CLA 2011-08-24 23:23:35 EDT
Hi, Scott

Glade to hear the progress. Now we need the GridLayout, Button, inputText to go through a simple test. Could you focus on the three widgets and commit asap? Thanks
Comment 3 Scott Greer CLA 2011-09-11 13:04:51 EDT
Tony,

Since this bug is a little old and not very specific, I'm going to mark it resolved.  Please open specific bugs if there are still problems....thanks!
Comment 4 Huo Zhen Zhong CLA 2011-09-30 02:20:10 EDT
verified in 201109292101
Comment 5 Huo Zhen Zhong CLA 2011-09-30 02:20:33 EDT
close