Reputation: 53
I have lots of problems with encoding and Eclipse. I configured my Eclipse to "UTF-8" by default but sometimes, I have some projects whiches are in CP1252. So for dealing with that, I configue theses projects with "CP1252" :
I see all children folders are with this encoding because they are configured with "Inherited from container (CP1252)" but I don't know why my java sources hasn't this option :
And I cannot remove *.java files from contents types because all "Remove" buttons are greyed :
Any help will be appreciate.
Thanks !
Upvotes: 0
Views: 632
Reputation: 111142
Deleting the 'Default encoding' string so that it is empty should get the setting inherited from the container.
You need to press the 'Update' button after changing the string to update the default setting and then close the preference page with 'Apply and Close'.
Note: Content types like "Java Source File" cannot be removed because they are contributed by Eclipse plug-ins. Only content types you add manually can be removed.
Upvotes: 1