Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Access ui thread from servlet.
Access ui thread from servlet. [message #1841999] Sun, 06 June 2021 12:46 Go to next message
Eclipse UserFriend
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 06:50 Go to previous message
Eclipse UserFriend
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: Mon Jun 23 05:41:03 EDT 2025

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

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

Back to the top