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

Bug 356890

Summary: date type declaration will cause VE doesn't work
Product: z_Archived Reporter: Xin Wu <cdlwuxin>
Component: EDTAssignee: Huang Ji Yong <hjiyong>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cdlwuxin, chenzhh, greer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Xin Wu CLA 2011-09-07 03:39:25 EDT
Build Identifier: 20110907 nightly build

When add a declaration to RUI handler, the visual editor design view doesn't show anything.

Reproducible: Always

Steps to Reproduce:
1. Create a RUI handler
2. Drag & Drop a button to gridlayout
3. Switch to source view, move the button code before gridlayout code(this was a bug). 
4. Back to design view, the VE works well
5. Switch to source view ana add code "d date;" to declare a date variable.
6. Back to design view, the VE doesn't work.
Comment 1 Huo Zhen Zhong CLA 2011-09-08 01:54:53 EDT
This is caused by JS Generator problem:


Could not render UI
TypeError: Cannot call method 'currentDate' of undefined at [object Object].eze$$setInitial (H2.js:47:50) at new (H2.js:5:9) at [object Object].eze$$thisClass (egl.js:800:27) at H2.html?contextKey=13:77:22 at Function.eze$$loadScripts (H2.html?contextKey=13:53:3) at H2.html?contextKey=13:51:43 at HTMLScriptElement. (H2.html?contextKey=13:39:4)

Cannot call method 'currentDate' of undefined
[CRRUI2094E] Here are the EGL function calls leading to this error:

    Widget.Widget.getStyle() [native JavaScript]
    Widget.Widget.setDisplayStyle() [native JavaScript]

Uncaught TypeError: Cannot call method 'currentDate' of undefined
Test/com/H2.html?contextKey=13:95
[CRRUI2095E] Could not find the EGL function calls leading to this error
Comment 2 Scott Greer CLA 2011-09-19 14:50:13 EDT
Fixed.
Comment 3 Xin Wu CLA 2011-09-30 01:56:57 EDT
verified in 20110929