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.

Bug 271317 - Options dialog modality mode is set only once
Summary: Options dialog modality mode is set only once
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-17 10:22 UTC by ChernyshovP
Modified: 2017-08-17 10:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
TestActions.java (1.83 KB, text/plain)
2017-08-17 10:22 UTC, ChernyshovP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ChernyshovP 2017-08-17 10:22:38 UTC
Created attachment 164966 [details]
TestActions.java

Only first call of OptionsDisplayer.getDefault().open(...) affects dialog modality. All subsequent calls ignore the modality parameter.

Steps to reproduce:
Create netbeans module and include attached class.
Launch the module.
There will be three actions in menu bar: 
Test/open() which calls OptionsDisplayer.getDefault().open(),
Test/open(false) which calls OptionsDisplayer.getDefault().open(false),
Test/open(true) which calls OptionsDisplayer.getDefault().open(true).

Click Test/open(true). Close the dialog.
From this point no matter how you open the Options dialog, it is in modal mode.
Click Test/open(false), dialog is opened in modal mode. Close the dialog.
Click Test/open(), dialog is opened in modal mode. Close the dialog.
Click Tools/Options, dialog is opened in modal mode. Close the dialog.

Restrart the application.

Click Test/open(false). Close dialog.
Click Test/open(true), dialog is opened in non-modal mode. Close the dialog.
Click Test/open(), dialog is opened in non-modal mode. Close the dialog.
Click Tools/Options, dialog is opened in non-modal mode. Close the dialog.