From 5fad644ecc94506bb2f962491622b9816b3ad712 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 26 Apr 2013 15:44:56 +0800 Subject: [PATCH] IDEMPIERE-725 Implement #UIClient context variable --- org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java | 2 ++ .../WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java b/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java index a63241cb0f..b98d98e6cd 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java @@ -206,6 +206,8 @@ public final class AMenu extends CFrame treePanel.expandTree(true); // Auto Expand Tree - nmicoud IDEMPIERE 195 + Env.setContext(Env.getCtx(), "#UIClient", "swing"); + // Env.addEventListener(this); // diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java index 7b102c6fc5..cd32dde461 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java @@ -353,6 +353,8 @@ public class AdempiereWebUI extends Window implements EventListener, IWeb BrowserToken.remove(); } + Env.setContext(ctx, "#UIClient", "zk"); + Clients.response(new AuScript("zAu.cmd0.clearBusy()")); }