content.add(Box.createVerticalStrut(8), 0);
}
private void setColor(Color color, boolean isChanging) {
if (isChanging && ! wasChanging) {
Operation op = getOperation();
op.changeBatchStarted();
}
else if (wasChanging && ! isChanging) {
Operation op = getOperation();
op.changeBatchEnded();
}
wasChanging = isChanging;
ColorPickerOperation op = (ColorPickerOperation) getOperation();
Map<String, Double> map = op.setColor(color);
updateColor(map);
if (! undoSupport.isRestoring() && ! isChanging) {
undoSupport.postEdit(LOCALE.get("SetColorEditName"));
}
}