// Note: uses the pre Eclipse 3.6 way of specifying search scopes (deprecated since 3.6)
boolean isUseProjectSettings = useProjectSettingsButton.getSelection();
link.setEnabled(!isUseProjectSettings);
if(!isUseProjectSettings) {
setSearchContexts(
getPreferenceStore(), new IScopeContext[] { new InstanceScope(), new ConfigurationScope() });
}
else {
// copy instance values to project specific values
setSearchContexts(getPreferenceStore(), new IScopeContext[] {
new ProjectScope(currentProject()), new InstanceScope(), new ConfigurationScope() });
setProjectSpecificValues();
}
updateFieldEditors(isUseProjectSettings);
}