# HG changeset patch # User padraigob@netbeans.org # Date 1203693717 0 # Node ID 264b78227c08e19ecc1013b5c8bec4b3d35dbfe0 # Parent f0f4fd517662c883df19c6be8aeeb01b4fa8ccfd 128146:: Fix A11Y issues for Backout dialog diff -r f0f4fd517662 -r 264b78227c08 mercurial/src/org/netbeans/modules/mercurial/ui/rollback/BackoutPanel.form --- a/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/BackoutPanel.form Fri Feb 22 15:02:57 2008 +0000 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/BackoutPanel.form Fri Feb 22 15:21:57 2008 +0000 @@ -35,7 +35,7 @@ - + @@ -84,6 +84,11 @@ + + + + + @@ -123,7 +128,7 @@ - + @@ -147,9 +152,17 @@ + + + + + + + + diff -r f0f4fd517662 -r 264b78227c08 mercurial/src/org/netbeans/modules/mercurial/ui/rollback/BackoutPanel.java --- a/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/BackoutPanel.java Fri Feb 22 15:02:57 2008 +0000 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/BackoutPanel.java Fri Feb 22 15:21:57 2008 +0000 @@ -136,6 +136,7 @@ public class BackoutPanel extends javax. commitMsgField.setText(org.openide.util.NbBundle.getMessage(BackoutPanel.class, "BackoutPanel.commitMsgField.text")); // NOI18N + commitLabel.setLabelFor(commitMsgField); org.openide.awt.Mnemonics.setLocalizedText(commitLabel, org.openide.util.NbBundle.getMessage(BackoutPanel.class, "BackoutPanel.commitLabel.text")); // NOI18N org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); @@ -146,7 +147,7 @@ public class BackoutPanel extends javax. .addContainerGap() .add(commitLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) - .add(commitMsgField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) + .add(commitMsgField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( @@ -157,6 +158,8 @@ public class BackoutPanel extends javax. .add(commitMsgField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); + + commitMsgField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BackoutPanel.class, "ACSD_commitMsgField")); // NOI18N org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); @@ -169,7 +172,7 @@ public class BackoutPanel extends javax. .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, infoLabel2) - .add(org.jdesktop.layout.GroupLayout.LEADING, infoLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE))) + .add(org.jdesktop.layout.GroupLayout.LEADING, infoLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(48, 48, 48) .add(revisionsLabel) @@ -191,6 +194,8 @@ public class BackoutPanel extends javax. .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(14, Short.MAX_VALUE)) ); + + revisionsComboBox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BackoutPanel.class, "ACSD_revisionsComboBoxBackout")); // NOI18N }// //GEN-END:initComponents private void doMergeChxBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_doMergeChxBoxActionPerformed diff -r f0f4fd517662 -r 264b78227c08 mercurial/src/org/netbeans/modules/mercurial/ui/rollback/Bundle.properties --- a/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/Bundle.properties Fri Feb 22 15:02:57 2008 +0000 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/Bundle.properties Fri Feb 22 15:21:57 2008 +0000 @@ -114,9 +114,11 @@ CTL_BackoutForm_Action_Cancel=&Cancel CTL_BackoutForm_Action_Cancel=&Cancel ACSD_BackoutForm_Action_Cancel=Cancel ACSN_BackoutForm_Action_Cancel=Cancel -CTL_BackoutDialog=Strip - {0} -ACSD_BackoutDialog=Strip - {0} +CTL_BackoutDialog=Backout - {0} +ACSD_BackoutDialog=Backout - {0} BackoutPanel.commitMsgField.text=Autocommit of backout changeset for -BackoutPanel.commitLabel.text=Commit Msg: +BackoutPanel.commitLabel.text=Co&mmit Msg: ACSD_doBackupChxBox=Specifies a backup should be done before the strip ACSD_revisionsComboBox=Specifies the revision to be stripped +ACSD_revisionsComboBoxBackout=Specifies the revision to be backed out +ACSD_commitMsgField=Specifies the commit message to be used for backout changeset