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.
Description: Steps to reproduce: - start JSE - create new UMLProject and make some changes (e.g create new Diagram) - Choose File --> Exit. UML Save project dialog - missing a11y features. Results of Accessibility test, window with title "Save" Label with LABEL_FOR not set : Class: com.sun.tools.ide.uml.project.SaveProjectsDialog$UMLProjectRender { UMLProject1 | } Components with no LABEL_FOR pointing to it : Class: javax.swing.JList { | } Components with no mnemonic : Class: javax.swing.JButton { Discard All | } Class: javax.swing.JButton { Save All | } Class: javax.swing.JButton { Save | }
+Save All should be default button
I'm attempting to rewrite this dialog so that it has default buttons like the NB standard Save Documents before closing (diagrams in UML's case) dialog. But Save will remain the default for Save Projects just as it is for the Save Diagrams (and other documents) which is in NB core.
I see why you would want Save All as the default. Because Save just saves the selected project(s) from the list and the rest of the changes are discarded, dialog is exited and NB is exited. But I got it to work exactly like NB's Save Document on close dialog so that the Save button saves the selected projects and if there are still unsaved (unselected) UML projects, I keep the dialog open. So the Save button being the default now makes sense. Also, the Esc key wasn't properly mapped to the Cancel button. If Esc was pressed, then the dialog was exited, but all dirty projects were saved and NB was closed. It should leave the projects dirty and prevent NB from closing just like clicking the Cancel button. I got that working as well. On a11y, all issues have been addressed, but the labelFor the JList is still being reported as missing. The fact is, the JList (list of unsaved uml projects) doesn't have a label, but it has an a11y name and description, so all is well (I assume).
verified in ide-coco-061107_8-ml