mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 20:25:46 +02:00
Use *Scope INSTANCE fields.
Recommended way is to use e.g. InstanceScope.INSTANCE instead of new InstanceScope() which is deprecated now. Change-Id: I9fa8e53e180a480805bd0a57903e65b5c2de5f75 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
ac06de029f
commit
9f03bd1ee2
3 changed files with 4 additions and 4 deletions
|
@ -346,7 +346,7 @@ public class PropertyManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Preferences getInstNode(IManagedProject mProject){
|
protected Preferences getInstNode(IManagedProject mProject){
|
||||||
Preferences prefs = new InstanceScope().getNode(ManagedBuilderCorePlugin.getUniqueIdentifier());
|
Preferences prefs = InstanceScope.INSTANCE.getNode(ManagedBuilderCorePlugin.getUniqueIdentifier());
|
||||||
if(prefs != null){
|
if(prefs != null){
|
||||||
prefs = prefs.node(NODE_NAME);
|
prefs = prefs.node(NODE_NAME);
|
||||||
if(prefs != null)
|
if(prefs != null)
|
||||||
|
|
|
@ -482,7 +482,7 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Preferences getWorkspaceNode(){
|
private Preferences getWorkspaceNode(){
|
||||||
Preferences prefNode = new InstanceScope().getNode(CCorePlugin.PLUGIN_ID);
|
Preferences prefNode = InstanceScope.INSTANCE.getNode(CCorePlugin.PLUGIN_ID);
|
||||||
if(prefNode == null)
|
if(prefNode == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|
|
@ -91,11 +91,11 @@ public class XlcLanguagePreferences {
|
||||||
|
|
||||||
|
|
||||||
private static Preferences getDefaultPreferences() {
|
private static Preferences getDefaultPreferences() {
|
||||||
return getPreferences(new DefaultScope());
|
return getPreferences(DefaultScope.INSTANCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Preferences getWorkspacePreferences() {
|
private static Preferences getWorkspacePreferences() {
|
||||||
return getPreferences(new InstanceScope());
|
return getPreferences(InstanceScope.INSTANCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Preferences getProjectPreferences(IProject project) {
|
private static Preferences getProjectPreferences(IProject project) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue