org.eclipse.jface.dialogs.IPageChangedListener Java Examples
The following examples show how to use
org.eclipse.jface.dialogs.IPageChangedListener.
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: AbstractPropertyDialog.java From birt with Eclipse Public License 1.0 | 6 votes |
/** * * @param event */ protected void firePageChanged( final PageChangedEvent event ) { Object[] listeners = pageChangedListeners.getListeners( ); for ( int i = 0; i < listeners.length; i++ ) { final IPageChangedListener l = (IPageChangedListener) listeners[i]; SafeRunnable.run( new SafeRunnable( ) { public void run( ) { l.pageChanged( event ); } } ); } }
Example #2
Source File: WizardBaseDialog.java From birt with Eclipse Public License 1.0 | 6 votes |
/** * Notifies any selection changed listeners that the selected page has * changed. Only listeners registered at the time this method is called * are notified. * * @param event * a selection changed event * * @see IPageChangedListener#pageChanged * * @since 2.1 */ void firePageChanged( final PageChangedEvent event ) { Object[] listeners = pageChangedListeners.getListeners( ); for ( int i = 0; i < listeners.length; i++ ) { final IPageChangedListener l = (IPageChangedListener) listeners[i]; SafeRunnable.run( new SafeRunnable( ) { public void run( ) { l.pageChanged( event ); } } ); } }
Example #3
Source File: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
public void addPageChangedListener(IPageChangedListener listener) { pageChangedListeners.add(listener); }
Example #4
Source File: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
public void removePageChangedListener(IPageChangedListener listener) { pageChangedListeners.remove(listener); }
Example #5
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public void addPageChangedListener(IPageChangedListener listener) { pageChangedListeners.add(listener); }
Example #6
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public void removePageChangedListener(IPageChangedListener listener) { pageChangedListeners.remove(listener); }
Example #7
Source File: AbstractPropertyDialog.java From birt with Eclipse Public License 1.0 | 4 votes |
public void addPageChangedListener( IPageChangedListener listener ) { pageChangedListeners.add( listener ); }
Example #8
Source File: AbstractPropertyDialog.java From birt with Eclipse Public License 1.0 | 4 votes |
public void removePageChangedListener( IPageChangedListener listener ) { pageChangedListeners.remove( listener ); }
Example #9
Source File: WizardBaseDialog.java From birt with Eclipse Public License 1.0 | 4 votes |
public void addPageChangedListener( IPageChangedListener listener ) { pageChangedListeners.add( listener ); }
Example #10
Source File: WizardBaseDialog.java From birt with Eclipse Public License 1.0 | 4 votes |
public void removePageChangedListener( IPageChangedListener listener ) { pageChangedListeners.remove( listener ); }
Example #11
Source File: WizardBuilder.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
/** * Create an instance of {@link Wizard} from the builder */ public Wizard asWizard() { final Wizard wizard = new Wizard() { @Override public boolean performFinish() { pages.stream() .map(WizardPageBuilder::getControlSupplier) .filter(Objects::nonNull) .forEachOrdered(controlSupplier -> controlSupplier.saveSettings(getDialogSettings())); try { if (finishHandler != null) { finishResult = finishHandler.finish(getContainer()); return finishResult.isPresent(); } return true; } catch (final Throwable t) { new ExceptionDialogHandler().openErrorDialog(getShell(), Messages.errorOccuredDuringFinish, t); return false; } } @Override public void setContainer(IWizardContainer wizardContainer) { super.setContainer(wizardContainer); if (wizardContainer instanceof IPageChangeProvider) { IWizardPage startingPage = getStartingPage(); if (startingPage instanceof IPageChangedListener) { ((IPageChangeProvider) wizardContainer) .addPageChangedListener((IPageChangedListener) startingPage); } } } }; pages.stream().forEachOrdered(page -> wizard.addPage(page.asPage())); wizard.setNeedsProgressMonitor(needProgress); wizard.setWindowTitle(windowTitle); wizard.setDefaultPageImageDescriptor(imageDescriptor); wizard.setDialogSettings(WorkbenchPlugin.getDefault().getDialogSettings()); return wizard; }
Example #12
Source File: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 3 votes |
/** * Notifies any selection changed listeners that the selected page has * changed. Only listeners registered at the time this method is called are * notified. * * @param event * a selection changed event * * @see IPageChangedListener#pageChanged * * @since 3.1 */ protected void firePageChanged(final PageChangedEvent event) { Object[] listeners = pageChangedListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IPageChangedListener l = (IPageChangedListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { l.pageChanged(event); } }); } }
Example #13
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 3 votes |
/** * Notifies any selection changed listeners that the selected page has * changed. Only listeners registered at the time this method is called are * notified. * * @param event * a selection changed event * * @see IPageChangedListener#pageChanged * * @since 3.1 */ protected void firePageChanged(final PageChangedEvent event) { Object[] listeners = pageChangedListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IPageChangedListener l = (IPageChangedListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { l.pageChanged(event); } }); } }