Hello.

I try to create NetBeans module for start Groovy scripts as external
processes.

I have problem with adding and removing nodes in first level of project in
Projects tab. Look to attached picture. If I will add new nodes to first
level they will be shown only after restart NetBeans. But if will add nodes
to SecondLevel, new nodes will be shown right now.

For second level I can add and remove Nodes in my class that extends
Children.SortedArray
<https://github.com/Enroi/GroovyProject/blob/master/src/org/vorlyanskiy/netb
eans/groovy/nodes/GroovyChildren.java> GroovyProject/GroovyChildren.java at
master . Enroi/GroovyProject (github.com) 

But nodes for first level are created in class that extends
NodeList<FileObject>
<https://github.com/Enroi/GroovyProject/blob/master/src/org/vorlyanskiy/netb
eans/groovy/nodes/ProjectNodesList.java> GroovyProject/ProjectNodesList.java
at master . Enroi/GroovyProject (github.com)

I do not have any Children for root project node.

If I will add File change listeners to FileObject of Project, how to refresh
child nodes of project? Or how to add and remove Nodes in first level of
project?

 

 



Reply via email to