* minor cleanup
This commit is contained in:
parent
472f020502
commit
462c9cca2f
|
@ -265,22 +265,18 @@ public class ProcessDialog extends Window implements EventListener//, ASyncProce
|
||||||
org.zkoss.zk.ui.Desktop desktop = ProcessDialog.this.getDesktop();
|
org.zkoss.zk.ui.Desktop desktop = ProcessDialog.this.getDesktop();
|
||||||
try {
|
try {
|
||||||
Executions.activate(desktop);
|
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) {
|
} catch (DesktopUnavailableException e) {
|
||||||
// TODO Auto-generated catch block
|
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
||||||
e.printStackTrace();
|
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// TODO Auto-generated catch block
|
log.log(Level.WARNING, e.getLocalizedMessage(), e);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
new Thread(runnable).start();
|
new Thread(runnable).start();
|
||||||
|
|
Loading…
Reference in New Issue