[hg] main-silver: #222624 - GlobalFormatAction handles UserQuest...

  • From: Marek Fukala < >
  • To:
  • Subject: [hg] main-silver: #222624 - GlobalFormatAction handles UserQuest...
  • Date: Tue, 16 Jul 2013 14:04:11 -0700

changeset aec17527c909 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/aec17527c909
description:
        #222624 - GlobalFormatAction handles UserQuestionException thrown 
from EditorCookie.saveDocument()  as the HTML implementation does some 
encoding checks which may asks the user there.

diffstat:

 
editor.global.format/src/org/netbeans/modules/editor/global/format/GlobalFormatAction.java
 |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff --git 
a/editor.global.format/src/org/netbeans/modules/editor/global/format/GlobalFormatAction.java
 
b/editor.global.format/src/org/netbeans/modules/editor/global/format/GlobalFormatAction.java
--- 
a/editor.global.format/src/org/netbeans/modules/editor/global/format/GlobalFormatAction.java
+++ 
b/editor.global.format/src/org/netbeans/modules/editor/global/format/GlobalFormatAction.java
@@ -246,6 +246,8 @@
                     }
 
                     ec.saveDocument();
+                } catch (UserQuestionException uqe) {
+                    uqe.confirmed();
                 } catch (IOException ex) {
                     Exceptions.printStackTrace(ex);
                 } finally {

[hg] main-silver: #222624 - GlobalFormatAction handles UserQuest...

Marek Fukala 07/16/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