summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Liu2011-07-22 10:57:39 (EDT)
committerVivian Kong2011-07-22 10:57:39 (EDT)
commitba139d80802b1c4a5c8f34574f9da496b9306350 (patch)
treec3b45c766858e766bdaf64191ca1c51381bf7574
parenta1229e9c3558671cfbe406222ea78ad14ccbcdc3 (diff)
downloadorg.eclipse.cdt-ba139d80802b1c4a5c8f34574f9da496b9306350.zip
org.eclipse.cdt-ba139d80802b1c4a5c8f34574f9da496b9306350.tar.gz
org.eclipse.cdt-ba139d80802b1c4a5c8f34574f9da496b9306350.tar.bz2
Bug 352775 - The function registerFileEncoding in FileEncodingRegistry
should check default encoding first Change-Id: Ie30c9b8a0db79719cb3587f368898c66f971f075
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/indexer/FileEncodingRegistry.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/indexer/FileEncodingRegistry.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/indexer/FileEncodingRegistry.java
index 5bb7155..f5dbb40 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/indexer/FileEncodingRegistry.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/indexer/FileEncodingRegistry.java
@@ -39,6 +39,11 @@ public class FileEncodingRegistry implements Serializable {
defaultEncoding = newDefaultEncoding;
}
+
+ public String getDefaultEncoding() {
+ return defaultEncoding;
+ }
+
public void registerFileEncoding(String filename, String encoding) {
if(defaultEncoding.equals(encoding)){