You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/11/17 11:23:37 UTC

[GitHub] [netbeans] nishihatapalmer opened a new pull request #1639: FIX: fire a table model event even if there are no children yet.

nishihatapalmer opened a new pull request #1639: FIX: fire a table model event even if there are no children yet.
URL: https://github.com/apache/netbeans/pull/1639
 
 
      * The early return of null was added in version 8.2 of the component.
      * If we return early from this method, when a node is expanded in
        a sorted outline component, the children of the node appear in
        random positions underneath other folders.
      * Re-sorting the tree makes the problem go away, so the tree model
        is fine, but the table model had not updated properly on the tree
        node expansion.
      * Firing the event forces the table model to update properly on
        node expansion.
   
   The reason this doesn't happen on node expansion in an unsorted tree
   is that the nodes are always in the order of the table model, so
   by luck they appear in the right positions in the view.  When an
   outline is sorted, the positions in the view no longer match the
   order of nodes in the table model, so they display incorrectly.
   
   See: https://issues.apache.org/jira/browse/NETBEANS-3401 and https://github.com/digital-preservation/droid/issues/306 for more details of the bug and this fix.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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