Beginner's question TitleAreaDialog as main Window [message #448951] |
Sun, 16 January 2005 15:58 |
Thomas Messages: 151 Registered: July 2009 |
Senior Member |
|
|
I tried to open a TitleAreaDialog as the main application dialog. As you=
=
see in the source code below, I tried different ways, but there was no =
success.
The MessagBox sample worked ver well - so I have no idea why the =
TitleAreaDialog doesn't work.
I got a heavy error, the JVM launcher (java 1.4) gives an error window -=
=
"fatal exceptionn occured. Program will exit"
and within the eclipse workbench I can read the message
"java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus
at Main.main(Main.java:25)"
The line concerned by this is
"TitleAreaDialog dlg =3D new TitleAreaDialog(new Shell());"
When I confirm the message window of the JVM launcher, eclipse closes =
itself.
public class Main
{ public static void main(String[] args)
{ //Display display =3D new Display();
//Shell shell =3D new Shell(display);
//shell.setSize(500, 500);
//shell.open();
=
TitleAreaDialog dlg =3D new TitleAreaDialog(new Shell());
//dlg.create();
dlg.setTitle("Test");
dlg.open();
=
//shell.dispose();
/*MessageBox m =3D new MessageBox(new Shell());
m.setMessage("Hello, World");
m.open();*/
}
}
Another question: I found documentations about the classes and hierarchi=
es =
provided by the Eclipse project. However, I didn't find any documentatio=
n =
how to use these classes in small und easy-to-understand examples (see m=
y =
try of a source code above). Are there any good onlinedocumentations ?
Thomas Ballmann
|
|
|
Powered by
FUDForum. Page generated in 0.03095 seconds