mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resource bundle editor: undo of property value doesn't invoke log.error in DocumentUndoProvider
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user