KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > copy > MergeTwoFoldersPanel


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
20 package org.netbeans.modules.subversion.ui.copy;
21
22 import org.netbeans.modules.subversion.ui.wizards.*;
23
24 /**
25  *
26  * @author Petr Kuzel
27  */

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

40     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
41
private void initComponents() {
42         jLabel8 = new javax.swing.JLabel JavaDoc();
43         jLabel9 = new javax.swing.JLabel JavaDoc();
44
45         setName(org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Message")); // NOI18N
46
mergeStartRepositoryFolderLabel.setLabelFor(mergeStartUrlComboBox);
47         org.openide.awt.Mnemonics.setLocalizedText(mergeStartRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_FirstFolder")); // NOI18N
48
mergeStartRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("First Repository Folder");
49
50         org.openide.awt.Mnemonics.setLocalizedText(mergeEndBrowseButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Browse2")); // NOI18N
51
mergeEndBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository Folders");
52
53         mergeEndUrlComboBox.setEditable(true);
54         mergeEndUrlComboBox.getAccessibleContext().setAccessibleDescription("Second Repository Folder");
55
56         mergeAfterRevisionLabel.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/resources/icons/ending_revision.png")));
57         mergeAfterRevisionLabel.setLabelFor(mergeEndRevisionTextField);
58         org.openide.awt.Mnemonics.setLocalizedText(mergeAfterRevisionLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Ending")); // NOI18N
59
mergeAfterRevisionLabel.getAccessibleContext().setAccessibleDescription("End Repository Revision for Merging");
60
61         mergeEndRevisionTextField.getAccessibleContext().setAccessibleName("Ending Revision for Merging");
62         mergeEndRevisionTextField.getAccessibleContext().setAccessibleDescription("Ending Revision for Merging");
63
64         org.openide.awt.Mnemonics.setLocalizedText(mergeStartSearchButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Search1")); // NOI18N
65
mergeStartSearchButton.getAccessibleContext().setAccessibleDescription("Search Repository Revision Number");
66
67         org.openide.awt.Mnemonics.setLocalizedText(mergeAfterEmptyLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_EmptyHint")); // NOI18N
68

69         mergeEndRepositoryFolderLabel.setLabelFor(mergeEndUrlComboBox);
70         org.openide.awt.Mnemonics.setLocalizedText(mergeEndRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Second")); // NOI18N
71
mergeEndRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("Second Repository Folder");
72
73         mergeStartUrlComboBox.setEditable(true);
74         mergeStartUrlComboBox.getAccessibleContext().setAccessibleDescription("Second Repository Folder");
75
76         org.openide.awt.Mnemonics.setLocalizedText(mergeStartBrowseButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Browse1")); // NOI18N
77
mergeStartBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository Folders");
78
79         org.openide.awt.Mnemonics.setLocalizedText(mergeEndSearchButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Search2")); // NOI18N
80
mergeEndSearchButton.getAccessibleContext().setAccessibleDescription("Search Repository Revision");
81
82         mergeStartRevisionTextField.getAccessibleContext().setAccessibleDescription("Staring Repository Revision for Merging");
83
84         jLabel8.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/resources/icons/starting_revision.png")));
85         jLabel8.setLabelFor(mergeStartRevisionTextField);
86         org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Starting")); // NOI18N
87
jLabel8.getAccessibleContext().setAccessibleDescription("Starting Revision for Merging");
88
89         org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_EmptyHint")); // NOI18N
90

91         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
92         this.setLayout(layout);
93         layout.setHorizontalGroup(
94             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
95             .add(layout.createSequentialGroup()
96                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
97                     .add(mergeEndRepositoryFolderLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
98                     .add(jLabel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
99                     .add(mergeAfterRevisionLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
100                     .add(mergeStartRepositoryFolderLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
101                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
102                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
103                     .add(layout.createSequentialGroup()
104                         .add(jLabel9)
105                         .addContainerGap())
106                     .add(layout.createSequentialGroup()
107                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
108                             .add(mergeEndUrlComboBox, 0, 397, Short.MAX_VALUE)
109                             .add(mergeStartUrlComboBox, 0, 397, Short.MAX_VALUE)
110                             .add(layout.createSequentialGroup()
111                                 .add(mergeStartRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
112                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
113                                 .add(mergeStartSearchButton))
114                             .add(layout.createSequentialGroup()
115                                 .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
116                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
117                                 .add(mergeEndSearchButton))
118                             .add(mergeAfterEmptyLabel))
119                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
120                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
121                             .add(mergeEndBrowseButton)
122                             .add(mergeStartBrowseButton)))))
123         );
124         layout.setVerticalGroup(
125             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
126             .add(layout.createSequentialGroup()
127                 .addContainerGap()
128                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
129                     .add(mergeStartUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
130                     .add(mergeStartBrowseButton)
131                     .add(mergeStartRepositoryFolderLabel))
132                 .add(12, 12, 12)
133                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
134                     .add(mergeStartRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
135                     .add(mergeStartSearchButton)
136                     .add(jLabel8))
137                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
138                 .add(jLabel9)
139                 .add(19, 19, 19)
140                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
141                     .add(mergeEndRepositoryFolderLabel)
142                     .add(mergeEndUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
143                     .add(mergeEndBrowseButton))
144                 .add(17, 17, 17)
145                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
146                     .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
147                     .add(mergeEndSearchButton)
148                     .add(mergeAfterRevisionLabel))
149                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
150                 .add(mergeAfterEmptyLabel)
151                 .addContainerGap())
152         );
153     }// </editor-fold>//GEN-END:initComponents
154

155     
156     // Variables declaration - do not modify//GEN-BEGIN:variables
157
private javax.swing.JLabel JavaDoc jLabel8;
158     private javax.swing.JLabel JavaDoc jLabel9;
159     final javax.swing.JLabel JavaDoc mergeAfterEmptyLabel = new javax.swing.JLabel JavaDoc();
160     final javax.swing.JLabel JavaDoc mergeAfterRevisionLabel = new javax.swing.JLabel JavaDoc();
161     final javax.swing.JButton JavaDoc mergeEndBrowseButton = new javax.swing.JButton JavaDoc();
162     final javax.swing.JLabel JavaDoc mergeEndRepositoryFolderLabel = new javax.swing.JLabel JavaDoc();
163     final javax.swing.JTextField JavaDoc mergeEndRevisionTextField = new javax.swing.JTextField JavaDoc();
164     final javax.swing.JButton JavaDoc mergeEndSearchButton = new javax.swing.JButton JavaDoc();
165     final javax.swing.JComboBox JavaDoc mergeEndUrlComboBox = new javax.swing.JComboBox JavaDoc();
166     final javax.swing.JButton JavaDoc mergeStartBrowseButton = new javax.swing.JButton JavaDoc();
167     final javax.swing.JLabel JavaDoc mergeStartRepositoryFolderLabel = new javax.swing.JLabel JavaDoc();
168     final javax.swing.JTextField JavaDoc mergeStartRevisionTextField = new javax.swing.JTextField JavaDoc();
169     final javax.swing.JButton JavaDoc mergeStartSearchButton = new javax.swing.JButton JavaDoc();
170     final javax.swing.JComboBox JavaDoc mergeStartUrlComboBox = new javax.swing.JComboBox JavaDoc();
171     // End of variables declaration//GEN-END:variables
172

173 }
174
Popular Tags