Re: Re: [Issue 34089] New - build target customizer should update data in instantiate()

Vitezslav Stejskal <[email protected]> Thu, 05 Jun 2003 15:34:34 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>

Pavel Buzek wrote:

> Svato,
> looks like nobody has a briliant idea how to implement the 
> Ok/Cancel/Apply (I do not either, that's why I was waiting). What is 
> described in the issue

Briliant ideas are rare :-(. IMO we could try to go this direction: 
every part of the panel should be provided by some Context factory which 
it will use instead of using the ProjectContext.getContext() directly. 
This factory could in fact accept the 'Configurable' (e.g. 
ProjectMember) and produce two-layered Context which writable layer will 
be the memory-Context implementation. This requires some discipline for 
every module contributing to the dialog, but the logic of 
OK/Cancel/Apply can be held in the framework which created the dialog. 
This could perhaps also hide the dialog-wide configuration switcher from 
panels.

-vita