From cb87c7eb8bdcdce29eff81ee4ffc1566d9a940ee Mon Sep 17 00:00:00 2001 From: richie Date: Thu, 28 Mar 2019 12:46:29 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-445=20=E9=98=B2=E6=AD=A2=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=B7=BB=E5=8A=A0jXBrowser=E7=9A=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/actions/help/FineUIAction.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/actions/help/FineUIAction.java b/designer-base/src/main/java/com/fr/design/actions/help/FineUIAction.java index 39008ee14..4b09de856 100644 --- a/designer-base/src/main/java/com/fr/design/actions/help/FineUIAction.java +++ b/designer-base/src/main/java/com/fr/design/actions/help/FineUIAction.java @@ -11,9 +11,6 @@ import com.fr.web.struct.Atom; import com.fr.web.struct.browser.RequestClient; import com.fr.web.struct.category.ScriptPath; import com.fr.web.struct.impl.FineUI; -import com.teamdev.jxbrowser.chromium.JSValue; -import com.teamdev.jxbrowser.chromium.events.ScriptContextAdapter; -import com.teamdev.jxbrowser.chromium.events.ScriptContextEvent; import java.awt.event.ActionEvent; @@ -31,13 +28,13 @@ public class FineUIAction extends UpdateAction { @Override public void actionPerformed(final ActionEvent e) { ModernUIPane pane = new ModernUIPane.Builder<>() - .prepare(new ScriptContextAdapter() { - @Override - public void onScriptContextCreated(ScriptContextEvent event) { - JSValue pool = event.getBrowser().executeJavaScriptAndReturnValue("window.Pool"); - pool.asObject().setProperty("i18n", new I18n()); - } - }) +// .prepare(new ScriptContextAdapter() { +// @Override +// public void onScriptContextCreated(ScriptContextEvent event) { +// JSValue pool = event.getBrowser().executeJavaScriptAndReturnValue("window.Pool"); +// pool.asObject().setProperty("i18n", new I18n()); +// } +// }) .withComponent(new AssembleComponent() { @Override