I’m working on an application that uses a JFace Wizard as its only GUI and I’m a bit unsure as to whether I’m on the right track.
Basically I initiate the GUI like this:
Display.getDefault(); // Creates a Dialog (program crashes with a NullPointerException if this is skipped)
Wizard wizard = new SnapWizard();
WizardDialog dialog = new WizardDialog(null, wizard); // No Shell needed?
dialog.create();
dialog.open();
This seems to get everything running, but is it the “right” way of doing it? Don’t I need an SWT Shell?
I vaguely remember using a loop for rendering when I used SWT earlier, is this handled automatically by Jface?
A
Shellwill be created if not provided. Event loop is run indialog.open();.You can check out JFace Wizard snippet.