if (currentEditor != null) {
stoppingEditing = true;
WidgetAdapter adapter = currentEditor.getAdapter();
IEditor iEditor = currentEditor.getEditor();
try {
iEditor.validateValue();
Object newValue = iEditor.getValue();
Object oldValue = iEditor.getOldValue();
if (isValueChanged(oldValue, newValue)) {
IUndoableOperation operation = new SetWidgetValueOperation(adapter, oldValue, newValue);
IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();