Technote (troubleshooting)
Problem(Abstract)
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.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.