You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2019/10/18 15:42:00 UTC

[jira] [Updated] (NETBEANS-3252) Explorer ListView provides invalid node list contents during events

     [ https://issues.apache.org/jira/browse/NETBEANS-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svatopluk Dedic updated NETBEANS-3252:
--------------------------------------
    Description: 
I have an implementation of ListView with checkboxes for individual displayed Nodes. The *NodeListModel* maintains a cache of nodes, so it can compute node vertical index considering nodes in individual subtrees.

When firing *contentsChanged* event, the cache is not cleared *before* the event; so if an event listener attempts to access the visualizer cache (i.e. *getIndex()*), it gets an incorrect data.

A workaround is to schedule the action to another Swing event, but I'd rather fix the bug.

  was:
I have an implementation of ListView with checkboxes for individual displayed Nodes. The *NodeListModel* maintains a cache of nodes, so it can compute node vertical index considering nodes in individual subtrees.

When firing *contentsChanged* event, the cache is not cleared *before* the event; so if an event listener attempts to access the visualizer cache (i.e. *getIndex(*)), it gets an incorrect data.

A workaround is to schedule the action to another Swing event, but I'd rather fix the bug.


> Explorer ListView provides invalid node list contents during events
> -------------------------------------------------------------------
>
>                 Key: NETBEANS-3252
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3252
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Explorer
>            Reporter: Svatopluk Dedic
>            Assignee: Svatopluk Dedic
>            Priority: Major
>
> I have an implementation of ListView with checkboxes for individual displayed Nodes. The *NodeListModel* maintains a cache of nodes, so it can compute node vertical index considering nodes in individual subtrees.
> When firing *contentsChanged* event, the cache is not cleared *before* the event; so if an event listener attempts to access the visualizer cache (i.e. *getIndex()*), it gets an incorrect data.
> A workaround is to schedule the action to another Swing event, but I'd rather fix the bug.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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