Troubleshooting
Problem
This technote explains an unexpected behavior of Eclipse. The "Convert Line Delimiters to" action does not work on certain kind of files. The file remains unchanged. No error message is generated.
Cause
The Convert Line Delimiters to action works only on text files.
Depending on the situation, this might be a defect, in which the IDE is not sure about the content type of the file. Review Eclipse Bug 321306 for more details.
Diagnosing The Problem
Change the file extension to *.txt and verify that converting works as expected.
Resolving The Problem
- Click Window > Preferences > General > Content Types.
- Expand the Text node from the tree on the right panel in the Content Types section.
- Click the Add button and enter the original extension pattern.
- Click the OK button.
Now the conversion works.
Note: If you think that the IDE should recognize certain extensions by default, you can report a bug.
[{"Product":{"code":"SSJNRR","label":"Rational Elite Support for Eclipse"},"Business Unit":{"code":"BU050","label":"BU NOT IDENTIFIED"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"3.2.1;3.2.2;3.3;3.3.1;3.3.2;3.4","Edition":"","Line of Business":{"code":"","label":""}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21315284