use of de.janrufmonitor.ui.jface.application.editor.EditorController in project janrufmonitor by tbrandt77.
the class CallerColoringAction method run.
public void run() {
Viewer v = this.m_app.getApplication().getViewer();
if (v != null && v instanceof TreeViewer) {
Tree t = ((TreeViewer) v).getTree();
ICallerList cl = ((EditorController) this.m_app.getController()).getCallerList();
ICaller c = null;
for (int i = 0, n = cl.size(); i < n; i++) {
c = cl.get(i);
Color color = this.getColor(c, t);
if (color != null) {
t.getItem(i).setForeground(color);
}
if (i % 2 == 0) {
t.getItem(i).setBackground(getIterationColor(t));
}
}
}
}
Aggregations