I have a troubleshoot problem. My eclipse don\'t want open class in the package editor.
Error, what i\'m having -
I encountered this problem in my filename.xhtml
using Eclipse Mars.
I got it fixed by:
1. Right click on the offending file.
2. Choosing Open With -> Default Editor.
After this, everything went back to the way it was.
I had the same error and I fixed it by changing the workspace folder in Aptana: "General -> Startup and Shutdown -> Workspaces". I removed existing and added following one: "C:\Aptana_Studio\workplace" (instead of a workspace folder in my user profile).
JFYI: I found this error occurred after I've installed Eclipse for Java.
Try:
- right click--> copy class
- go to desktop and paste
- back to eclipse right click delete the class
- copy and paste from desktop
Thats works for me.
Probably your File Association settings are messed up.
Had the same issue with .HTML files.
Despite my File Associations were correctly set, the following is a workaround that solved the problem:
I had the same error when I start my eclipse.
I fixed it by delete the .project file, and re-add the project to my workspace.