1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-15 12:15:47 +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:
Alexander Kurtakov 2015-10-21 11:51:08 +03:00
parent ac06de029f
commit 9f03bd1ee2
3 changed files with 4 additions and 4 deletions

View file

@ -346,7 +346,7 @@ public class PropertyManager {
}
protected Preferences getInstNode(IManagedProject mProject){
Preferences prefs = new InstanceScope().getNode(ManagedBuilderCorePlugin.getUniqueIdentifier());
Preferences prefs = InstanceScope.INSTANCE.getNode(ManagedBuilderCorePlugin.getUniqueIdentifier());
if(prefs != null){
prefs = prefs.node(NODE_NAME);
if(prefs != null)

View file

@ -482,7 +482,7 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
}
private Preferences getWorkspaceNode(){
Preferences prefNode = new InstanceScope().getNode(CCorePlugin.PLUGIN_ID);
Preferences prefNode = InstanceScope.INSTANCE.getNode(CCorePlugin.PLUGIN_ID);
if(prefNode == null)
return null;

View file

@ -91,11 +91,11 @@ public class XlcLanguagePreferences {
private static Preferences getDefaultPreferences() {
return getPreferences(new DefaultScope());
return getPreferences(DefaultScope.INSTANCE);
}
private static Preferences getWorkspacePreferences() {
return getPreferences(new InstanceScope());
return getPreferences(InstanceScope.INSTANCE);
}
private static Preferences getProjectPreferences(IProject project) {