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()));
}
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();
}
});
}
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);
}
Aggregations