Question about the JFace way of doing things [message #446148] |
Wed, 17 November 2004 20:00 |
Eclipse User |
|
|
|
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 |
Grant Gayed 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 |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02890 seconds