mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-36910
This commit is contained in:
+7
@@ -48,6 +48,7 @@ import com.intellij.openapi.progress.ProgressIndicator;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.vfs.ReadonlyStatusHandler;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiManager;
|
||||
@@ -579,6 +580,9 @@ public final class AndroidDesignerEditorPanel extends DesignerEditorPanel {
|
||||
|
||||
@Override
|
||||
protected boolean execute(ThrowableRunnable<Exception> operation, boolean updateProperties) {
|
||||
if (!ReadonlyStatusHandler.ensureFilesWritable(getProject(), myFile)) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
myPSIChangeListener.stop();
|
||||
operation.run();
|
||||
@@ -596,6 +600,9 @@ public final class AndroidDesignerEditorPanel extends DesignerEditorPanel {
|
||||
|
||||
@Override
|
||||
protected void execute(List<EditOperation> operations) {
|
||||
if (!ReadonlyStatusHandler.ensureFilesWritable(getProject(), myFile)) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
myPSIChangeListener.stop();
|
||||
for (EditOperation operation : operations) {
|
||||
|
||||
Reference in New Issue
Block a user