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

Bug 362262

Summary: VE design tab should not call the service in the start function
Product: z_Archived Reporter: fahua jin <jinfahua>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: chenzhh, huozz, jspadea, jvincens, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description fahua jin CLA 2011-10-28 01:20:46 EDT
Build Identifier: 0.7.0.v201110272101

Create an RUIHandler, and in the start function, write several statements to call the service. If I switch to the design tab, you'll see an error message for the service invocation.

Reproducible: Always
Comment 1 Justin Spadea CLA 2011-10-28 09:25:01 EDT
This used to work. The code that prevents services from running in the design view is located in the javascriptdev plug-in, file ServicesCallStatementTemplate.java. It overrides a template in the javascript.templates.eglx.services plug-in to insert "if (egl.enableEditing !== true) {".

I would check that the template is still getting invoked.
Comment 2 Huo Zhen Zhong CLA 2011-10-30 22:59:42 EDT
Hi, Justin
Thanks, I have changed the owner to you.
Comment 3 Justin Spadea CLA 2011-10-31 14:10:40 EDT
The template for service invocations was renamed but not updated in template.properties.
Comment 4 fahua jin CLA 2011-11-04 01:42:26 EDT
Verified in 0.7.0.v201111032101.