Java Code Examples for org.eclipse.jface.wizard.IWizardPage#setPreviousPage()

The following examples show how to use org.eclipse.jface.wizard.IWizardPage#setPreviousPage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigurationWizardDialog.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void showPage(IWizardPage page) {
    super.showPage(page);
    page.setPreviousPage(null);
    setControlEnabled(page.getControl(), ((ConfigurationWizard) getWizard()).getProcess() != null);
    ConfigurationWizard confWizard = (ConfigurationWizard) getWizard();
    confWizard.updatePages();
    page.setVisible(true);
    pageChooserViewer.setSelection(new StructuredSelection(getCurrentPage()));
    group.setText(page.getTitle());
    String processName = getProcess().getName() + " (" + getProcess().getVersion() + ")";
    setTitle(Messages.bind(Messages.configurationWizardTitle, processName));
    if (((IProcessConfigurationWizardPage) page).isConfigurationPageValid(getConfiguration()) == null) {
        setMessage(Messages.bind(Messages.configurationWizardDesc, processName));
    }

}
 
Example 2
Source File: RenameTypeWizardSimilarElementsPage.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IWizardPage getNextPage() {
	if (fWasInitialized)
		initializeRefFromUI();
	// computes the input successor page
	// (=create changes)
	IWizardPage nextPage= super.getNextPage();
	if (nextPage != this) // if user pressed cancel, then the next page is the current page
		nextPage.setPreviousPage(this);
	return nextPage;
}
 
Example 3
Source File: TSWizardDialog.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
public void showPage(IWizardPage page) {
	if (page == null || page == currentPage) {
		return;
	}

	if (!isMovingToPreviousPage) {
		// remember my previous page.
		page.setPreviousPage(currentPage);
	} else {
		isMovingToPreviousPage = false;
	}

	// If page changing evaluation unsuccessful, do not change the page
	if (!doPageChanging(page))
		return;

	// Update for the new page in a busy cursor if possible
	if (getContents() == null) {
		updateForPage(page);
	} else {
		final IWizardPage finalPage = page;
		BusyIndicator.showWhile(getContents().getDisplay(), new Runnable() {
			public void run() {
				updateForPage(finalPage);
			}
		});
	}
}
 
Example 4
Source File: TSWizardDialog.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
public void showPage(IWizardPage page) {
	if (page == null || page == currentPage) {
		return;
	}

	if (!isMovingToPreviousPage) {
		// remember my previous page.
		page.setPreviousPage(currentPage);
	} else {
		isMovingToPreviousPage = false;
	}

	// If page changing evaluation unsuccessful, do not change the page
	if (!doPageChanging(page))
		return;

	// Update for the new page in a busy cursor if possible
	if (getContents() == null) {
		updateForPage(page);
	} else {
		final IWizardPage finalPage = page;
		BusyIndicator.showWhile(getContents().getDisplay(), new Runnable() {
			public void run() {
				updateForPage(finalPage);
			}
		});
	}
}