1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Temporary change history colors. Longer term, we should and will use the change color from preferences.

This commit is contained in:
Ted Williams 2007-06-30 03:40:30 +00:00
parent f5f70da342
commit 26a73ba3b2

View file

@ -58,9 +58,8 @@ import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.jface.viewers.TextCellEditor;
import org.eclipse.jface.viewers.TreePath;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
@SuppressWarnings("restriction")
public class RegisterLayoutNode extends AbstractExpressionLayoutNode<IRegisterDMData>
@ -257,9 +256,9 @@ public class RegisterLayoutNode extends AbstractExpressionLayoutNode<IRegisterDM
.getCache(RegisterLayoutNode.this.getVMProvider().getPresentationContext())
.getArchivedModelData(valueDmc);
if(oldData != null && oldData.getFormattedValue().equals(getData().getFormattedValue()))
update.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK).getRGB(), labelIndex);
update.setForeground(new RGB(0,0,0), labelIndex);
else
update.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED).getRGB(), labelIndex);
update.setForeground(new RGB(255,0,0), labelIndex);
update.done();
}