BD at Rivenhill
BD at Rivenhill

Reputation: 12953

How to automatically import eclipse editor preferences that were previously exported?

I have a similar problem to this guy: Importing/Exporting Project Preferences, but my problem is worse, I need to create a new workspace (i.e. new base directory) for every program or version that I work on. I have some common preferences (formatter, font size, etc) that I have exported to a file, which I then import every time I create a new workspace, but would like to skip the step of manually importing the .epf file. Has anybody seen an easy way to automate this?

EDIT: to help potential respondents answer the question, here is my workflow for handling a bug patch. Perhaps I'm doing something wrong in general that you could correct (since I've only been using Eclipse for a couple of years and tend to prefer emacs so I haven't spent a lot of time learning new Eclipse features)?

  1. Create new directory for the workspace.
  2. Start Eclipse editor and open clean workspace.
  3. Check out a CVS directory containing .psf files for the various programs (necessary because of a pre-existing CVS tree structure that does not play nice with Eclipse).
  4. Use team import on the .psf file associated with the program I'm working on to pull in the necessary projects.
  5. Switch all projects to the branch tag associated with the release in question.
  6. Work...

Upvotes: 3

Views: 2471

Answers (2)

walderik
walderik

Reputation: 111

I think that Workspace Mechanic solves all your problems. http://code.google.com/a/eclipselabs.org/p/workspacemechanic/

Upvotes: 4

hhafez
hhafez

Reputation: 39750

copy your original workspace. Easy, reliable, but will also copy all your projects.

Upvotes: 2

Related Questions