The Artima Developer Community
Sponsored Link

Java Buzz Forum
Eclipse tip: Local History

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vasanth Dharmaraj

Posts: 594
Nickname: vazz
Registered: Oct, 2003

Vasanth Dharmaraj is J2EE developer learning Dot Net
Eclipse tip: Local History Posted: Jun 2, 2004 9:24 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Vasanth Dharmaraj.
Original Post: Eclipse tip: Local History
Feed Title: Vasanth Dharmaraj's Blogs
Feed URL: /SyndicationService.asmx/GetRssCategory?categoryName=Technology%7CJava
Feed Description: my thoughts on dot net, java, linux, formula one, xbox gamming...(my java category)
Latest Java Buzz Posts
Latest Java Buzz Posts by Vasanth Dharmaraj
Latest Posts From Vasanth Dharmaraj's Blogs

Advertisement

Sometimes when I am editing a file I want to restore a change I previously made like deleting a method. I can always use undo. But if I changed something after deleting the method that I do not want to undo, things get a bit tricky. Eclipse has a elegant solution for this. Eclipse keeps track of the changes to a file each time you save it. These changes are stored as local history.

There are a few ways you can use the local history. You can compare the current contents of the file with previous versions, restore part of or the complete file from the previous version. The local history can be used form the context menus in package explorer, navigator or Java editor.

Using local history

The Java editor lets you compare or restore Java elements. So I can restore the deleted method by choosing 'Local History>Restore from…' in the editors context menu. The dialog lets you view all the deleted Java elements. I can pick the one I want and click restore. That simple.

Restore form local history

I can configure how much history I want to maintain. This configuration can be found at Window>Preference>Workbench>Local History.

Local history configuration


Read: Eclipse tip: Local History

Topic: Links from the Past Few Days Previous Topic   Next Topic Topic: The Petition to End All Petitions

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use