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.
<!-- ACTUAL CHANGES BEGIN HERE: -->
<changes>
<change id="stop-dialoge-closing">
<api name="winsys"/>
<summary>Added default closing option to do nothing when no option is passed.</summary>
<version major="2" minor="28"/>
<date day="4" month="8" year="2011"/>
<author login="dbeer"/>
<compatibility addition="yes" deprecation="no" deletion="no"/>
<description>
When younow pass no clossing options when you setClosingOptions(new Object[]{}); the dialogue will not close via the ESC key.
</description>
<issue number="196200"/>
</change>
<change id="reload-save-actions" >
<summary>Actions to load or save state of windowsystem</summary>
OpenIDE-Module-Recommends: org.netbeans.core.windows.nativeaccess.NativeWindowSystem
AutoUpdate-Show-In-Client: false
AutoUpdate-Essential-Module: true
OpenIDE-Module-Specification-Version: 2.27
OpenIDE-Module-Specification-Version: 2.28
Object[] options = getClosingOptions ();
if (options == null) return ;
if (options.length == 0) {
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
}
for (int i = 0; i < options.length; i++) {
modifyListener (options[i], buttonListener, init);
MenuElement[] selPath = MenuSelectionManager.defaultManager().getSelectedPath();
// part of #130919 fix - handle ESC key well in dialogs with menus
if (selPath == null || selPath.length == 0) {
pressedOption = NotifyDescriptor.CLOSED_OPTION;
//check if closingOptions is != null && 0
if (getClosingOptions() != null && getClosingOptions().length == 0) {
pressedOption = WindowConstants.DO_NOTHING_ON_CLOSE;
} else {
MenuSelectionManager.defaultManager().clearSelectedPath();
return ;