Reputation: 6484
I've just installed Eclipse Oxygen (on Ubuntu) after using Eclipse Mars. I'd really like to get my hands on the preferences file that stored the custom java syntax coloring that I had set. I've been searching through files in the .metadata
directory of my old workspace, but I can't find anything. I was using the Moonrise UI theme, in case that's relevant.
I know I might not be able to re-use the old prefs file directly, but at least I'll have the colors available (presumably hex values).
I've found a prefs file at:
myworkspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.jsdt.ui.prefs
...which I thought was the correct file. I tried importing it using the eclipse wizard and by overwriting my Oxygen file of the same name with the Mars file (and restarting eclipse). Neither had any effect. The java syntax coloring is the same default coloring that my theme provided. Maybe that's the problem? I'm using the Darkest Dark UI theme. Does that store coloring prefs somewhere else?
Upvotes: 0
Views: 148
Reputation: 111142
The preference file you mention is for the Javascript development tools (JSDT).
The main Java development tools (JDT) UI preferences are in the org.eclipse.jdt.ui.prefs
file in the same directory.
But this contains all the Java UI preferences, you will overwrite everything changing this. Also there is no guarantee that preference files from different releases are compatible.
Upvotes: 1