Mistakenly overridden the content of a java file in Eclipse? And don’t know how to trace overridden content in eclipse.No worries we will provide a simple trick to trace it.
In a hurry, to complete the automation code, many of us mistakenly override it with the old code and we feel Oh my Gosh!! We can’t do anything rather than rewrite it again. 🙁
But that is not the case, there is good news, we can have our latest version code in our Eclipse.
In eclipse, we have an option to trace overridden content. We will show that below
SimplyRight Click
on the file and select"Team” > “Show Local History"

There you are…!!!
You can see all the edits made on that file.

Click on the Revision Time Java File with different versions saved will be opened.

Also, we can view changes made in the whole workspace on a specific date in Eclipse using Compare With
Right Click
on the file and select"Compare With" > "Local History"
.
It will list the file history by date. Click on any date it will display the history of the file content with the current version.
We can also perform replace actions using
Right Click
on the file and select"Replace With" > "Local History"
.
Git repository history can also viewed by
Right Click
on the file and select"Team > "Show in History"
.
We can see the below details with the history made on that file.

Conclusion
This article covered how to trace back an overridden content in your eclipse worksapace. We hope the content is useful. Happy Automating.