Eclipse Cannot create in-place editor

前端 未结 6 1375
难免孤独
难免孤独 2021-02-13 15:30

I have a troubleshoot problem. My eclipse don\'t want open class in the package editor.

Error, what i\'m having - \"

相关标签:
6条回答
  • 2021-02-13 16:03

    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.

    0 讨论(0)
  • 2021-02-13 16:07

    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.

    0 讨论(0)
  • 2021-02-13 16:09

    Try:

    1. right click--> copy class
    2. go to desktop and paste
    3. back to eclipse right click delete the class
    4. copy and paste from desktop

    Thats works for me.

    0 讨论(0)
  • 2021-02-13 16:13

    Probably your File Association settings are messed up.

    1. Open Window -> Preferences -> General -> Editors -> File Associations.
    2. Check if the file type (*.java) is in the list.
      1. If it's in the list, make sure the correct editor is selected as default.
      2. If it's not in the list, add it and assicate it with the correct editor.
    0 讨论(0)
  • 2021-02-13 16:18

    Had the same issue with .HTML files.

    Despite my File Associations were correctly set, the following is a workaround that solved the problem:

    1. Right Click on the file of your project -> Open with
    2. Check other Internal Editor -> select the Editor of your choice (my case = HTML Editor)
    3. At the bottom, check "Use this editor for all ... files" + "Use it for all.."
    0 讨论(0)
  • 2021-02-13 16:20

    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.

    0 讨论(0)
提交回复
热议问题