'Convert Line Delimiters to' action does not work
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.
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.
More support for:
Rational Elite Support for Eclipse
Software version: 3.2.1, 3.2.2, 3.3, 3.3.1, 3.3.2, 3.4
Operating system(s): Linux, Windows
Reference #: 1315284
Modified date: 18 November 2008