From 7d5dca81eac02c918e2f1c3b2743a9bc1f044625 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 17 Jun 2014 15:39:23 +0400 Subject: [PATCH] resource bundle editor: undo of property value doesn't invoke log.error in DocumentUndoProvider --- .../intellij/lang/properties/editor/ResourceBundleEditor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleEditor.java b/plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleEditor.java index dc3937d42f63..b3799a338b8c 100644 --- a/plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleEditor.java +++ b/plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleEditor.java @@ -36,6 +36,7 @@ import com.intellij.openapi.actionSystem.DataProvider; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.command.CommandProcessor; import com.intellij.openapi.command.WriteCommandAction; +import com.intellij.openapi.command.undo.UndoConstants; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.*; import com.intellij.openapi.editor.colors.EditorColorsManager; @@ -341,6 +342,7 @@ public class ResourceBundleEditor extends UserDataHolderBase implements FileEdit writeEditorPropertyValue(editor, propertiesFile); } }); + editor.getDocument().putUserData(UndoConstants.DONT_RECORD_UNDO, Boolean.TRUE); gc.gridx = 0; gc.gridy = y++; gc.gridheight = 1;