}
public void setValueAt(Object o, int rowIndex, int columnIndex) {
Object actualValue = getValueAt(rowIndex, columnIndex);
if (!CommonUtil.safeEqual(actualValue, o)) {
EnvironmentType environmentType = environmentTypes.get(rowIndex);
if (columnIndex == 0) {
environmentType.setName((String) o);
} else if (columnIndex == 1) {
environmentType.setDescription((String) o);
} else if (columnIndex == 2) {
Color color = (Color) o;
DBNColor environmentColor = environmentType.getColor();
if (environmentColor == null) {
environmentColor = new DBNColor(color, color);
} else {
environmentColor = environmentColor.set(color);
}
environmentType.setColor(environmentColor);
}
notifyListeners(rowIndex, rowIndex, columnIndex);
}
}