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:
parent
f5f70da342
commit
26a73ba3b2
1 changed files with 3 additions and 4 deletions
|
@ -58,9 +58,8 @@ import org.eclipse.jface.viewers.CellEditor;
|
||||||
import org.eclipse.jface.viewers.ICellModifier;
|
import org.eclipse.jface.viewers.ICellModifier;
|
||||||
import org.eclipse.jface.viewers.TextCellEditor;
|
import org.eclipse.jface.viewers.TextCellEditor;
|
||||||
import org.eclipse.jface.viewers.TreePath;
|
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.Composite;
|
||||||
import org.eclipse.swt.widgets.Display;
|
|
||||||
|
|
||||||
@SuppressWarnings("restriction")
|
@SuppressWarnings("restriction")
|
||||||
public class RegisterLayoutNode extends AbstractExpressionLayoutNode<IRegisterDMData>
|
public class RegisterLayoutNode extends AbstractExpressionLayoutNode<IRegisterDMData>
|
||||||
|
@ -257,9 +256,9 @@ public class RegisterLayoutNode extends AbstractExpressionLayoutNode<IRegisterDM
|
||||||
.getCache(RegisterLayoutNode.this.getVMProvider().getPresentationContext())
|
.getCache(RegisterLayoutNode.this.getVMProvider().getPresentationContext())
|
||||||
.getArchivedModelData(valueDmc);
|
.getArchivedModelData(valueDmc);
|
||||||
if(oldData != null && oldData.getFormattedValue().equals(getData().getFormattedValue()))
|
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
|
else
|
||||||
update.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED).getRGB(), labelIndex);
|
update.setForeground(new RGB(255,0,0), labelIndex);
|
||||||
|
|
||||||
update.done();
|
update.done();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue