Skip to main content



      Home
Home » Archived » Sapphire » Confirmation on Sapphire.Delete
Confirmation on Sapphire.Delete [message #1137398] Mon, 14 October 2013 09:11 Go to next message
Eclipse UserFriend
Is it possible to generate a confirmation dialog on the Sapphire.Delete action? I tried putting a MessageBox creation in a handler but got an 'Invalid thread access' exception.

I read through a thread in sapphire-dev list (http://dev.eclipse.org/mhonarc/lists/sapphire-dev/msg00729.html) that suggests this is a bad idea in general for a ui...

In spite of this I would still like to know if there is an option that would allow this behavior.
Re: Confirmation on Sapphire.Delete [message #1137512 is a reply to message #1137398] Mon, 14 October 2013 10:46 Go to previous messageGo to next message
Eclipse UserFriend
To solve the invalid thread access exception, you need to use the syncExec( Runnable ) method on the Display object. You can get the Display object through the context object in your action handler.
Re: Confirmation on Sapphire.Delete [message #1137763 is a reply to message #1137512] Mon, 14 October 2013 14:25 Go to previous message
Eclipse UserFriend
Thanks, that worked.
Previous Topic:@Derived service that is editable
Next Topic:A round of introductions?
Goto Forum:
  


Current Time: Sat Jul 19 02:25:55 EDT 2025

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

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

Back to the top