From: nakyoung2.choi Date: Tue, 27 May 2014 02:52:46 +0000 (+0900) Subject: UIB : Fix initializing index.html. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F21729%2F1;p=sdk%2Fide%2Fweb-ui-builder-eplugin.git UIB : Fix initializing index.html. Remove managed.css when index.html loading time. Change-Id: I211062583031fbb3f3d137ac9c51c30e9030bfdf Signed-off-by: nakyoung2.choi --- diff --git a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/app/AppManagerForHTML.java b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/app/AppManagerForHTML.java index 3832fee..5fb4a9e 100644 --- a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/app/AppManagerForHTML.java +++ b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/app/AppManagerForHTML.java @@ -597,6 +597,16 @@ public class AppManagerForHTML extends AppManager { newElm.setAttribute("src", "./tizen-ui-builder-tool/res/html/ground.js"); head.appendChild(newElm); + elemList = head.getChildNodes(); + for (int i = elemList.getLength(); i >= 0; i--) { + Node childNode = elemList.item(i); + if (childNode instanceof Element) { + if (childNode.getNodeName().equals("link")) { + head.removeChild(childNode); + } + } + } + Element newElm2 = editDoc.createElement("style"); newElm2.setAttribute("type", "text/css"); newElm2.setAttribute("id", "page_style");