DekGenius.com
Previous Section  < Day Day Up >  Next Section

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.


    Previous Section  < Day Day Up >  Next Section