| 
| exeption during SaveAll shows error dialog [message #291948] | Tue, 27 September 2005 13:45  |  | 
| Eclipse User  |  |  |  |  | I'm using this action: 
 ActionFactory.SAVE_ALL.create(window);
 
 During the implementation of doSave() in the EditorPart, I rudely
 through an exception (which is part of my automated tests), in order to
 test errors during the save process.  When I do this, it always pops up
 a dialog indicating an error, which hangs my automated test suite.
 
 Is there anyway to prevent this?
 
 Thanks,
 
 Francis
 |  |  |  | 
|  | 
| 
| Re: exeption during SaveAll shows error dialog [message #291966 is a reply to message #291962] | Tue, 27 September 2005 17:33  |  | 
| Eclipse User  |  |  |  |  | Thanks, that's very handy to know. 
 Douglas Pollock wrote:
 > Francis Upton wrote:
 >
 >>During the implementation of doSave() in the EditorPart, I rudely
 >>through an exception (which is part of my automated tests), in order to
 >>test errors during the save process.  When I do this, it always pops up
 >>a dialog indicating an error, which hangs my automated test suite.
 >>
 >>Is there anyway to prevent this?
 >
 >
 > Display.post(Event) and simulate an ESC key press.  Remember that every
 > KeyDown needs to be matched by a KeyUp....
 >
 >
 > cheers,
 > d.
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03799 seconds