summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Liu2011-07-22 10:45:12 (EDT)
committerVivian Kong2011-07-22 10:45:12 (EDT)
commitd903ce67bfb2c293acd3baeb47d2cae471197824 (patch)
tree34452bf72618d96b744757588cd675e3eb0851e9
parentb04b352ac384a8aab6f1d96ded6b0eedd6e22330 (diff)
downloadorg.eclipse.cdt-d903ce67bfb2c293acd3baeb47d2cae471197824.zip
org.eclipse.cdt-d903ce67bfb2c293acd3baeb47d2cae471197824.tar.gz
org.eclipse.cdt-d903ce67bfb2c293acd3baeb47d2cae471197824.tar.bz2
Bug 352775 - The function registerFileEncoding in FileEncodingRegistry
should check default encoding first
-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)){