Community
Participate
Working Groups
Build Identifier: 0.7.0.v201109192102 1) Open the H10.egl in the attached project with VE. 2) Drag a button to the any empty cell of grid layout. 3) Another SimpleDiv is displayed in the top of the VE. 4) SimpleDiv will be ac-cumulatively added to the VE if adding any code changes. Click refresh button will clean the SimpleDiv. Reproducible: Always
Created attachment 204143 [details] The sample project.
This no longer seems to be happening.
This also happened, Yun Feng, please help to look at it. It may be a JS runtime problem.
This is not a bug of VE, the external type should have below "constructor": "constructor" : function() { this.eze$$DOMElement = document.createElement("div"); this.eze$$DOMElement.eze$$widget = this; this.eze$$DOMElement.style.backgroundColor="yellow"; this.eze$$DOMElement.innerHTML = "My default text values"; }, instead of below: "constructor" : function() { this.eze$$DOMElement = document.createElement("div"); this.eze$$DOMElement.style.backgroundColor="yellow"; this.eze$$DOMElement.innerHTML = "My default text values"; },
My mistake, the "constructor" should be: "constructor" : function() { this.eze$$DOMElement = egl.createElement("div"); this.eze$$DOMElement.eze$$widget = this; this.eze$$DOMElement.style.backgroundColor="yellow"; this.eze$$DOMElement.innerHTML = "My default text values"; },
The updated version of JS file, egl.defineClass("org.eclipse.samplewidget", "SimpleDiv", 'eglx.ui.rui', 'Widget', { "constructor" : function() { this.eze$$DOMElement = egl.createElement("div"); this.eze$$DOMElement.eze$$widget = this; this.eze$$DOMElement.style.backgroundColor="yellow"; this.eze$$DOMElement.innerHTML = "My default text values"; }, "getMyText" : function() { return this.eze$$DOMElement.innerHTML; }, "setMyText" : function(s) { this.eze$$DOMElement.innerHTML = s; } }); Verified in 0.7.0.v201110272101.