Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Suggestions for JFace tutorials
Suggestions for JFace tutorials [message #333267] Tue, 02 December 2008 20:31 Go to next message
Eclipse UserFriend
Originally posted by: spamact.[nospam]yahoo.com

Hi there,

I'm relatively new to Java, but I've been tasked with fixing some bugs
in a Java program that uses SWT and JFace. There are lots of good SWT
tutorials out there, and I feel fairly comfortable now in working with
SWT widgets and event listeners. However, there don't seem to be as
many JFace articles available.

Our RCP application uses JFace only for preference pages (it extends
FieldEditorPreferencePage), so I'm trying to find something that
explains at a high level how JFace works, how to use events (it seems
quite different than SWT's event listeners), and some simple code
examples. I feel like I've read everything I could Google, but much of
it either doesn't apply or is over my head at the moment -- unlike most
of the SWT articles, for some reason.

Any suggestions, either books or online, would really help out a lot.

Thanks!

Jeff
Re: Suggestions for JFace tutorials [message #333271 is a reply to message #333267] Tue, 02 December 2008 21:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 12/2/2008 3:31 PM, Jeff Berman wrote:
> Hi there,
>
> I'm relatively new to Java, but I've been tasked with fixing some bugs
> in a Java program that uses SWT and JFace. There are lots of good SWT
> tutorials out there, and I feel fairly comfortable now in working with
> SWT widgets and event listeners. However, there don't seem to be as many
> JFace articles available.
>
> Our RCP application uses JFace only for preference pages (it extends
> FieldEditorPreferencePage), so I'm trying to find something that
> explains at a high level how JFace works, how to use events (it seems
> quite different than SWT's event listeners), and some simple code
> examples. I feel like I've read everything I could Google, but much of
> it either doesn't apply or is over my head at the moment -- unlike most
> of the SWT articles, for some reason.
>
> Any suggestions, either books or online, would really help out a lot.

This article will probably help with your work with
FieldEditorPreferencePage:
http://www.eclipse.org/articles/Article-Field-Editors/field_ editors.html

There are other JFace-related articles here:
http://www.eclipse.org/resources/?category=JFace


When I first started, I referred to the JFace snippets a lot:
http://wiki.eclipse.org/index.php/JFaceSnippets (it helps to get the
code from CVS so you can run them and fiddle with their code).

Also, the Clayberg/Rubel book (http://www.qualityeclipse.com/) has a
chapter on JFace viewers (and is an excellent book in general).

Hope this helps,
Eric
Re: Suggestions for JFace tutorials [message #333280 is a reply to message #333271] Wed, 03 December 2008 10:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Eric Rizzo schrieb:
> On 12/2/2008 3:31 PM, Jeff Berman wrote:
>> Hi there,
>>
>> I'm relatively new to Java, but I've been tasked with fixing some bugs
>> in a Java program that uses SWT and JFace. There are lots of good SWT
>> tutorials out there, and I feel fairly comfortable now in working with
>> SWT widgets and event listeners. However, there don't seem to be as many
>> JFace articles available.
>>
>> Our RCP application uses JFace only for preference pages (it extends
>> FieldEditorPreferencePage), so I'm trying to find something that
>> explains at a high level how JFace works, how to use events (it seems
>> quite different than SWT's event listeners), and some simple code
>> examples. I feel like I've read everything I could Google, but much of
>> it either doesn't apply or is over my head at the moment -- unlike most
>> of the SWT articles, for some reason.
>>
>> Any suggestions, either books or online, would really help out a lot.
>
> This article will probably help with your work with
> FieldEditorPreferencePage:
> http://www.eclipse.org/articles/Article-Field-Editors/field_ editors.html
>
> There are other JFace-related articles here:
> http://www.eclipse.org/resources/?category=JFace
>
>
> When I first started, I referred to the JFace snippets a lot:
> http://wiki.eclipse.org/index.php/JFaceSnippets (it helps to get the
> code from CVS so you can run them and fiddle with their code).

We have a lot of Snippets about Viewers but we are still lacking
snippets for other areas of JFace (Dialogs, Wizards, ... :-(. JFace has
so many hidden secrets many people don't know of.

I can only encourage people to submit snippets if they learn something
about JFace and want to help their fellows. I wrote most of them while
learning the JFace-API (or because I was tired answering the same
questions over and over).

Another thing you should not underestimate is that you learn a lot when
browsing the sources, don't be afraid of pressing F3 or step through
with a debugger. I know this sounds hard but it really pays of to
understand JFace because without you are going to have a hard time to
understand the Platform/RCP-Code which is one layer of abstraction above
JFace.

Tom
Re: Suggestions for JFace tutorials [message #333389 is a reply to message #333280] Mon, 08 December 2008 19:09 Go to previous message
Eclipse UserFriend
Originally posted by: spamact.nospamYahoo.com

Tom Schindl wrote:
> Eric Rizzo schrieb:
>> On 12/2/2008 3:31 PM, Jeff Berman wrote:
>>> Hi there,
>>>
>>> I'm relatively new to Java, but I've been tasked with fixing some bugs
>>> in a Java program that uses SWT and JFace. There are lots of good SWT
>>> tutorials out there, and I feel fairly comfortable now in working with
>>> SWT widgets and event listeners. However, there don't seem to be as many
>>> JFace articles available.
>>>
>>> Our RCP application uses JFace only for preference pages (it extends
>>> FieldEditorPreferencePage), so I'm trying to find something that
>>> explains at a high level how JFace works, how to use events (it seems
>>> quite different than SWT's event listeners), and some simple code
>>> examples. I feel like I've read everything I could Google, but much of
>>> it either doesn't apply or is over my head at the moment -- unlike most
>>> of the SWT articles, for some reason.
>>>
>>> Any suggestions, either books or online, would really help out a lot.
>>
>> This article will probably help with your work with
>> FieldEditorPreferencePage:
>> http://www.eclipse.org/articles/Article-Field-Editors/field_ editors.html
>>
>> There are other JFace-related articles here:
>> http://www.eclipse.org/resources/?category=JFace
>>
>>
>> When I first started, I referred to the JFace snippets a lot:
>> http://wiki.eclipse.org/index.php/JFaceSnippets (it helps to get the
>> code from CVS so you can run them and fiddle with their code).
>
> We have a lot of Snippets about Viewers but we are still lacking
> snippets for other areas of JFace (Dialogs, Wizards, ... :-(. JFace has
> so many hidden secrets many people don't know of.
>
> I can only encourage people to submit snippets if they learn something
> about JFace and want to help their fellows. I wrote most of them while
> learning the JFace-API (or because I was tired answering the same
> questions over and over).
>
> Another thing you should not underestimate is that you learn a lot when
> browsing the sources, don't be afraid of pressing F3 or step through
> with a debugger. I know this sounds hard but it really pays of to
> understand JFace because without you are going to have a hard time to
> understand the Platform/RCP-Code which is one layer of abstraction above
> JFace.
>
> Tom


Thanks Eric and Tom,

I had found and bookmarked those sites already but they got lost in the
sea of search results, so I'll go back and pay special attention to
those in particular. Tom, yeah... it's a little overwhelming to step
through the actual SWT or JFace code, but I guess that's what it takes.
If I ever master it, maybe I'll try to write the article that I would
have wanted to read: something for beginners that explains in simple
terms what JFace and its related technologies (like preference stores)
are, how they work together, and how you'd go about using JFace to lay
out a page and process inputs.

Maybe this is harder for me than most because a lot of concepts are
unfamiliar to me, like MVC, viewers, preference stores, even event
listeners... and many articles assume knowledge of all that already.

Anyway, thanks guys!

Jeff
Previous Topic:can change bin directory not automatically call builder?
Next Topic:[Databinding]: How can I reverse the target changes?
Goto Forum:
  


Current Time: Thu Sep 26 14:14:54 GMT 2024

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

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

Back to the top