[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Wizard launch

Hi Charles,

I suppose it should look like this:

MyWizard wizard = new MyWizard();

WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard);
dialog.create();


if ( dialog.open() == Window.OK ) {
  //
}

Regards, Peter


I want to launch a wizard when a button is selected. My button is defined in a Section of my properties view. Can you tell me which code I need to execute to launch the wizard ?

My wizard is a copy/paste of the example here : http://www.vogella.de/articles/RichClientPlatform/article.html#wizards

Button createConnectorButton = getWidgetFactory().createButton(composite, Messages.ConnectorsSection_Add_Connector, SWT.PUSH);

		createConnectorButton.addSelectionListener(new SelectionAdapter(){
			public void widgetSelected(SelectionEvent event) {
				?????
		}
		);
Regards
Charles