}
@Override
public void run() {
Border border = target.getBorder();
if (border == null || border.getClass() != borderClass) {
IUndoableOperation operation = new BorderSwitchOperation(target, factory);
WidgetAdapter targetAdapter = WidgetAdapter.getWidgetAdapter(target);
operation.addContext(targetAdapter.getUndoContext());
IOperationHistory history = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
try {
history.execute(operation, null, null);
setChecked(true);
} catch (ExecutionException e) {