Recipe 2.18 Restoring Deleted Resources

     

2.18.1 Problem

A needed file was deleted by mistake, and you want to restore it.

2.18.2 Solution

No problem. Restore the file using the container project's Restore from Local History context menu item.

2.18.3 Discussion

To restore a deleted file, right-click the file's project, and select Restore from Local History, opening the dialog shown in Figure 2-18. In the figure, a .class file that was deleted is restored.

Figure 2-18. Restoring a deleted file
figs/ecb_0218.gif

Because the Java perspective's Package Explorer doesn't display all files, including .class files, you'll need to switch to the Navigator view in the Java perspective or use the Resource perspective if you want to restore .class files.




Eclipse Cookbook
Inside XML (Inside (New Riders))
ISBN: 596007108
EAN: 2147483647
Year: 2006
Pages: 232
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net