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]> |
Yes, that's precisely what the code provides. Check it out and take a look: https://github.com/GeertjanWielenga/PeterProjectCustomizerNodeFactory Gj On 21-1-2016 18:55, Peter Nabbefeld wrote: > Hi Geertjan, > > thank You for Your support! But the point is: The configuration should > be "defensive", i.e. nothing should be changed, neither in project.xml > nor in project ui, if there's no configuration. > > Kind regards > Peter > > > > Am 21.01.2016 um 15:45 schrieb geertjan wielenga: >> >> Instead of showing/hiding the node, would it be acceptable if its >> display name was "Not Configured" if the checkbox has not been selected? >> That would have as a benefit that the user would have a hint that the >> functionality exists and that it needs to be configured. >> >> If the above is acceptable to you, I have all the code for this >> solution. >> >> Gj >> >> On 21-1-2016 12:19, Peter Nabbefeld wrote: >>> Hm, not yet - I'll try to put some files at the week-end. >>> >>> What I want to do is sth. like this: >>> 1. Project cutomizer: >>> +------------------+-----------------------------+ >>> | 1. Sources | | >>> | 2. *My Options* | | >>> | 3. ... | [x] Show my node | >>> | | | >>> | | | >>> +------------------+-----------------------------+ >>> >>> 2. Project tab: >>> +-------------------------+ >>> | # My Project | >>> | | | >>> | +--# My Node | >>> | | | >>> | +--# Source Packages | >>> | | | >>> | +--# Libraries | >>> | | >>> +-------------------------+ >>> >>> The Node "My Node" should only be shown, if the checkbox is set. >>> >>> The tricky part here is, that the node should be updated immediately >>> after >>> configuration change, so I think I will have to get the tab and to >>> repaint >>> the project tree. >>> >>> Kind regards >>> Peter >>> >> >> >