1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| @Override
public void createPartControl(Composite parent) {
viewcomposite = new Composite (parent, SWT.NONE);
viewcomposite.setLayout(new GridLayout());
container = new Composite( viewcomposite, SWT.NONE );
layout = new StackLayout();
container.setLayout(layout);
myWizard = new MyWizard(container){
@Override
public IWizardContainer getContainer() {
return Parametrages.this;
}
};
myWizard.addPages();
parent.addDisposeListener( new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
myWizard.dispose();
}
} );
IWizardPage startingPage = myWizard.getStartingPage();
if (startingPage == null) {
} else {
startingPage.createControl(container);
showPage(startingPage);
}
createButtonBar(viewcomposite);
} |