Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

saving eclipse perspective layout and other things

Tags:

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.

like image 917
Persimmonium Avatar asked May 13 '11 11:05

Persimmonium


People also ask

How do I export an Eclipse perspective?

To save your perspective, select Window > Save Perspective As… from the application menu. A dialog should popup (shown below), prompting you for a perspective name. Enter a name that you'll remember, eg. My Java or Debug Jack.

How do I copy a workspace from one Eclipse to another?

To use this feature, first open the workspace that contains your customised layout. Then select File > Switch Workspace > Other… which will open a dialog prompting you for an existing/new workspace. Select the workspace, then click the Copy Settings collapsible section.

What are the perspectives available in Eclipse?

For instance, the standard Eclipse platform includes a Java perspective and a Team perspective. The Java perspective defines a layout containing the Package, Hierarchy, Outline and Tasks view. This is useful for java development. The Team perspective defines a layout containing the Repositories and Synchronize view.


2 Answers

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).

like image 137
lschin Avatar answered Sep 18 '22 15:09

lschin


As of Eclipse Neon (and possibly Mars, as well), you can copy the following two directories, to share your workbench and settings/preferences amongst your different workspaces:

    [workspace]/.metadata/.plugins/org.eclipse.core.runtime/.settings     [workspace]/.metadata/.plugins/org.eclipse.e4.workbench 

(Side Note: The Copy Settings dialog would not work for me, as it wouldn't permit me to select either checkbox.)

like image 41
Antonio Malcolm Avatar answered Sep 18 '22 15:09

Antonio Malcolm