projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Non-default values are now highlighted in the InstructionTable
[Mograsim.git]
/
plugins
/
net.mograsim.plugin.core
/
src
/
net
/
mograsim
/
plugin
/
tables
/
mi
/
ParameterLabelProvider.java
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
46e3ea7
..
1c10940
100644
(file)
--- 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;
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;
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;
{
super();
this.index = index;
+ this.cProv = cProv;
}
@Override
}
@Override
@@
-18,4
+21,16
@@
public class ParameterLabelProvider extends ColumnLabelProvider
InstructionTableRow row = (InstructionTableRow) element;
return row.data.getCell(row.address).getParameter(index).toString();
}
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);
+ }
}
}