樓主事故原因:首先打開一個類,然后因為手速太快,在該類的編輯窗口中右鍵,單擊,不要問我點了啥,我也不知。后面發現該類的編輯器沒有顯示任何內容,但是可以發現代碼依然存在只是沒有顯示。
關閉該類的編輯器然后雙擊該類,彈出OLE Exception的窗口,提示:Cannot create the in-place editor.reason:this is probably because there is no ole editor registered against the type of file you were trying to open.
解決方式:改該類中右鍵--->open with--->Java Editor
完成!!!