Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Launch files in RAP
Launch files in RAP [message #1529796] Fri, 26 December 2014 08:45 Go to next message
Eclipse UserFriend
I want to be able to launch PDF documents on DoubleClick.


I was doing the same in RCP by doing the following:

Program.launch(filePath);

Is the same thing possible with RAP too?
Re: Launch files in RAP [message #1532829 is a reply to message #1529796] Sun, 28 December 2014 02:06 Go to previous message
Eclipse UserFriend
Program.launch(path) generally will not do what you want in RAP. In a desktop app, it instructs the VM to launch the associated file handler, but in RAP, since it is now running on a web server, what it likely would do is launch the app on the server and not on the remote browser client which invoked it.

You should instead look into a download handler or org.eclipse.rap.rwt.service.ServiceHandler to be enabled on user interaction.
Previous Topic:Statusline center vertically
Next Topic:Fast view bar unavailable for RAP Workbench Demo (Fancy&Business)
Goto Forum:
  


Current Time: Mon Jul 14 08:01:19 EDT 2025

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

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

Back to the top