This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 619d5a3  [NETBEANS-3252] NodeListModel must clear VisualizerNode count 
cache before dispatching event.
     new c1b1c17  Merge pull request #1580 from sdedic/bugfix/nodelist_cache
619d5a3 is described below

commit 619d5a3f873d963c5fbf86e38d7f8a75df451a70
Author: Svata Dedic <svatopluk.de...@oracle.com>
AuthorDate: Fri Oct 18 17:52:47 2019 +0200

    [NETBEANS-3252] NodeListModel must clear VisualizerNode count cache before 
dispatching event.
---
 .../src/org/openide/explorer/view/NodeListModel.java                | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/platform/openide.explorer/src/org/openide/explorer/view/NodeListModel.java 
b/platform/openide.explorer/src/org/openide/explorer/view/NodeListModel.java
index a77de68..c37cb29 100644
--- a/platform/openide.explorer/src/org/openide/explorer/view/NodeListModel.java
+++ b/platform/openide.explorer/src/org/openide/explorer/view/NodeListModel.java
@@ -327,12 +327,10 @@ public class NodeListModel extends AbstractListModel 
implements ComboBoxModel {
 
     final void changeAll() {
         size = getSize();
-
+        clearChildrenCount();
         if (size > 0) {
-            fireContentsChanged(this, 0, size - 1);
+            fireContentsChanged(this, 0, size);
         }
-
-        clearChildrenCount();
     }
 
     final void added(VisualizerEvent.Added ev) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to