DEVV
DEVV

Reputation: 61

Eclipse Syntax Coloring reset after restart

I installed Ubuntu 15 new and I installed eclipse Mars.

Now, I want to have the syntax highlighting exactly like in visual studio, so i downloadet the .epf here http://eclipsecolorthemes.org/?view=theme&id=23347 and imported it into eclipse. Until here, I have no problems, but when I restart eclipse the highlighting will reset after 5 seconds to default.

I don't know why, but when I start eclipse via sudo, I don't have the problem. I have no more ideas...

I saw, that eclipse run this on startup: http://pastebin.com/6YGVxfhU

I dont know, how i can stop it

Upvotes: 3

Views: 2727

Answers (2)

blackstone
blackstone

Reputation: 11

If you want to use Oomph to track your syntax, you can import the .epf file into the preference recorder:

  1. Open Window > Preferences and go to Oomph | Setup Tasks | Preference Recorder
  2. Make sure Record into is selected and whichever profile you want to record to is selected (probably User.) Open the recorder file using the button next to the dropdown.
  3. A .setup file will open in the editor. Close the preference window. An Oomph toolbar should have appeared. The third button is Import Preferences. Oomph - Import Preferences Button
  4. Click it, browse to your .epf file and open it. Move whatever preferences you want to import from Available Preferences to Selected Preferences and click OK.
  5. The preferences will be added to the .setup file, under the root node (probably User.) Drag them into the User Preferences node (the first child node with the folder icon) and delete any existing nodes with conflicting names (it won't combine them.)
  6. Save the file.

You should now be able to restart Eclipse and have Oomph load in your correct syntax coloring.

Answer from this eclipse forum post with a few extra steps I had to do to get it working.

Upvotes: 1

Jonah Graham
Jonah Graham

Reputation: 7970

To disable all Oomph startup tasks

In preferences, choose Oomph | Setup Tasks. Then check the Skip automatic task execution at startup time.

enter image description here

To disable which preferences Oomph tracks

  1. In preferences, choose Oomph | Setup Tasks | Preference Recorder.
  2. Check the Record into: checkbox.
  3. In the table uncheck the preferences you don't want synchronized. For your case it is probably the set of /instance/org.eclipse.ui.workbench/[...].
  4. (Optional) Click Open the recorder target file button and fully edit your preferences.

recorderer

Upvotes: 5

Related Questions