mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 279115 Respect default scoped Formatter Profile
This commit is contained in:
parent
06841d9793
commit
6fe483b67a
2 changed files with 9 additions and 1 deletions
|
@ -124,6 +124,9 @@ public class FormatterProfileManager extends ProfileManager {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Profile getDefaultProfile() {
|
public Profile getDefaultProfile() {
|
||||||
|
Profile p = super.getDefaultProfile();
|
||||||
|
if (p != null)
|
||||||
|
return p;
|
||||||
return getProfile(DEFAULT_PROFILE);
|
return getProfile(DEFAULT_PROFILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -798,7 +798,12 @@ public abstract class ProfileManager extends Observable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract Profile getDefaultProfile();
|
/**
|
||||||
|
* @return Default scoped profile or null
|
||||||
|
*/
|
||||||
|
public Profile getDefaultProfile() {
|
||||||
|
return getProfile(fPreferencesAccess.getDefaultScope().getNode(CUIPlugin.PLUGIN_ID).get(fProfileKey, "")); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
public IProfileVersioner getProfileVersioner() {
|
public IProfileVersioner getProfileVersioner() {
|
||||||
return fProfileVersioner;
|
return fProfileVersioner;
|
||||||
|
|
Loading…
Add table
Reference in a new issue