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]>
https://github.com/GeertjanWielenga/PeterProjectCustomizerNodeFactory

Gj

On 21-1-2016 15:45, geertjan wielenga wrote:
>
> 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
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.