Re: How to remove a node from a project's logical view?
geertjan wielenga <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
On 21-1-2016 19:05, Peter Nabbefeld wrote: > Hi Neil, > > I don't expect that to work, as I'm using > @NodeFactory.Registration(projectType = > "org-netbeans-modules-java-j2seproject") > > I don't have any access to the parent node, so I don't see how to > modify the NodeList/LogicalView containig my Node. You don't need to have access to the parent node. Use the ChangeListener to determine when the Node should/should not be created. Gj > > Kind regards > Peter > > > Am 21.01.2016 um 16:34 schrieb Neil C Smith: >> Hi, >> >> On 21 January 2016 at 15:06, geertjan wielenga >> <[email protected]> wrote: >>> https://github.com/GeertjanWielenga/PeterProjectCustomizerNodeFactory >> >> Can you not extend that to return a simple NodeList implementation >> that only returns the Node when it's been configured? I was under the >> impression that NodeList supported ChangeListeners so that the list >> could be dynamic, although not tried using them yet! >> >> Best wishes, >> >> Neil >> >