Java Code Examples for org.eclipse.jface.wizard.IWizardPage#getWizard()
The following examples show how to use
org.eclipse.jface.wizard.IWizardPage#getWizard() .
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: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * Update the receiver for the new page. * * @param page */ private void updateForPage(IWizardPage page) { // ensure this page belongs to the current wizard if (wizard != page.getWizard()) { setWizard(page.getWizard()); } // ensure that page control has been created // (this allows lazy page control creation) if (page.getControl() == null) { page.createControl(pageContainer); // the page is responsible for ensuring the created control is // accessible via getControl. Assert.isNotNull(page.getControl(), JFaceResources.format( JFaceResources.getString("WizardDialog.missingSetControl"), //$NON-NLS-1$ new Object[] { page.getName() })); // ensure the dialog is large enough for this page updateSize(page); } // make the new page visible IWizardPage oldPage = currentPage; currentPage = page; currentPage.setVisible(true); if (oldPage != null) { oldPage.setVisible(false); } // update the dialog controls update(); }
Example 2
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * Update the receiver for the new page. * * @param page */ private void updateForPage(IWizardPage page) { // ensure this page belongs to the current wizard if (wizard != page.getWizard()) { setWizard(page.getWizard()); } // ensure that page control has been created // (this allows lazy page control creation) if (page.getControl() == null) { page.createControl(pageContainer); // the page is responsible for ensuring the created control is // accessible via getControl. Assert.isNotNull(page.getControl(), JFaceResources.format( JFaceResources.getString("WizardDialog.missingSetControl"), //$NON-NLS-1$ new Object[] { page.getName() })); // ensure the dialog is large enough for this page updateSize(page); } // make the new page visible IWizardPage oldPage = currentPage; currentPage = page; currentPage.setVisible(true); if (oldPage != null) { oldPage.setVisible(false); } // update the dialog controls update(); }
Example 3
Source File: SaveReportAsWizardDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
protected void finishPressed( ) { super.finishPressed( ); IWizardPage page = getCurrentPage( ); IWizard wizard = page.getWizard(); this.saveAsPath = ( (SaveReportAsWizard) wizard ).getSaveAsPath(); }
Example 4
Source File: SaveReportAsWizardDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
protected void finishPressed( ) { super.finishPressed( ); IWizardPage page = getCurrentPage( ); IWizard wizard = page.getWizard( ); this.saveAsPath = ( (SaveReportAsWizard) wizard ).getSaveAsPath( ); }
Example 5
Source File: WizardDoubleClickListener.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * [leave / go to the next page of] the wizard when you double click on an element of a viewer. */ @Override public void doubleClick(DoubleClickEvent event) { IWizardPage currentPage = wizardContainer.getCurrentPage(); if (currentPage.getNextPage() != null && currentPage.canFlipToNextPage()) { wizardContainer.showPage(currentPage.getNextPage()); } else { IWizard wizard = currentPage.getWizard(); if (wizard.canFinish() && wizard.performFinish()) { wizardContainer.close(); } } }