mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not invoke write command under progress
This commit is contained in:
+6
-6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -337,13 +337,13 @@ public abstract class AbstractFileProcessor {
|
||||
ProgressManager.getInstance().runProcessWithProgressSynchronously(new Runnable() {
|
||||
public void run() {
|
||||
readAction.run();
|
||||
new WriteCommandAction(myProject, title, null) {
|
||||
protected void run(Result result) throws Throwable {
|
||||
writeAction.run();
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
}, title, true, myProject);
|
||||
new WriteCommandAction(myProject, title, null) {
|
||||
protected void run(Result result) throws Throwable {
|
||||
writeAction.run();
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
private static final Logger logger = Logger.getInstance(AbstractFileProcessor.class.getName());
|
||||
|
||||
Reference in New Issue
Block a user