Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2011-01-05 09:49:07 +0000
committerDani Megert2011-01-05 09:49:07 +0000
commit20fddb34705c097a1afedf23114d5886dbbd70d3 (patch)
treeba9cc697083bc0acd494cd2bbc1559031ca0a304 /org.eclipse.core.filebuffers
parentd70d80bf02f66fc7b305de4e260a267684401426 (diff)
downloadeclipse.platform.text-20fddb34705c097a1afedf23114d5886dbbd70d3.tar.gz
eclipse.platform.text-20fddb34705c097a1afedf23114d5886dbbd70d3.tar.xz
eclipse.platform.text-20fddb34705c097a1afedf23114d5886dbbd70d3.zip
Use InstanceScope singleton.
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBufferManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBufferManager.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBufferManager.java
index b374460c2..edafab861 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBufferManager.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBufferManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -206,7 +206,7 @@ public class ResourceTextFileBufferManager extends TextFileBufferManager {
return lineDelimiter;
}
// workspace preference
- scopeContext= new IScopeContext[] { new InstanceScope() };
+ scopeContext= new IScopeContext[] { InstanceScope.INSTANCE };
return Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext);
}

Back to the top