[hg] main-silver: Issue #234671: Deadlock when closing project p...

  • From: Dusan Balek < >
  • To:
  • Subject: [hg] main-silver: Issue #234671: Deadlock when closing project p...
  • Date: Wed, 04 Sep 2013 18:07:43 -0700

changeset f62664e48e84 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f62664e48e84
description:
        Issue #234671: Deadlock when closing project properties - fixed.

diffstat:

 editor/src/org/netbeans/modules/editor/NbEditorDocument.java |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (23 lines):

diff --git a/editor/src/org/netbeans/modules/editor/NbEditorDocument.java 
b/editor/src/org/netbeans/modules/editor/NbEditorDocument.java
--- a/editor/src/org/netbeans/modules/editor/NbEditorDocument.java
+++ b/editor/src/org/netbeans/modules/editor/NbEditorDocument.java
@@ -79,6 +79,7 @@
 import org.netbeans.modules.editor.lib2.EditorPreferencesDefaults;
 import org.netbeans.modules.editor.lib2.view.PrintUtils;
 import org.openide.util.Lookup;
+import org.openide.util.RequestProcessor;
 import org.openide.util.lookup.Lookups;
 
 /**
@@ -278,7 +279,11 @@
                     
                     if (origValue == null) {
                         // XXX: workaround for #137528, touches project 
settings
+                        RequestProcessor.getDefault().post(new Runnable() {
+                            public void run() {
                         IndentUtils.indentLevelSize(NbEditorDocument.this);
+                            }
+                        });
                     } else {
                         // this property should only ever be set once. even 
if it
                         // is set more times it must never be set to a 
different value

[hg] main-silver: Issue #234671: Deadlock when closing project p...

Dusan Balek 09/02/2013

<Possible follow-up(s)>

[hg] main-silver: Issue #234671: Deadlock when closing project p...

Dusan Balek 09/05/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close