I am currently making a GUI in swing using the built-in Eclipse WindowBuilder. I booted up Eclipse as normal and i opened the file and there was no code at all. Only the first line has an error line which says "Syntax error, Remove these tokens". This has happened to me previously while using Netbeans and it only occurs when i use Swing. I had been working hard on this project and i would appreciate a solution to restore the code.
Asked
Active
Viewed 58 times
0
-
Have a look in explorer - are the files there? If they are, open them in notepad - is the code there? – Alicia Sykes Jul 15 '17 at 16:54
-
No the code isn't there in notepad either – Lewis Solarin Jul 15 '17 at 16:55
-
1Tip: Add @Lissy (or whoever, the `@` is important) to *notify* the person of a new comment. – Andrew Thompson Jul 15 '17 at 16:57
-
All it says is "Nul", "Nul" repeatedly. – Lewis Solarin Jul 15 '17 at 16:58
-
@Lissy There is nothing in the notepad – Lewis Solarin Jul 15 '17 at 16:59
-
Possible duplicate of [Eclipse deleted my java and class files?](https://stackoverflow.com/questions/7879357/eclipse-deleted-my-java-and-class-files) – Gaurav Anand Jul 15 '17 at 17:03
-
Right click on the file and select 'Replace With > Local History...' to see what Eclipse has in its history. – greg-449 Jul 15 '17 at 17:03
-
@greg-449 it says "No local history for selected resource". – Lewis Solarin Jul 15 '17 at 17:14
-
Try right-clik on the file, choose Compare With/local history. This should open the History view and list previous modifications if any. If some dates are listed, double-click one one, if you liked it, you can copy modification from the source compare panel, there's little icon to do that. – ugo Jul 15 '17 at 17:34