| Summary: | allow plugins to associate new file specs to existing content types | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Tod Creasey <Tod_Creasey> | ||||
| Component: | Resources | Assignee: | Rafael Chaves <eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse, eclipse, michaelvanmeekeren | ||||
| Version: | 3.0 | ||||||
| Target Milestone: | 3.0 M9 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Tod Creasey
Created attachment 9047 [details]
Screenshot of the encoding issue
I need more context here... why is this bug blocking bug 56437? The issue here is that the text editor is not using UTF-8 to read the file. The file is properly written. Since Platform/Text already adopted the infrastructure provided by Core to guess encoding, it is probably a bug in our support. Investigating... Notepad does not seem to do any guessing, so it is just opening a UTF-8 encoded file with platform's default encoding. We don't recognize .project as a XML file, so we don't try to guess its encoding. Not sure we should be any smarter than this. Interested parties (such as Resources, Java Core) could provide external association between their specially-name XML files (such as .project and .classpath) and the XML content type. Original summary: "Chinese project names being written incorrectly to .project files" Removing dependency. This is not a new issue, it has always been this way. Tod, please open another PR if you believe Core is the culprit in bug 56437. Changing summary to address the need of providing means for other plugins to associate new file specifications to existing content types. Fixed. Available from i20040606 on. Temporarily, Runtime will be providing associations for .project and .classpath: <extension point="org.eclipse.core.runtime.contentTypes"> <file-association content-type="org.eclipse.core.runtime.xml" file-names=".project"/> <file-association content-type="org.eclipse.core.runtime.xml" file-names=".classpath"/> </extension> |