Philipp Andre
Philipp Andre

Reputation: 1047

Export single Eclipse Perspective and Settings

I customized my Eclipse for a special Latex Perspective and saved this perspective as "MyLatex". I even added shortcuts in my texlipse preferences, so that I can type "tab"+strg+space to insert a table.

Now I would like to offer this to friends. I found out that I can use Export->General->Settings, but this exports ALL perspectives.

Is there any way to export only the perspective "myLatex" and the texlipse editor templates?

Best regards Philipp

Upvotes: 15

Views: 10807

Answers (3)

Tomasz Janicki
Tomasz Janicki

Reputation: 99

In my case I had to copy from one workspace to another

.metadata\.plugins\org.eclipse.e4.workbench

Upvotes: 2

lookfire
lookfire

Reputation: 338

There exists another way to do this.

Share Eclipse perspective layouts across multiple workspaces

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. Click Ok once you’ve entered a new name.

Note: You can choose to overwrite one of the default perspectives, eg. Java, without fear. However, I prefer to leave these intact, so always choose a new name, but you can choose whatever works for you.

enter image description here

Now you can go through the normal routine of exporting the preferences to a properties file via File > Export > General > Preferences. Then import the same file in another workspace via File > Import > General > Preferences. All you now have to do is switch over to the perspective you saved and all your layout settings will be restored. If you overwrote one of the default perspectives, you may have to select Window > Reset Perspective… to restore the saved settings.

If you’ve chosen to create a new perspective, be sure to point your Run/Debug settings to the new perspective under Window > Preferences > Run/Debug > Perspectives. For example, if you made a new perspective based on the Debug perspective, then you’ll need to change references to the Debug perspective to the My Debug for launchers you use.

Upvotes: 11

Alb
Alb

Reputation: 3681

I don't know of a nice way to export/import one perspective from eclipse, but maybe try the following:

open this file -

workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml

and copy the part that relates to your new perspective to the same file for the users you want to share it to. If this doesn't work you may have to replace the entire file in their workspace with your one.

Upvotes: 7

Related Questions