Reputation: 14439
It is possible to search in previous revisions of saved file? This is internal eclipse version system which is accessible on History view, not svn or anything like it.
Upvotes: 3
Views: 2318
Reputation: 901
You can search the Eclipse local history on your file system using unix commands.
eclipse-workspace/.metadata/.plugins/org.eclipse.core.resources/.history
grep
command below lists all files containing "WHATEVER", i.e. your latest changes.find
command below does the same plus it shows the last updated timestamp, so you can pick out the file with the latest changes.$ cd eclipse-workspace/.metadata/.plugins/org.eclipse.core.resources/.history
$ grep -r "WHATEVER"
- OR
$ find . -exec grep "WHATEVER" '{}' \; -ls 2>/dev/null
Upvotes: 0
Reputation: 11
You can create a new Project on the folder "(insert workspace root here)\.metadata\.plugins\org.eclipse.core.resources\.history" and do a file search on this project.
Don't forget to add a plain "*" to the "File name patterns" in the Search window, as the Eclipse history files have no file extension at all (so they would not be found by "*.*").
Upvotes: 1
Reputation: 9
right click the project in eclipse..then click history and maximize history by double clicking on it.. then check for a button's icon like multiple arrows click it and search with comments or author.
Upvotes: 0