Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Newbie-Question: JFace Actions with SWT Controls
Newbie-Question: JFace Actions with SWT Controls [message #452302] Thu, 17 March 2005 09:22 Go to next message
Eclipse UserFriend
Originally posted by: cschlaefcke.wms-network.de

Hi Folks,

I just started getting familiar with SWT/JFace. I found a few articles
at www.javaworld.com and downloades the two sample chapter from the
"SWT/JFace in Action" book. I played around with the event model of
JFace and found that I can only use it with the menu-, toolbar-,
statusline components.

But what about the rest of my application? Is the jface event model not
applicable on my pushbuttons, listboxes, etc.? Do I have to use the SWT
event model for that. If so, I wonder what the goal of JFace is. As I´m
pretty new to this subject at all, I also wonder if I missed some of the
main concepts of JFace. Is it just a toolkit for designing the mainframe
of an application and some of the major components (TableView, TreeView)?

It would be nice if somebody could help me understanding this or point
me to some good articles.

Thanks & Regards,

Chris
Re: Newbie-Question: JFace Actions with SWT Controls [message #452341 is a reply to message #452302] Thu, 17 March 2005 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mail.gregrobson.co.uk

If you don't mind spending a bit of money, buy this book:

The Definitive Guide to SWT and JFace
Rob Warner with Robert Harris
Published by Apress

I have it on my desk right now, and it takes you through all you could
ever want to know. So long as you're a fairly competant programmer, it
should be easy to whip through the book and learn all about the way it
fits together.

Most objects have specific listeners and such, but you often find you
can add more generic ones as well. i.e. addListener(Listener l) instead
of addSpecialisedTypeOfListener(SpecialisedTypeOfListener l).

Greg

Christian Schlaefcke wrote:
> Hi Folks,
>
> I just started getting familiar with SWT/JFace. I found a few articles
> at www.javaworld.com and downloades the two sample chapter from the
> "SWT/JFace in Action" book. I played around with the event model of
> JFace and found that I can only use it with the menu-, toolbar-,
> statusline components.
>
> But what about the rest of my application? Is the jface event model not
> applicable on my pushbuttons, listboxes, etc.? Do I have to use the SWT
> event model for that. If so, I wonder what the goal of JFace is. As I´m
> pretty new to this subject at all, I also wonder if I missed some of the
> main concepts of JFace. Is it just a toolkit for designing the mainframe
> of an application and some of the major components (TableView, TreeView)?
>
> It would be nice if somebody could help me understanding this or point
> me to some good articles.
>
> Thanks & Regards,
>
> Chris
Re: Newbie-Question: JFace Actions with SWT Controls [message #452361 is a reply to message #452302] Fri, 18 March 2005 08:34 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Another way to answer your question is SWT provides the basic GUI
primitives and JFace is a semi-random collection of stuff that can be
built on SWT, produced organically by promoting things that were
developed for Eclipse to API status. (This follows the old rule: to
produce reusable code, you must first use it.)

Some JFace code is a bit convoluted, e.g., TreeViewer. You can often do
things more simply and efficiently by coding at the SWT level. But on
the other hand, if there is a JFace alternative, it already has most of
the bugs you'd commit fixed.

Bob Foster

Christian Schlaefcke wrote:
> Hi Folks,
>
> I just started getting familiar with SWT/JFace. I found a few articles
> at www.javaworld.com and downloades the two sample chapter from the
> "SWT/JFace in Action" book. I played around with the event model of
> JFace and found that I can only use it with the menu-, toolbar-,
> statusline components.
>
> But what about the rest of my application? Is the jface event model not
> applicable on my pushbuttons, listboxes, etc.? Do I have to use the SWT
> event model for that. If so, I wonder what the goal of JFace is. As I´m
> pretty new to this subject at all, I also wonder if I missed some of the
> main concepts of JFace. Is it just a toolkit for designing the mainframe
> of an application and some of the major components (TableView, TreeView)?
>
> It would be nice if somebody could help me understanding this or point
> me to some good articles.
>
> Thanks & Regards,
>
> Chris
Previous Topic:Right click to set selection in text widget
Next Topic:Why is there a margin around the tree in this snippet?
Goto Forum:
  


Current Time: Fri Mar 29 08:27:38 GMT 2024

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

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

Back to the top