Issue #243531 - total freezing of IDE during Java text editing - fixed.
1.1 --- a/java.debugjavac/src/org/netbeans/modules/java/debugjavac/DecompiledTab.java Fri Apr 04 11:32:07 2014 +0200
1.2 +++ b/java.debugjavac/src/org/netbeans/modules/java/debugjavac/DecompiledTab.java Fri Apr 18 10:24:29 2014 +0200
1.3 @@ -477,14 +477,20 @@
1.4 }
1.5 });
1.6
1.7 - try {
1.8 - FileObject decompiledFO = NbEditorUtilities.getFileObject(doc);
1.9 - SaveCookie sc = decompiledFO != null ? DataObject.find(decompiledFO).getLookup().lookup(SaveCookie.class) : null;
1.10 + DECOMPILE_RUNNER.post(new Runnable() {
1.11
1.12 - if (sc != null) sc.save();
1.13 - } catch (IOException ex) {
1.14 - Exceptions.printStackTrace(ex);
1.15 - }
1.16 + @Override
1.17 + public void run() {
1.18 + try {
1.19 + FileObject decompiledFO = NbEditorUtilities.getFileObject(doc);
1.20 + SaveCookie sc = decompiledFO != null ? DataObject.find(decompiledFO).getLookup().lookup(SaveCookie.class) : null;
1.21 +
1.22 + if (sc != null) sc.save();
1.23 + } catch (IOException ex) {
1.24 + Exceptions.printStackTrace(ex);
1.25 + }
1.26 + }
1.27 + });
1.28 }
1.29 }
1.30 }