[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: Mon, 02 Sep 2013 16:49:31 -0700

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

diffstat:

 
editor.indent.project/src/org/netbeans/modules/editor/indent/project/FormattingCustomizerPanel.java
 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git 
a/editor.indent.project/src/org/netbeans/modules/editor/indent/project/FormattingCustomizerPanel.java
 
b/editor.indent.project/src/org/netbeans/modules/editor/indent/project/FormattingCustomizerPanel.java
--- 
a/editor.indent.project/src/org/netbeans/modules/editor/indent/project/FormattingCustomizerPanel.java
+++ 
b/editor.indent.project/src/org/netbeans/modules/editor/indent/project/FormattingCustomizerPanel.java
@@ -156,6 +156,8 @@
 
     // this is called when OK button is clicked to store the controlled 
preferences
     public void actionPerformed(ActionEvent e) {
+        SwingUtilities.invokeLater(new Runnable() {
+            public @Override void run() {
         if 
(DEFAULT_PROFILE.equals(pf.getPreferences("").parent().get(USED_PROFILE, 
DEFAULT_PROFILE))) { //NOI18N
             // no per-project formatting settings
             Preferences p = ProjectUtils.getPreferences(pf.getProject(), 
IndentUtils.class, true);
@@ -185,8 +187,6 @@
         // XXX: just use whatever value, it's ignored anyway, this is here 
in order
         // to fire property change events on documents, which are then 
intercepted by
         // the new view hierarchy (DocumentView)
-        SwingUtilities.invokeLater(new Runnable() {
-            public @Override void run() {
                 JTextComponent lastFocused = 
EditorRegistry.lastFocusedComponent();
                 if (lastFocused != null) {
                     
lastFocused.getDocument().putProperty(SimpleValueNames.TEXT_LINE_WRAP, ""); 
//NOI18N

[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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close