1 19 package org.netbeans.modules.subversion.ui.update; 20 21 25 public class RevertModificationsPanel extends javax.swing.JPanel { 26 27 28 public RevertModificationsPanel() { 29 initComponents(); 30 } 31 32 37 private void initComponents() { 39 40 jLabel2 = new javax.swing.JLabel (); 41 jLabel9 = new javax.swing.JLabel (); 42 jLabel3 = new javax.swing.JLabel (); 43 jLabel4 = new javax.swing.JLabel (); 44 jLabel10 = new javax.swing.JLabel (); 45 46 buttonGroup.add(localChangesRadioButton); 47 localChangesRadioButton.setSelected(true); 48 java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/update/Bundle"); org.openide.awt.Mnemonics.setLocalizedText(localChangesRadioButton, bundle.getString("CTL_RevertPanel_RevertLocal")); localChangesRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 51 localChangesRadioButton.setMargin(new java.awt.Insets (0, 0, 0, 0)); 52 53 buttonGroup.add(moreCommitsRadioButton); 54 org.openide.awt.Mnemonics.setLocalizedText(moreCommitsRadioButton, bundle.getString("CTL_RevertPanel_RevertMulti")); moreCommitsRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 56 moreCommitsRadioButton.setMargin(new java.awt.Insets (0, 0, 0, 0)); 57 58 jLabel2.setLabelFor(startRevisionTextField); 59 org.openide.awt.Mnemonics.setLocalizedText(jLabel2, bundle.getString("CTL_RevertPanel_StartingRevision")); 61 startRevisionTextField.setEnabled(false); 62 63 org.openide.awt.Mnemonics.setLocalizedText(startSearchButton, bundle.getString("CTL_RevertPanel_Search2")); startSearchButton.setEnabled(false); 65 66 jLabel9.setText(bundle.getString("CTL_RevertPanel_EmptyHint")); 68 endRevisionTextField.setEnabled(false); 69 70 org.openide.awt.Mnemonics.setLocalizedText(endSearchButton, bundle.getString("CTL_RevertPanel_Search3")); endSearchButton.setEnabled(false); 72 73 jLabel3.setLabelFor(endRevisionTextField); 74 org.openide.awt.Mnemonics.setLocalizedText(jLabel3, bundle.getString("CTL_RevertPanel_EndingRevision")); 76 buttonGroup.add(oneCommitRadioButton); 77 org.openide.awt.Mnemonics.setLocalizedText(oneCommitRadioButton, bundle.getString("CTL_RevertPanel_RevertSingle")); oneCommitRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 79 oneCommitRadioButton.setMargin(new java.awt.Insets (0, 0, 0, 0)); 80 81 jLabel4.setLabelFor(oneRevisionTextField); 82 org.openide.awt.Mnemonics.setLocalizedText(jLabel4, bundle.getString("CTL_RevertPanel_SingleRevision")); 84 oneRevisionTextField.setEnabled(false); 85 86 org.openide.awt.Mnemonics.setLocalizedText(oneRevisionSearchButton, bundle.getString("CTL_RevertPanel_Search1")); oneRevisionSearchButton.setEnabled(false); 88 89 jLabel10.setText(bundle.getString("CTL_RevertPanel_EmptyHint")); 91 revertNewFilesCheckBox.setText(org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "CTL_RevertPanel_RevertNewFiles")); revertNewFilesCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 93 revertNewFilesCheckBox.setMargin(new java.awt.Insets (0, 0, 0, 0)); 94 95 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 96 this.setLayout(layout); 97 layout.setHorizontalGroup( 98 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 99 .add(layout.createSequentialGroup() 100 .addContainerGap() 101 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 102 .add(moreCommitsRadioButton) 103 .add(layout.createSequentialGroup() 104 .add(17, 17, 17) 105 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) 106 .add(jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE) 107 .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 112, Short.MAX_VALUE) 108 .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 112, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 109 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 110 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 111 .add(jLabel10) 112 .add(layout.createSequentialGroup() 113 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 114 .add(org.jdesktop.layout.GroupLayout.LEADING, endRevisionTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE) 115 .add(org.jdesktop.layout.GroupLayout.LEADING, startRevisionTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)) 116 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 117 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 118 .add(startSearchButton) 119 .add(endSearchButton))) 120 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 121 .add(oneRevisionTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE) 122 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 123 .add(oneRevisionSearchButton)))) 124 .add(oneCommitRadioButton) 125 .add(localChangesRadioButton) 126 .add(layout.createSequentialGroup() 127 .add(141, 141, 141) 128 .add(jLabel9)) 129 .add(revertNewFilesCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 257, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 130 .addContainerGap()) 131 ); 132 layout.setVerticalGroup( 133 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 134 .add(layout.createSequentialGroup() 135 .addContainerGap() 136 .add(localChangesRadioButton) 137 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 138 .add(oneCommitRadioButton) 139 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 140 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 141 .add(jLabel4) 142 .add(oneRevisionSearchButton) 143 .add(oneRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 144 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 145 .add(jLabel9) 146 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 147 .add(moreCommitsRadioButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 148 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 149 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 150 .add(jLabel2) 151 .add(startRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 152 .add(startSearchButton)) 153 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 154 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 155 .add(jLabel3) 156 .add(endRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 157 .add(endSearchButton)) 158 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 159 .add(jLabel10) 160 .add(22, 22, 22) 161 .add(revertNewFilesCheckBox) 162 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 163 ); 164 165 localChangesRadioButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_RevertLocal")); moreCommitsRadioButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_RevertMulti")); jLabel2.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_StartingRevision")); startSearchButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_Search2")); endSearchButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_Search3")); jLabel3.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_EndingRevision")); oneCommitRadioButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_RevertSingle")); jLabel4.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_SingleRevision")); oneRevisionSearchButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_Search1")); } 176 final javax.swing.ButtonGroup buttonGroup = new javax.swing.ButtonGroup (); 178 final javax.swing.JTextField endRevisionTextField = new javax.swing.JTextField (); 179 final javax.swing.JButton endSearchButton = new javax.swing.JButton (); 180 private javax.swing.JLabel jLabel10; 181 private javax.swing.JLabel jLabel2; 182 private javax.swing.JLabel jLabel3; 183 private javax.swing.JLabel jLabel4; 184 private javax.swing.JLabel jLabel9; 185 final javax.swing.JRadioButton localChangesRadioButton = new javax.swing.JRadioButton (); 186 final javax.swing.JRadioButton moreCommitsRadioButton = new javax.swing.JRadioButton (); 187 final javax.swing.JRadioButton oneCommitRadioButton = new javax.swing.JRadioButton (); 188 final javax.swing.JButton oneRevisionSearchButton = new javax.swing.JButton (); 189 final javax.swing.JTextField oneRevisionTextField = new javax.swing.JTextField (); 190 final javax.swing.JCheckBox revertNewFilesCheckBox = new javax.swing.JCheckBox (); 191 final javax.swing.JTextField startRevisionTextField = new javax.swing.JTextField (); 192 final javax.swing.JButton startSearchButton = new javax.swing.JButton (); 193 195 } 196 | Popular Tags |