summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Liu2011-07-22 10:57:39 (EDT)
committer Vivian Kong2011-07-22 10:59:59 (EDT)
commitd65911d15c302710445004857765ea0b11fe939b (patch)
tree85372d5599a1314a2126b24bc1db498dbbc27d85
parent030eec1fba9c9309b5d039649643a3aa3d2245cc (diff)
downloadorg.eclipse.cdt-d65911d15c302710445004857765ea0b11fe939b.zip
org.eclipse.cdt-d65911d15c302710445004857765ea0b11fe939b.tar.gz
org.eclipse.cdt-d65911d15c302710445004857765ea0b11fe939b.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)){