[ 
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-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