Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » exeption during SaveAll shows error dialog
exeption during SaveAll shows error dialog [message #291948] Tue, 27 September 2005 13:45 Go to next message
Eclipse UserFriend
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 #291962 is a reply to message #291948] Tue, 27 September 2005 15:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

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.
Re: exeption during SaveAll shows error dialog [message #291966 is a reply to message #291962] Tue, 27 September 2005 17:33 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:Eclipse cannot find my main plugin class. Why?
Next Topic:Are there any way to overwrite the OpenFile action?
Goto Forum:
  


Current Time: Fri Oct 31 18:48:44 EDT 2025

Powered by FUDForum. Page generated in 0.03799 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top