Search in sources :

Example 1 with PageChangedEvent

use of org.eclipse.jface.dialogs.PageChangedEvent in project translationstudio8 by heartsome.

the class TSWizardDialog method update.

/**
	 * 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()));
}
Also used : PageChangedEvent(org.eclipse.jface.dialogs.PageChangedEvent)

Example 2 with PageChangedEvent

use of org.eclipse.jface.dialogs.PageChangedEvent in project tdi-studio-se by Talend.

the class CpuDumpEditor method addListeners.

/**
     * Adds the listeners.
     */
private void addListeners() {
    cpuModel.addModelChangeListener(new ICpuModelChangeListener() {

        @Override
        public void modelChanged(CpuModelEvent e) {
            Display.getDefault().asyncExec(new Runnable() {

                @Override
                public void run() {
                    refresh();
                }
            });
        }
    });
    addPageChangedListener(new IPageChangedListener() {

        @Override
        public void pageChanged(PageChangedEvent event) {
            pageSelectionChanged();
        }
    });
}
Also used : IPageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener) ICpuModelChangeListener(org.talend.designer.runtime.visualization.internal.core.cpu.ICpuModelChangeListener) PageChangedEvent(org.eclipse.jface.dialogs.PageChangedEvent) CpuModelEvent(org.talend.designer.runtime.visualization.internal.core.cpu.CpuModelEvent)

Example 3 with PageChangedEvent

use of org.eclipse.jface.dialogs.PageChangedEvent in project tdi-studio-se by Talend.

the class AbstractDumpEditor method createPages.

/*
     * @see MultiPageEditorPart#createPages()
     */
@Override
protected final void createPages() {
    createClientPages();
    createInfoPage();
    addPageChangedListener(new IPageChangedListener() {

        @Override
        public void pageChanged(PageChangedEvent event) {
            if (event.getSelectedPage().equals(infoPage)) {
                infoPage.focusCommnentsText();
            }
        }
    });
    resourceChangeListener = new ResourceChangeListener();
    ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener);
}
Also used : IPageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener) IResourceChangeListener(org.eclipse.core.resources.IResourceChangeListener) PageChangedEvent(org.eclipse.jface.dialogs.PageChangedEvent)

Aggregations

PageChangedEvent (org.eclipse.jface.dialogs.PageChangedEvent)3 IPageChangedListener (org.eclipse.jface.dialogs.IPageChangedListener)2 IResourceChangeListener (org.eclipse.core.resources.IResourceChangeListener)1 CpuModelEvent (org.talend.designer.runtime.visualization.internal.core.cpu.CpuModelEvent)1 ICpuModelChangeListener (org.talend.designer.runtime.visualization.internal.core.cpu.ICpuModelChangeListener)1