cols[1] = format(m.getValue());
}
}
AvgValue avg = ms.getAverageValue(name);
MaxValue max = ms.getMaxValue(name);
if ((avg != null) || (max != null)) {
TreeItem row = createNewRow();
row.setForeground(getMetricForeground());
row.setImage(Activator.getDefault().getImageRegistry().get(
"metric"));
cols[0] = name
+ " (avg/max per "
+ MetricUtility.transferLevel(descriptors[i]
.getLevel()) + ")";
if (avg != null) {
cols[2] = format(avg.getValue());
}
if (max != null) {
cols[3] = format(max.getValue());
String handle = max.getHandle();
if (handle != null) {
IJavaElement element = JavaCore.create(handle);
cols[5] = element.getPath().toString();
row.setData("handle", handle);
row.setData("element", element);