This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
New SPI addition is required to correctly handle closing of MutiView components. The current TopComponent canClose() semantics assumes that the component will resolve the state and show a dialog to the user if the in unsafe state. New SPI was added to delegate correctly to the inner elements. 1. Each MVElement is asked about it's state. (it returns an instance of CloseOperationState newly added class) 2. if everything is ok, the component can be closed, if not resolution handling delegated to an instance of CloseOperationHandler. Any ui is shown there. The CloseOperationHandler is passed to the multiview component at creation time in the factory. the state object instances are also created by the factory.
Created attachment 14610 [details] api diffs
the string constant in COS should not be there. The factory method could be in COS or at least linked from COS javadoc otherwise people will not find it.
done.
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.