- This topic has 2 replies, 2 voices, and was last updated 10 years, 11 months ago by sdc-support.
-
AuthorPosts
-
sdc-supportMemberIt can be hard to determine which Eclipse preferences you use. Sometimes you’ll export preferences and when you apply them they seem to be lost. An interesting point to note is that some preferences can be stored on the project and those can override global settings. Some plugins even store their preferences in non-standard locations, those will never get applied via an Eclipse preference file (.epf).
Here’s a clever way to determine which preferences you use and how they’re stored.
1. In your Eclipse with all the plugins you want, create a new workspace, let’s say C:\ws1.
2. Set the preferences the way you want them set.
3. Create a new workspace, C:\ws2.
4. Create yet another workspace, C:\ws-compare.
5. In the C:\ws-compare workspace, create a General project named Compare.
6. In the Compare project, create two folders one linked to C:\ws1 and the other to C:\ws2. Linked folders can be created via New Folder->Advanced->Link to Alternate Location.
7. In the Navigator/Explorer turn off filtering of resources that start with “.”, it’ll be “.* resources” in the menu.
8. Select ws1 and ws2 in the Compare project, right click and do a Compare with->Each other.Preferences that are stored via the standard Eclipse preference structure can be found in .metadata/.plugins/org.eclipse.core.runtime/.settings
Differences in other .metadata/.plugins could indicate preferences being stored via non-Eclipse-standard mechanisms. Never fear! With SDC you can apply those preferences too using the .wrkspc file. See your admin console documentation for how to use the .wrkspc file.
Finally, some plugins will modify the installation directory. You can use this technique as well. Copy your installation before step 2, skip step 3, and use your installation directory and your copy of the installation directory in step 6.
ic.gc.caParticipantWould be a nice feature to include/expose the Preference Recorder from the Workspace Mechanic.
https://code.google.com/a/eclipselabs.org/p/workspacemechanic/wiki/PreferenceRecorder
sdc-supportMemberThanks for your suggestion. I’m logging an internal PR so we can discuss about it, and see if it can be done and the timeline for it.
Best Regards
Ignacio
SDC Support -
AuthorPosts