[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Stuck on transferring control between AppWin() in SWT

I am stuck here and could use some suggestions on how to solve this.  Here
is the senario:

AppWinMain (ApplicationWindow) displays a table and scans through it
looking for errors.  An error is found, AppWinFix is intantiated with the
data from TableItem in error.  

User fixes data in error.

How to return the data to AppWinMain?

AppWinFix has get methods to get the corrections.  If AppWinFix is closed
after error are corrected then the Widget does not exist so the fix is
lost and AppWinMain can use AppWinFix.get() to get corrections.

If AppWinFix fix is not closed the control does not return to AppWinMain
and the application hangs after the first error is encountered and fixed.

What I would like to do is suspend AppWinFix so control returns to
AppWinMain, then AppWinMain can call AppWinFix.get().  Futher next time
through the data can be refreshed and the shell redrawn instead of
creating a new object.

I have tried setVisible(false) and setActive(parentShell[of AppWinMain]. 
Doesn't work.  close() kills AppWinFix.  

I don't know what else to try.

Any suggestions?

Thank you