yeomanly

Eclipse: Starting fresh a little less Painful

2008 October 16
tags: CFEclipse · Eclipse
by Mike Henke

Having problems with a corrupted Eclipse instance like line number not showing up or some other funky issue and you swear you have done all the correct steps to get it to work. Maybe starting with a fresh version of Eclipse is the best route.

Most people think of restarting with a pristine version of Eclipse as a hassle, you have to reset all your update sites, get your projects, and other small time consuming tasks.

Here are two tricks to make this process a little less painful. Exporting your update site list and getting your projects back quickly. I am using Eclipse SDK Version: 3.3.2 so depending on your Eclipse version it maybe slightly different.

Exporting Update Site:
Help —> Software Updates —> Find and Install —> Search for new features to install —> Export sites…

Install Update Sites

This will create a xml file you can then use to import your site list into the pristine version of Eclipse following the same process but using "Import sites…"

Then install the plugins you want.

So you have all the plugins but your Navigator has none of your old projects.

Restoring your projects:
Right-click in the Navigator view and select Import…

Eclipse Navigator Right-Click Menu

Then select General —> Existing Projects into Workspace

Eclipse - Import Existing Projects

In the next screen put your C drive or equivalent in the "Select root directory:" input field and select Next. Eclipse will search your drive and find any project folder. You can them select which project folders to add and select Finish.

Now you have your plugins and projects, it is just a little work adding your views and arranging to your liking.

Eclipse: Starting fresh a little less Painful

6 Responses leave one →
  1. marc esher
    Oct 16, 2008 at 12:01 PM

    Nice Mike!

  1. Jim Priest
    Oct 16, 2008 at 12:09 PM

    Does the export project handle SVN?

  1. Mike Henke
    Oct 16, 2008 at 2:04 PM

    @Jim - The importing "Existing Projects into a Workspace" will recongize if the existing project folder was using SVN with Subclipse or Subversive. I noticed the export --> "archive file" but i think it actually will zip up the whole project folder/files. I saw export --> preferences also. I wonder if that would give you any customizing of Eclipse from preferences so you won't have to redo those.

  1. Mike Henke
    Oct 16, 2008 at 2:16 PM

    "workspace preferences -- Preferences that are bound to workspaces. Use File > Export > Preferences from within Eclipse." http://tinyurl.com/64k8wk

  1. Michael Wiles
    Oct 17, 2008 at 5:11 AM

    Except that creating a new instance forgets your old preferences. You have to reconfigure those in the new one.

  1. Mike
    Oct 20, 2008 at 5:16 PM

    Won't exporting the preference File > Export > Preferences resolve reconfiguring your old preferences?

Leave a Reply

Leave this field empty: