Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 8349 Details for
Bug 39068
Adopt new core API for encoding on a per file basis
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch for core.filebuffers
core-filebuffers.patch (text/plain), 1.69 KB, created by
Andre Weinand
on 2004-03-05 06:08:25 EST
(
hide
)
Description:
patch for core.filebuffers
Filename:
MIME Type:
Creator:
Andre Weinand
Created:
2004-03-05 06:08:25 EST
Size:
1.69 KB
patch
obsolete
>Index: src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java,v >retrieving revision 1.2 >diff -u -r1.2 ResourceTextFileBuffer.java >--- src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java 17 Dec 2003 14:21:27 -0000 1.2 >+++ src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java 5 Mar 2004 11:00:25 -0000 >@@ -66,7 +66,7 @@ > /** > * Qualified name for the encoding key. > */ >- static final private QualifiedName ENCODING_KEY= new QualifiedName(FileBuffersPlugin.PLUGIN_ID, "encoding"); //$NON-NLS-1$ >+ //Enc: static final private QualifiedName ENCODING_KEY= new QualifiedName(FileBuffersPlugin.PLUGIN_ID, "encoding"); //$NON-NLS-1$ > /** > * Constant for representing the ok status. This is considered a value object. > */ >@@ -111,7 +111,8 @@ > public void setEncoding(String encoding) { > fEncoding= encoding; > try { >- fFile.setPersistentProperty(ENCODING_KEY, encoding); >+ fFile.setCharset(encoding); >+ //Enc: fFile.setPersistentProperty(ENCODING_KEY, encoding); > } catch (CoreException x) { > handleCoreException(x); > } >@@ -193,7 +194,8 @@ > */ > protected void initializeFileBufferContent(IProgressMonitor monitor) throws CoreException { > try { >- fEncoding= fFile.getPersistentProperty(ENCODING_KEY); >+ //Enc: fEncoding= fFile.getPersistentProperty(ENCODING_KEY); >+ fEncoding= fFile.getCharset(); > fDocument= fManager.createEmptyDocument(fFile.getLocation()); > setDocumentContent(fDocument, fFile.getContents(), fEncoding); > } catch (CoreException x) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39068
:
8348
| 8349