public OpControl addGenericControl(OperationType type, int index) {
GenericOperation op =
(GenericOperation) engine.insertOperation(type, index);
OpControl control;
if (op instanceof ColorPickerDropperOperation) {
control = new ColorPickerDropperControl(
(ColorPickerDropperOperation) op, this
);
}
else if (op instanceof ColorDropperOperation) {
if (op instanceof RawAdjustmentOperation) {