Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Confirmation on Sapphire.Delete
Confirmation on Sapphire.Delete [message #1137398] Mon, 14 October 2013 13:11 Go to next message
Paul Kolonay is currently offline Paul KolonayFriend
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 14:46 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 18:25 Go to previous message
Paul Kolonay is currently offline Paul KolonayFriend
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: Sat Apr 27 03:34:29 GMT 2024

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

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

Back to the top