Java Code Examples for org.eclipse.jface.wizard.WizardDialog.addPageChangedListener()

The following are Jave code examples for showing how to use addPageChangedListener() of the org.eclipse.jface.wizard.WizardDialog class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: n4js   File: NpmExportWizard.java   View Source Code Vote up 5 votes
@Override
public void setContainer(IWizardContainer wizardContainer) {

	IWizardContainer oldContainer = this.getContainer();
	if (oldContainer instanceof WizardDialog) {
		((WizardDialog) oldContainer).removePageChangedListener(pageListener);
	}

	if (wizardContainer instanceof WizardDialog) {
		WizardDialog wizDialog = (WizardDialog) wizardContainer;
		wizDialog.addPageChangedListener(pageListener);
	}

	super.setContainer(wizardContainer);
}
 
Example 2
Project: scenarioo-example-swtbot-e4   File: NewOrderWizard.java   View Source Code Vote up 5 votes
@Override
public void addPages() {
	OrderPositionsTableviewDTO orderPositionsForViewDTO = new OrderPositionsTableviewDTO();
	one = new OrderPage(orderPositionsForViewDTO.getOrder());
	two = new PositionsPage(articleService, orderPositionsForViewDTO);
	addPage(one);
	addPage(two);

	WizardDialog dialog = (WizardDialog) getContainer();
	dialog.addPageChangedListener(this);
}