org.eclipse.jface.dialogs.PageChangedEvent Java Examples
The following examples show how to use
org.eclipse.jface.dialogs.PageChangedEvent.
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 | 5 votes |
/** * Updates this dialog's controls to reflect the current page. */ protected void update() { // Update the window title updateWindowTitle(); // Update the title bar updateTitleBar(); // Update the buttons updateButtons(); // Fires the page change event firePageChanged(new PageChangedEvent(this, getCurrentPage())); }
Example #4
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * Updates this dialog's controls to reflect the current page. */ protected void update() { // Update the window title updateWindowTitle(); // Update the title bar updateTitleBar(); // Update the buttons updateButtons(); // Fires the page change event firePageChanged(new PageChangedEvent(this, getCurrentPage())); }
Example #5
Source File: BirtWebProjectWizardConfigurationPage.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Called whenever the wizard page has changed and forces its container * to resize its content. * * @see org.eclipse.jface.dialogs.IPageChangedListener#pageChanged(org.eclipse.jface.dialogs.PageChangedEvent) */ public void pageChanged( PageChangedEvent event ) { if ( this.wizardPage == event.getSelectedPage( ) ) { // force size update IWizardContainer container = getContainer( ); if ( container instanceof IWizardContainer2 ) { ( (IWizardContainer2) container ).updateSize( ); } } }
Example #6
Source File: WizardBaseDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
public void switchTask( ) { // Set the description for each task String strDesc = this.wizardBase.getCurrentTask( ).getDescription( ); if ( strDesc != null ) { setMessage( strDesc ); } // Update or create UI if ( getTabContainer( ).getSelectionIndex( ) < 0 ) { getTabContainer( ).setSelection( 0 ); } CTabItem currentItem = getTabContainer( ).getItem( getTabContainer( ).getSelectionIndex( ) ); this.wizardBase.getCurrentTask( ).createControl( getTabContainer( ) ); if ( currentItem.getControl( ) == null ) { currentItem.setControl( this.wizardBase.getCurrentTask( ).getControl( ) ); } // Pack every task to show as much as possible packWizard( ); // Notify page changed to refresh help page firePageChanged( new PageChangedEvent( this, this.wizardBase.getCurrentTask( ) ) ); }
Example #7
Source File: ConfigurationWizardDialog.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void pageChanged(PageChangedEvent event) { IWizardPage currentSelectedPage = (IWizardPage) ((IStructuredSelection) pageChooserViewer.getSelection()) .getFirstElement(); IProcessConfigurationWizardPage selectedPage = (IProcessConfigurationWizardPage) event.getSelectedPage(); Configuration conf = getConfiguration(); if (conf != null) { if (!selectedPage.equals(currentSelectedPage)) { pageChooserViewer.setSelection(new StructuredSelection(selectedPage)); } } pageChooserViewer.refresh(); }
Example #8
Source File: ImportBosArchiveControlSupplier.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void pageChanged(PageChangedEvent event) { if (filePath != null) { Display.getDefault().asyncExec(() -> { File myFile = new File(filePath); if (!myFile.exists()) { try { myFile = fetchArchive(filePath); } catch (FetchRemoteBosArchiveException e) { textWidget.getValueBinding().getValidationStatus().setValue(ValidationStatus.error(String.format(Messages.cannotImportRemoteArchive,e.getLocalizedMessage()))); return; } } archiveModel = parseArchive(myFile.getAbsolutePath()); if (archiveModel != null) { textWidget .setMessage(String.format("%s %s (%s)", Messages.bosArchiveName, myFile.getName(), archiveModel.getBosArchive().getVersion())); importActionSelector.setArchiveModel(archiveModel); viewer.setInput(archiveModel); openTree(); } }); } }
Example #9
Source File: ActiveDocumentAgent.java From eclipse-encoding-plugin with Eclipse Public License 1.0 | 4 votes |
/** * MultiPageEditorPart tab changed. */ @Override public void pageChanged(PageChangedEvent event) { setCurrentDocument(getDocument(getActiveEditor())); callback.statusChanged(); }
Example #10
Source File: InvasiveThemeHijacker.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public void pageChanged(PageChangedEvent event) { }
Example #11
Source File: SinglePageAppDropWizard.java From XPagesExtensionLibrary with Apache License 2.0 | 4 votes |
@Override public void pageChanged(PageChangedEvent event) { currentPage = (WizardBasePage) event.getSelectedPage(); }
Example #12
Source File: WizardBase.java From birt with Eclipse Public License 1.0 | 4 votes |
public void firePageChanged( IDialogPage taskPage ) { dialog.firePageChanged( new PageChangedEvent( dialog, taskPage ) ); }
Example #13
Source File: ControlSupplier.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override default void pageChanged(PageChangedEvent event) {}
Example #14
Source File: WizardPageBuilder.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override public void pageChanged(PageChangedEvent event) { controlSupplier.pageChanged(event); }
Example #15
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 #16
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); } }); } }