org.eclipse.jface.dialogs.IPageChangingListener Java Examples
The following examples show how to use
org.eclipse.jface.dialogs.IPageChangingListener.
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 |
/** * Notifies any page changing listeners that the currently selected dialog * page is changing. Only listeners registered at the time this method is * called are notified. * * @param event * a selection changing event * * @see IPageChangingListener#handlePageChanging(PageChangingEvent) * @since 3.3 */ protected void firePageChanging(final PageChangingEvent event) { Object[] listeners = pageChangingListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IPageChangingListener l = (IPageChangingListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { l.handlePageChanging(event); } }); } }
Example #2
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * Notifies any page changing listeners that the currently selected dialog * page is changing. Only listeners registered at the time this method is * called are notified. * * @param event * a selection changing event * * @see IPageChangingListener#handlePageChanging(PageChangingEvent) * @since 3.3 */ protected void firePageChanging(final PageChangingEvent event) { Object[] listeners = pageChangingListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IPageChangingListener l = (IPageChangingListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { l.handlePageChanging(event); } }); } }
Example #3
Source File: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 2 votes |
/** * Adds a listener for page changes to the list of page changing listeners * registered for this dialog. Has no effect if an identical listener is * already registered. * * @param listener * a page changing listener * @since 3.3 */ public void addPageChangingListener(IPageChangingListener listener) { pageChangingListeners.add(listener); }
Example #4
Source File: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 2 votes |
/** * Removes the provided page changing listener from the list of page * changing listeners registered for the dialog. * * @param listener * a page changing listener * @since 3.3 */ public void removePageChangingListener(IPageChangingListener listener) { pageChangingListeners.remove(listener); }
Example #5
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 2 votes |
/** * Adds a listener for page changes to the list of page changing listeners * registered for this dialog. Has no effect if an identical listener is * already registered. * * @param listener * a page changing listener * @since 3.3 */ public void addPageChangingListener(IPageChangingListener listener) { pageChangingListeners.add(listener); }
Example #6
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 2 votes |
/** * Removes the provided page changing listener from the list of page * changing listeners registered for the dialog. * * @param listener * a page changing listener * @since 3.3 */ public void removePageChangingListener(IPageChangingListener listener) { pageChangingListeners.remove(listener); }