Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: compare editor colors were changed by a plugin, how can I reset these?

Tags:

eclipse

A plugin I installed recently (Aptana Studio) modified all sorts of preference settings, and uninstalling the plugin did not get me back to where I was before so I have to revert the settings by hand. One of these is the colors used for the changed text in the compare editor(s). I don't see how I can modify these preferences via the "Colors and Fonts" settings, perhaps because it's not clear which color settings I need to modify.

Attached is a screenshot showing how things currently look, i.e. black and dark grey are used to highlight changed sections of Java code, and I want to have something which is easier to read (it used to be that these were light colors which worked well with my other color settings).

Screenshot

Can anyone comment as to which color settings I should modify?

like image 560
James Adams Avatar asked Aug 08 '11 20:08

James Adams


3 Answers

I had the same problem using Aptana Studio 3. It messed up my Eclipse Preferences. For some reason you cannot reset the background color for the text compare window under Window->Preferences.

Anyway, do the following to fix it:

Go into your working directory you are using when starting Eclipse, lets say its /home/src In /home/src there is a ".metadata" folder. Then go into the ".plugins" folder. Then "org.eclipse.core.runtime". Then ".settings". Now there should be file called "org.eclipse.compare.prefs". Open it, find the line starting with "AbstractTextEditor.Color.Background". This one is some sort of general global background color for TextEditors from type AbstractTextEditor. Change it to your needs using RGB color values. Save it. Restart Eclipse. Worked for me.

like image 137
NovumCoder Avatar answered Nov 20 '22 02:11

NovumCoder


Go to Preferences -> Aptana Studio -> Themes and change to Eclipse.

like image 17
Jason Kantz Avatar answered Nov 20 '22 01:11

Jason Kantz


There is a Text Compare category in Colors and Fonts, where I found the settings I believe were changed. I describe my colors here:

Conflicting change color: 255, 0, 0 (RGB red) Incoming change color: 0, 0, 255 (RGB blue) Outgoing change color: 0, 0, 0 (RGB black) Resolved change color: 0, 255, 0 (RGB green)

like image 4
Zoltán Ujhelyi Avatar answered Nov 20 '22 01:11

Zoltán Ujhelyi