|
From: JP <j-...@us...> - 2007-07-11 22:36:26
|
Update of /cvsroot/swixat/swixat/src/main/java/org/swixat/framework/action In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32136 Modified Files: Tag: B0_6_0 ThreadAction.java Log Message: Fix that allows threaded actions that return OutputViews (ie, actions that are launching new frames) to work correctly. Index: ThreadAction.java =================================================================== RCS file: /cvsroot/swixat/swixat/src/main/java/org/swixat/framework/action/ThreadAction.java,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** ThreadAction.java 2 Oct 2006 21:48:35 -0000 1.2 --- ThreadAction.java 11 Jul 2007 22:36:22 -0000 1.2.2.1 *************** *** 33,36 **** --- 33,37 ---- import org.apache.commons.logging.LogFactory; import org.swixat.framework.AbstractFrame; + import org.swixat.framework.OutputView; import org.swixat.util.SwiXUtil; *************** *** 207,210 **** --- 208,214 ---- try { result = action.doCommand(caller, frame, command, arg); + if (result instanceof OutputView) { + frame.viewOutput((OutputView)result); + } } finally { setThreadCommand(frame, null); |