X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2Ftables%2Fmi%2FParameterLabelProvider.java;h=1c10940abc019bb9d38838cc5a1bccc779893f2e;hb=6b01ce390c1bb33d133902479645abfcc293704f;hp=46e3ea7b6a8ce5a2238183559d74c352abdbd52d;hpb=fb8edb1cdcc8a587ecedd498ac6c48aa27afbdc4;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/ParameterLabelProvider.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/ParameterLabelProvider.java index 46e3ea7b..1c10940a 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/ParameterLabelProvider.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/ParameterLabelProvider.java @@ -1,15 +1,18 @@ package net.mograsim.plugin.tables.mi; import org.eclipse.jface.viewers.ColumnLabelProvider; +import org.eclipse.swt.graphics.Color; public class ParameterLabelProvider extends ColumnLabelProvider { private final int index; + private final ColorProvider cProv; - public ParameterLabelProvider(int index) + public ParameterLabelProvider(ColorProvider cProv, int index) { super(); this.index = index; + this.cProv = cProv; } @Override @@ -18,4 +21,16 @@ public class ParameterLabelProvider extends ColumnLabelProvider InstructionTableRow row = (InstructionTableRow) element; return row.data.getCell(row.address).getParameter(index).toString(); } + + @Override + public Color getBackground(Object element) + { + return cProv.getBackground(element, index); + } + + @Override + public Color getForeground(Object element) + { + return cProv.getForeground(element, index); + } }