Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Warning Removal: CDocumentProvider

This patch removes the deprecated warnings (Encoding related)
on the CDocumentProvider.  It currently uses the default encoding
since we don't have a mechanism in place to set the encoding
on the source file/input stream.

Thomas
-------------------------------------------------------------
Thomas (toe-mah) Fletcher       QNX Software Systems
thomasf@xxxxxxx                 Core OS Technology Developer
(613)-591-0931                  http://www.qnx.com/
Index: CDocumentProvider.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java,v
retrieving revision 1.2
diff -u -r1.2 CDocumentProvider.java
--- CDocumentProvider.java	26 Jun 2002 21:53:41 -0000	1.2
+++ CDocumentProvider.java	17 Aug 2002 13:37:16 -0000
@@ -77,7 +77,7 @@
 			IStorage storage= ((IStorageEditorInput) element).getStorage();
 			
 			document= new CDocument();
-			setDocumentContent(document, storage.getContents());
+			setDocumentContent(document, storage.getContents(), getDefaultEncoding());
 		} else {
 			return null;
 		}

Back to the top