Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Question about the JFace way of doing things
Question about the JFace way of doing things [message #446148] Wed, 17 November 2004 20:00 Go to next message
Eclipse UserFriend
Originally posted by: ukalumni.hotmail.com

I bought a copy of the Warner-Harris book "The Definitive Guide to SWT
and JFace" and have been using it to code an SWT application. Very good
book, IMO.

In it the section on JFace, their examples take the following form:

public class SomeClass extends ApplicationWindow
{
private static SomeClass APP;

public void run()
{
setBlockOnOpen(true);
open();
Display.getCurrent().dispose();
}

public static SomeClass getApp()
{
return APP;
}
}

So, I've followed that example. When SomeClass is instantiated, it stays
in the middle of the run method and any other methods that I need to
call within SomeClass, I call by getting a handle to the SomeClass
instance via getApp().

My question is, is this the only way to code using JFace? It seems that
everything is modal in a sense, and I find myself wondering if there is
some other way to do it.

Are there any online tutorials that someone can point me to?

Thanks,
--Michael
Re: Question about the JFace way of doing things [message #446198 is a reply to message #446148] Fri, 19 November 2004 22:16 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
You may get more response if you ask this on the eclipse.platform newsgroup,
since that is where jface lives.

Grant

"Michael Molloy" <ukalumni@hotmail.com> wrote in message
news:cngasj$s69$1@www.eclipse.org...
> I bought a copy of the Warner-Harris book "The Definitive Guide to SWT
> and JFace" and have been using it to code an SWT application. Very good
> book, IMO.
>
> In it the section on JFace, their examples take the following form:
>
> public class SomeClass extends ApplicationWindow
> {
> private static SomeClass APP;
>
> public void run()
> {
> setBlockOnOpen(true);
> open();
> Display.getCurrent().dispose();
> }
>
> public static SomeClass getApp()
> {
> return APP;
> }
> }
>
> So, I've followed that example. When SomeClass is instantiated, it stays
> in the middle of the run method and any other methods that I need to
> call within SomeClass, I call by getting a handle to the SomeClass
> instance via getApp().
>
> My question is, is this the only way to code using JFace? It seems that
> everything is modal in a sense, and I find myself wondering if there is
> some other way to do it.
>
> Are there any online tutorials that someone can point me to?
>
> Thanks,
> --Michael
Re: Question about the JFace way of doing things [message #446244 is a reply to message #446198] Mon, 22 November 2004 14:47 Go to previous message
Eclipse UserFriend
Originally posted by: ukalumni.hotmail.com

Will do. Thanks.

--M

Grant Gayed wrote:
> You may get more response if you ask this on the eclipse.platform newsgroup,
> since that is where jface lives.
>
> Grant
>
> "Michael Molloy" <ukalumni@hotmail.com> wrote in message
> news:cngasj$s69$1@www.eclipse.org...
>
>>I bought a copy of the Warner-Harris book "The Definitive Guide to SWT
>>and JFace" and have been using it to code an SWT application. Very good
>>book, IMO.
>>
>>In it the section on JFace, their examples take the following form:
>>
>>public class SomeClass extends ApplicationWindow
>>{
>> private static SomeClass APP;
>>
>> public void run()
>> {
>> setBlockOnOpen(true);
>> open();
>> Display.getCurrent().dispose();
>> }
>>
>> public static SomeClass getApp()
>> {
>>return APP;
>> }
>>}
>>
>>So, I've followed that example. When SomeClass is instantiated, it stays
>>in the middle of the run method and any other methods that I need to
>>call within SomeClass, I call by getting a handle to the SomeClass
>>instance via getApp().
>>
>>My question is, is this the only way to code using JFace? It seems that
>>everything is modal in a sense, and I find myself wondering if there is
>>some other way to do it.
>>
>>Are there any online tutorials that someone can point me to?
>>
>>Thanks,
>>--Michael
>
>
>
Previous Topic:Combo/List box with images?
Next Topic:Color picker control.
Goto Forum:
  


Current Time: Thu Oct 22 08:00:57 GMT 2020

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

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

Back to the top