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

Emilian Bold updated NETBEANS-2326:
-----------------------------------
    Description: 
*Summary*

For a brief second the Explorer API views show dummy nodes for a filtered node. 
See the attached PNG screenshot and video for a general idea.

Oddly enough Children.Keys(boolean lazy) 
[http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Children.Keys.html#Keys-boolean-]
 does mention a "dummy" Node but it was never clear what that is and I never 
imagined it could go all the way to the UI.

Ideally this flickering should be fixed or the existing documentation clarified 
to explain this limitation...

*Steps to reproduce*

Open the zipped NetBeans module project (tested on NetBeans 8.2 and Apache 
NetBeans 10.)

The children filtering is done the 'usual' way recommended in wiki:

{{new FilterNode.Children(node) {}}
 {{ @Override}}
 {{ protected Node[] createNodes(Node key) {}}
 {{ if (rule(key)) {}}
 {{  return super.createNodes(key);}}
 {{ } else {}}

{{  //filter out}}
 {{  return new Node[0];}}
 {{ }}}

}

*Expected results*

The ListView / TreeTableView GUI should show only show the allowed nodes.

*Actual results*

The view actually shows many children nodes for a split second then it shows 
the filtered nodes.

 

  was:
*Summary*

For a brief second the Explorer API views show dummy nodes for a filtered node.

*Steps to reproduce*

Open the zipped NetBeans module project (tested on NetBeans 8.2 and Apache 
NetBeans 10.)

The children filtering is done the 'usual' way recommended in wiki:

{{new FilterNode.Children(node) {}}
 {{ @Override}}
 {{ protected Node[] createNodes(Node key) {}}
 {{ if (rule(key)) {}}
 {{  return super.createNodes(key);}}
 {{ } else {}}

{{  //filter out}}
 {{  return new Node[0];}}
 {{ }}}

}

*Expected results*

The ListView / TreeTableView GUI should show only the allowed nodes.

*Actual results*

The view actually shows many children nodes for a split second then it shows 
the filtered nodes.

Oddly enough Children.Keys(boolean lazy) 
[http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Children.Keys.html#Keys-boolean-]
 does mention a "dummy" Node but it was never clear what that is and I never 
imagined it could go all the way to the UI.

See the attached PNG screenshot and video for a general idea. 

Ideally this flickering should be fixed or the existing documentation clarified 
to explain this limitation...


> Explorer API views (ListView, TreeTableView) flicker when filtering nodes
> -------------------------------------------------------------------------
>
>                 Key: NETBEANS-2326
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2326
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Explorer, platform - Nodes
>    Affects Versions: 8.2, 10.0
>            Reporter: Emilian Bold
>            Priority: Major
>         Attachments: 2326-poc.zip, dummy-nodes.png, filternode-flicker.mov
>
>
> *Summary*
> For a brief second the Explorer API views show dummy nodes for a filtered 
> node. See the attached PNG screenshot and video for a general idea.
> Oddly enough Children.Keys(boolean lazy) 
> [http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Children.Keys.html#Keys-boolean-]
>  does mention a "dummy" Node but it was never clear what that is and I never 
> imagined it could go all the way to the UI.
> Ideally this flickering should be fixed or the existing documentation 
> clarified to explain this limitation...
> *Steps to reproduce*
> Open the zipped NetBeans module project (tested on NetBeans 8.2 and Apache 
> NetBeans 10.)
> The children filtering is done the 'usual' way recommended in wiki:
> {{new FilterNode.Children(node) {}}
>  {{ @Override}}
>  {{ protected Node[] createNodes(Node key) {}}
>  {{ if (rule(key)) {}}
>  {{  return super.createNodes(key);}}
>  {{ } else {}}
> {{  //filter out}}
>  {{  return new Node[0];}}
>  {{ }}}
> }
> *Expected results*
> The ListView / TreeTableView GUI should show only show the allowed nodes.
> *Actual results*
> The view actually shows many children nodes for a split second then it shows 
> the filtered nodes.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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