Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » standalone SWT versus RCP
standalone SWT versus RCP [message #440019] Wed, 21 July 2004 02:58 Go to next message
Eclipse UserFriend
Originally posted by: andrew.mcintyre.us.ibm.com

Could somebody contrast the advantages/disadvantages of going down the standalone SWT development path versus the RCP path? Especially with draw2d involved?

I'm leaning toward the RCP path because it looks simpler but what do I know, I'm a raw newbie.

--
========================================================
Andrew McIntyre - Senior I/T Specialist - certified
zSeries & S/390 Software Technical Sales
SMPO (Software Migration Project Office)
TMT (Tivoli Migration Team)
404-487-2477 or tie 546-2477
andrew.mcintyre@us.ibm.com
========================================================
SMPO
http://www.ibm.com/software/solutions/softwaremigration
NetView for z/OS
http://www-306.ibm.com/software/tivoli/products/netview-zos/ resources/nv390-update.html
System Automation for z/OS
http://www.s390.ibm.com/sa
========================================================
Re: standalone SWT versus RCP [message #440027 is a reply to message #440019] Wed, 21 July 2004 10:56 Go to previous messageGo to next message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
I think it all depends on what type of application you are building. If
you're building an application that is going to make good reuse of the
components that the RCP offers then it is going to make life easier. On
the other hand if you're doing something that goes completely against the
grain of RCP then it is going to make life considerably harder. This may
be stating the obvious but it is important, consider the precise
requirements of your app, see if the building blocks that the RCP offer
are appropriate.

James

andrew mcintyre wrote:

> Could somebody contrast the advantages/disadvantages of going down the
standalone SWT development path versus the RCP path? Especially with draw2d
involved?

> I'm leaning toward the RCP path because it looks simpler but what do I know,
I'm a raw newbie.
Re: standalone SWT versus RCP [message #440096 is a reply to message #440019] Wed, 21 July 2004 21:30 Go to previous messageGo to next message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
andrew mcintyre wrote:

> Could somebody contrast the advantages/disadvantages of going down the
standalone SWT development path versus the RCP path? Especially with draw2d
involved?

> I'm leaning toward the RCP path because it looks simpler but what do I know,
I'm a raw newbie.

RCP is a framework and provides support for policies how to add
a menubar, coolbar, status line and views to your application.
It also solves a lot of the questions you have on how to load/save
preferences, how to do help, etc. If your application needs the above
features, and is less than trivial, go with RCP. Using plug-ins for
designing your app is worth-while also.

If you do Hello-World, use the SWT toolkit. That's all it is, a toolkit.
It does not have any particular support for application features.

Hope this helps.

I recommend reading the RCP tutorials written by Ed Burnette

Chris
Re: standalone SWT versus RCP [message #440121 is a reply to message #440019] Thu, 22 July 2004 18:33 Go to previous message
David J. Orme is currently offline David J. OrmeFriend
Messages: 291
Registered: July 2009
Senior Member
andrew mcintyre wrote:

> Could somebody contrast the advantages/disadvantages of going down the standalone SWT development path versus the RCP path? Especially with draw2d involved?
>
> I'm leaning toward the RCP path because it looks simpler but what do I know, I'm a raw newbie.
>

RCP

+ Provides higher-level application framework than SWT; more productive
if you need its features and like (& can accept) its general design
approach.

+ Can include Eclipse's update manager if you need to supply software
updates dynamically to clients. This alone could be RCP's killer app if
you're a corporate developer.

+ If your application's UI has to scale to huge, epic sizes (like
Eclipse's UI has to be able to scale), RCP helps a lot.

- For small to medium-sized applications that aren't updated often or
are client-side-only, RCP is large, heavyweight, and slow. All that
dynamic UI stuff that helps so much if your UI has to scale to large
numbers of features can just get in the way if you have small and simple
requirements.


SWT (by itself)

+ Small, lightweight, performant.

+ Is low-level. You can code almost anything in it.

- Is low-level. Although you can code almost anything in it, it's so
low-level you have to pretty much code everything in it.


There's a third option not being talked about much, and that is the
SWTworkbench RCPLite framework. RCPLite is intended to sit in the
middle-ground between naked SWT and Eclipse's full-blown RCP. Here's
roughly how it stacks up:

RCPLite (http://www.swtworkbench.com/devzone/rcplite/index.shtml):

+ Small, lightweight, performant. It's designed to be as thin a layer
as possible on top of SWT and still provide application framework features.

+ Imitates the best features of Eclipse's UI and programming model and
improves on a few of them. Most notably these include perspectives, a
unified view/editor model, and the Action framework (for menu bar and
tool bar management).

+ Retains Eclipse 2.1's native look & feel.

+ A much simpler programming model than Eclipse's.

- What you gain in simplicity you lose in UI scalability. RCPLite isn't
designed to be able to support as many features in the application UI as
Eclipse can.

- No update manager for RCPLite (yet).


Regards,

Dave
--
Dave Orme
Eclipse Visual Editor Project Lead
Advanced Systems Concepts' Chief Architect
http://www.swtworkbench.com
Previous Topic:disable action
Next Topic:Threading problem between swing/swt
Goto Forum:
  


Current Time: Fri Apr 26 08:03:07 GMT 2024

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

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

Back to the top