开发者

Export single Eclipse Perspective and Settings

开发者 https://www.devze.com 2023-01-02 20:24 出处:网络
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

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


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.

Export single Eclipse Perspective and Settings

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.


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.


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消