Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Best practices for different client types?(How to develop same feature for different clients?)
Best practices for different client types? [message #1118685] Fri, 27 September 2013 13:16 Go to next message
Eclipse UserFriend
I'll start with a practical example. My application creates and print reports.
I would like to develop different behaviours, depending on client type: e.g. on RAP client I would like to open the PDF on the browser, on Swing I would like to start document print. So, I would implement the abstract feature on the client plugin, and the concrete action on... ?
What is the best practice?

Thanks

[Updated on: Fri, 27 September 2013 13:32] by Moderator

Re: Best practices for different client types? [message #1121000 is a reply to message #1118685] Mon, 30 September 2013 02:54 Go to previous message
Eclipse UserFriend
Have a look at org.eclipse.scout.rt.shared.ui.UserAgentUtility, it offers a number of methods such as:
- isSwtUi()
- isRapUi()
- isDesktopDevice()
- isWebClien()
and many more that should help you decide which behaviour is needed when you create your report.
Previous Topic:How to run/debug scout SDK from source?
Next Topic:Target file problems
Goto Forum:
  


Current Time: Wed Jul 23 00:30:25 EDT 2025

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

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

Back to the top