saving eclipse perspective layout and other things

Persimmonium picture Persimmonium · May 13, 2011 · Viewed 12.7k times · Source

every time I throw away my .metadata (due to some corruption or something) and start with a new one, first thing I do is:

  1. Import my saved preferences
  2. Load existing projects from disk

BUT there are still some things I must configure manually in order to have my setup as I have before, specially in my case (there are probably other things):

  1. I have to add the Perspectives I use and remove the ones I don't
  2. I have to configure the layout of those Perspectives (specially java one, to use properly two monitors).
  3. Add a bugzilla task repostiry for mylyn, and configure a couple of queries

Is there a way to save those thigns so I can load them back when I need? I wish they were stored in preferences...

I am on latest 3.6.

Answer

lschin picture lschin · May 13, 2011

Two solutions :

  1. MENU -> File -> Switch workspace -> Other -> Copy Settings of
    • Workbench Layout
    • Working Sets
  2. Copy/backup and replace following folder to new created Workspace.
    • [workspace]/.metadata/.plugins/org.eclipse.ui.workbench/
    • [workspace]/.metadata/.plugins/org.eclipse.core.runtime/.settings/

Personally I prefer (2).