That just happened to me after Eclipse updated itself 2025, it seems the default editor is overwritten when eclipse updates, which is a pain because I mainly used it for python not Java, so solution? uninstall eclipse, install it again and disable updates. Every time you want to update Eclipse for some reason, do it yourself on a fresh install. No need to waste your time, because another dev decided it was time to update their software.