From 462c9cca2fece170ff0fc475c670099273ccbc42 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 30 Jul 2008 08:36:32 +0000 Subject: [PATCH] * minor cleanup --- .../adempiere/webui/apps/ProcessDialog.java | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java b/zkwebui/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java index b2a556d9a9..34bb214f5b 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java @@ -265,22 +265,18 @@ public class ProcessDialog extends Window implements EventListener//, ASyncProce org.zkoss.zk.ui.Desktop desktop = ProcessDialog.this.getDesktop(); try { Executions.activate(desktop); + try { + ProcessCtl.process(null, m_WindowNo, parameterPanel, m_pi, null); + } finally{ + unlockUI(m_pi); + //release full control of desktop + Executions.deactivate(desktop); + } } catch (DesktopUnavailableException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + log.log(Level.SEVERE, e.getLocalizedMessage(), e); } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - try { - ProcessCtl.process(null, m_WindowNo, parameterPanel, m_pi, null); - } catch(Error ex){ - throw ex; - } finally{ - unlockUI(m_pi); - //release full control of desktop - Executions.deactivate(desktop); - } + log.log(Level.WARNING, e.getLocalizedMessage(), e); + } } }; new Thread(runnable).start();