KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > update > RevertModificationsPanel


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.subversion.ui.update;
20
21 /**
22  *
23  * @author Tomas Stupka
24  */

25 public class RevertModificationsPanel extends javax.swing.JPanel JavaDoc {
26
27     /** Creates new form ReverModificationsPanel */
28     public RevertModificationsPanel() {
29         initComponents();
30     }
31
32     /** This method is called from within the constructor to
33      * initialize the form.
34      * WARNING: Do NOT modify this code. The content of this method is
35      * always regenerated by the Form Editor.
36      */

37     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
38
private void initComponents() {
39
40         jLabel2 = new javax.swing.JLabel JavaDoc();
41         jLabel9 = new javax.swing.JLabel JavaDoc();
42         jLabel3 = new javax.swing.JLabel JavaDoc();
43         jLabel4 = new javax.swing.JLabel JavaDoc();
44         jLabel10 = new javax.swing.JLabel JavaDoc();
45
46         buttonGroup.add(localChangesRadioButton);
47         localChangesRadioButton.setSelected(true);
48         java.util.ResourceBundle JavaDoc bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/update/Bundle"); // NOI18N
49
org.openide.awt.Mnemonics.setLocalizedText(localChangesRadioButton, bundle.getString("CTL_RevertPanel_RevertLocal")); // NOI18N
50
localChangesRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
51         localChangesRadioButton.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
52
53         buttonGroup.add(moreCommitsRadioButton);
54         org.openide.awt.Mnemonics.setLocalizedText(moreCommitsRadioButton, bundle.getString("CTL_RevertPanel_RevertMulti")); // NOI18N
55
moreCommitsRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
56         moreCommitsRadioButton.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
57
58         jLabel2.setLabelFor(startRevisionTextField);
59         org.openide.awt.Mnemonics.setLocalizedText(jLabel2, bundle.getString("CTL_RevertPanel_StartingRevision")); // NOI18N
60

61         startRevisionTextField.setEnabled(false);
62
63         org.openide.awt.Mnemonics.setLocalizedText(startSearchButton, bundle.getString("CTL_RevertPanel_Search2")); // NOI18N
64
startSearchButton.setEnabled(false);
65
66         jLabel9.setText(bundle.getString("CTL_RevertPanel_EmptyHint")); // NOI18N
67

68         endRevisionTextField.setEnabled(false);
69
70         org.openide.awt.Mnemonics.setLocalizedText(endSearchButton, bundle.getString("CTL_RevertPanel_Search3")); // NOI18N
71
endSearchButton.setEnabled(false);
72
73         jLabel3.setLabelFor(endRevisionTextField);
74         org.openide.awt.Mnemonics.setLocalizedText(jLabel3, bundle.getString("CTL_RevertPanel_EndingRevision")); // NOI18N
75

76         buttonGroup.add(oneCommitRadioButton);
77         org.openide.awt.Mnemonics.setLocalizedText(oneCommitRadioButton, bundle.getString("CTL_RevertPanel_RevertSingle")); // NOI18N
78
oneCommitRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
79         oneCommitRadioButton.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
80
81         jLabel4.setLabelFor(oneRevisionTextField);
82         org.openide.awt.Mnemonics.setLocalizedText(jLabel4, bundle.getString("CTL_RevertPanel_SingleRevision")); // NOI18N
83

84         oneRevisionTextField.setEnabled(false);
85
86         org.openide.awt.Mnemonics.setLocalizedText(oneRevisionSearchButton, bundle.getString("CTL_RevertPanel_Search1")); // NOI18N
87
oneRevisionSearchButton.setEnabled(false);
88
89         jLabel10.setText(bundle.getString("CTL_RevertPanel_EmptyHint")); // NOI18N
90

91         revertNewFilesCheckBox.setText(org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "CTL_RevertPanel_RevertNewFiles")); // NOI18N
92
revertNewFilesCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
93         revertNewFilesCheckBox.setMargin(new java.awt.Insets JavaDoc(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")); // NOI18N
166
moreCommitsRadioButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_RevertMulti")); // NOI18N
167
jLabel2.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_StartingRevision")); // NOI18N
168
startSearchButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_Search2")); // NOI18N
169
endSearchButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_Search3")); // NOI18N
170
jLabel3.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_EndingRevision")); // NOI18N
171
oneCommitRadioButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_RevertSingle")); // NOI18N
172
jLabel4.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_SingleRevision")); // NOI18N
173
oneRevisionSearchButton.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RevertPanel_Search1")); // NOI18N
174
}// </editor-fold>//GEN-END:initComponents
175

176     // Variables declaration - do not modify//GEN-BEGIN:variables
177
final javax.swing.ButtonGroup JavaDoc buttonGroup = new javax.swing.ButtonGroup JavaDoc();
178     final javax.swing.JTextField JavaDoc endRevisionTextField = new javax.swing.JTextField JavaDoc();
179     final javax.swing.JButton JavaDoc endSearchButton = new javax.swing.JButton JavaDoc();
180     private javax.swing.JLabel JavaDoc jLabel10;
181     private javax.swing.JLabel JavaDoc jLabel2;
182     private javax.swing.JLabel JavaDoc jLabel3;
183     private javax.swing.JLabel JavaDoc jLabel4;
184     private javax.swing.JLabel JavaDoc jLabel9;
185     final javax.swing.JRadioButton JavaDoc localChangesRadioButton = new javax.swing.JRadioButton JavaDoc();
186     final javax.swing.JRadioButton JavaDoc moreCommitsRadioButton = new javax.swing.JRadioButton JavaDoc();
187     final javax.swing.JRadioButton JavaDoc oneCommitRadioButton = new javax.swing.JRadioButton JavaDoc();
188     final javax.swing.JButton JavaDoc oneRevisionSearchButton = new javax.swing.JButton JavaDoc();
189     final javax.swing.JTextField JavaDoc oneRevisionTextField = new javax.swing.JTextField JavaDoc();
190     final javax.swing.JCheckBox JavaDoc revertNewFilesCheckBox = new javax.swing.JCheckBox JavaDoc();
191     final javax.swing.JTextField JavaDoc startRevisionTextField = new javax.swing.JTextField JavaDoc();
192     final javax.swing.JButton JavaDoc startSearchButton = new javax.swing.JButton JavaDoc();
193     // End of variables declaration//GEN-END:variables
194

195 }
196
Popular Tags