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 83289 - A11Y: UML Save project dialog - missing a11y features
Summary: A11Y: UML Save project dialog - missing a11y features
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2006-08-23 15:13 UTC by bugbridge
Modified: 2006-11-08 15:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-08-23 15:13:52 UTC
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 |  }
Comment 1 Sergey Petrov 2006-10-27 11:06:17 UTC
+Save All should be default button
Comment 2 Craig Conover 2006-11-01 17:24:35 UTC
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.
Comment 3 Craig Conover 2006-11-01 20:11:43 UTC
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).
Comment 4 Andrew Korostelev 2006-11-08 15:35:37 UTC
verified in ide-coco-061107_8-ml