use of org.eclipse.jface.preference.PreferencePage in project tdi-studio-se by Talend.
the class ProjectSettingsPreferenceDialog method openPage.
@Override
public boolean openPage(String nodeId, Object data) {
if (this instanceof IWorkbenchPreferenceContainer) {
((IWorkbenchPreferenceContainer) this).openPage(nodeId, data);
} else {
// impl by self
final IPreferenceNode node = findNodeMatching(nodeId);
if (node != null) {
getTreeViewer().setSelection(new StructuredSelection(node));
showPage(node);
}
IPreferencePage page = getCurrentPage();
if (page instanceof PreferencePage) {
((PreferencePage) page).applyData(data);
}
return true;
}
return false;
}
Aggregations