Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Access ui thread from servlet.
Access ui thread from servlet. [message #1841999] Sun, 06 June 2021 16:46 Go to next message
Sergey Petrov is currently offline Sergey PetrovFriend
Messages: 5
Registered: July 2014
Junior Member
I am creating a rap application that receives data from remote sensors over HTTP. I created a servlet via org.eclipse.equinox.http.registry.servlets. When I get the data, I need to update my view. I understand that I need to access UI thread from background thread. I followed the instruction https://www.eclipse.org/rap/developers-guide/devguide.php?topic=threads.html&version=3.14 to update, but Display display = Display.getCurrent () always returns null. Where is my mistake?
P.S. What is the contexthttpId parameter?
Re: Access ui thread from servlet. [message #1842458 is a reply to message #1841999] Sun, 20 June 2021 10:50 Go to previous message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 192
Registered: February 2013
Senior Member
Strange. but try to use Display.getDefault()
Previous Topic:Is it possible to resize dynamically a TableViewer with RowTemplate?
Next Topic:Apexchart
Goto Forum:
  


Current Time: Thu Jun 13 23:35:16 GMT 2024

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

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

Back to the top