diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java index 5b955e2c7bb..0656445bf92 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java @@ -104,8 +104,9 @@ public final class CIndenter { CorePrefs(ICProject project) { preferenceService = Platform.getPreferencesService(); preferenceContexts = project != null ? - new IScopeContext[] { new ProjectScope(project.getProject()), new InstanceScope(), new DefaultScope() } : - new IScopeContext[] { new InstanceScope(), new DefaultScope() }; + new IScopeContext[] { new ProjectScope(project.getProject()), + InstanceScope.INSTANCE, DefaultScope.INSTANCE } : + new IScopeContext[] { InstanceScope.INSTANCE, DefaultScope.INSTANCE }; fProject= project; prefUseTabs= prefUseTabs(); prefTabSize= prefTabSize();