resource bundle editor: undo of property value doesn't invoke log.error in DocumentUndoProvider

This commit is contained in:
Dmitry Batkovich
2014-06-17 15:39:57 +04:00
parent 1789fdece3
commit 7d5dca81ea
@@ -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;