Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Confirmation on Sapphire.Delete
Confirmation on Sapphire.Delete [message #1137398] Mon, 14 October 2013 09:11 Go to next message
Paul Kolonay is currently offline Paul Kolonay
Messages: 16
Registered: September 2013
Junior Member
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
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
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
Paul Kolonay is currently offline Paul Kolonay
Messages: 16
Registered: September 2013
Junior Member
Thanks, that worked.
Previous Topic:@Derived service that is editable
Next Topic:A round of introductions?
Goto Forum:
  


Current Time: Wed Aug 27 11:21:25 EDT 2014

Powered by FUDForum. Page generated in 0.01713 seconds