Color color;
if (colorMap.containsKey(sID)) {
return (Color) colorMap.get(sID);
}
try {
int[] rgb = getColorValue(sID);
if (rgb[0] > -1) {
color = ColorCache.getColor(Display.getCurrent(), rgb[0], rgb[1],
rgb[2]);
} else {
color = null;
}
} catch (Exception e) {
// IMP.getLogger().log(LoggerChannel.LT_ERROR,
// "Failed loading color : color." + colorNames[i]);
color = null;
}
if (color == null) {
String sFallBackID = (String) mapFallBack.get(sID);
if (sFallBackID != null) {
color = getColor(sFallBackID);
}
}
colorMap.put(sID, color);
return color;