KickJava   Java API By Example, From Geeks To Geeks.

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


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 MergeOneFolderPanel extends javax.swing.JPanel JavaDoc {
29
30     /** Creates new form WorkdirPanel */
31     public MergeOneFolderPanel() {
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(MergeOneFolderPanel.class, "CTL_MergeOneFolder_Message")); // NOI18N
46
mergeStartRepositoryFolderLabel.setLabelFor(mergeStartUrlComboBox);
47         org.openide.awt.Mnemonics.setLocalizedText(mergeStartRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_RepositoryFolder")); // NOI18N
48
mergeStartRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("Repository Folder");
49
50         mergeAfterRevisionLabel.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/resources/icons/ending_revision.png")));
51         mergeAfterRevisionLabel.setLabelFor(mergeEndRevisionTextField);
52         org.openide.awt.Mnemonics.setLocalizedText(mergeAfterRevisionLabel, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_EndingRev")); // NOI18N
53
mergeAfterRevisionLabel.getAccessibleContext().setAccessibleDescription("End Repository Revision for Merging");
54
55         mergeEndRevisionTextField.getAccessibleContext().setAccessibleName("Ending Revision");
56         mergeEndRevisionTextField.getAccessibleContext().setAccessibleDescription("Ending Revision for Merging");
57
58         org.openide.awt.Mnemonics.setLocalizedText(mergeStartSearchButton, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_Search")); // NOI18N
59
mergeStartSearchButton.getAccessibleContext().setAccessibleDescription("Search Repository Revision");
60
61         org.openide.awt.Mnemonics.setLocalizedText(mergeAfterEmptyLabel, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_EmptyHint")); // NOI18N
62

63         mergeStartUrlComboBox.setEditable(true);
64
65         org.openide.awt.Mnemonics.setLocalizedText(mergeStartBrowseButton, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_Browse")); // NOI18N
66
mergeStartBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository Folder");
67
68         org.openide.awt.Mnemonics.setLocalizedText(mergeEndSearchButton, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_Search2")); // NOI18N
69
mergeEndSearchButton.getAccessibleContext().setAccessibleDescription("Search End Repository Revision for Merging");
70
71         mergeStartRevisionTextField.getAccessibleContext().setAccessibleDescription("Starting Revision for Merging");
72
73         jLabel8.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/resources/icons/starting_revision.png")));
74         jLabel8.setLabelFor(mergeStartRevisionTextField);
75         org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_Start")); // NOI18N
76
jLabel8.getAccessibleContext().setAccessibleDescription("Start Revision for Merging");
77
78         org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(MergeOneFolderPanel.class, "CTL_MergeOneFolder_EmptyHint")); // NOI18N
79

80         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
81         this.setLayout(layout);
82         layout.setHorizontalGroup(
83             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
84             .add(layout.createSequentialGroup()
85                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
86                     .add(mergeAfterRevisionLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
87                     .add(jLabel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
88                     .add(mergeStartRepositoryFolderLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
89                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
90                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
91                     .add(mergeAfterEmptyLabel)
92                     .add(jLabel9)
93                     .add(layout.createSequentialGroup()
94                         .add(mergeStartRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
95                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
96                         .add(mergeStartSearchButton))
97                     .add(layout.createSequentialGroup()
98                         .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
99                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
100                         .add(mergeEndSearchButton))
101                     .add(mergeStartUrlComboBox, 0, 422, Short.MAX_VALUE))
102                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
103                 .add(mergeStartBrowseButton))
104         );
105         layout.setVerticalGroup(
106             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
107             .add(layout.createSequentialGroup()
108                 .addContainerGap()
109                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
110                     .add(mergeStartBrowseButton)
111                     .add(mergeStartRepositoryFolderLabel)
112                     .add(mergeStartUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
113                 .add(12, 12, 12)
114                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
115                     .add(mergeStartRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
116                     .add(mergeStartSearchButton)
117                     .add(jLabel8))
118                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
119                 .add(jLabel9)
120                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
121                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
122                     .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
123                     .add(mergeEndSearchButton)
124                     .add(mergeAfterRevisionLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
125                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
126                 .add(mergeAfterEmptyLabel)
127                 .addContainerGap())
128         );
129     }// </editor-fold>//GEN-END:initComponents
130

131     
132     // Variables declaration - do not modify//GEN-BEGIN:variables
133
private javax.swing.JLabel JavaDoc jLabel8;
134     private javax.swing.JLabel JavaDoc jLabel9;
135     final javax.swing.JLabel JavaDoc mergeAfterEmptyLabel = new javax.swing.JLabel JavaDoc();
136     final javax.swing.JLabel JavaDoc mergeAfterRevisionLabel = new javax.swing.JLabel JavaDoc();
137     final javax.swing.JTextField JavaDoc mergeEndRevisionTextField = new javax.swing.JTextField JavaDoc();
138     final javax.swing.JButton JavaDoc mergeEndSearchButton = new javax.swing.JButton JavaDoc();
139     final javax.swing.JButton JavaDoc mergeStartBrowseButton = new javax.swing.JButton JavaDoc();
140     final javax.swing.JLabel JavaDoc mergeStartRepositoryFolderLabel = new javax.swing.JLabel JavaDoc();
141     final javax.swing.JTextField JavaDoc mergeStartRevisionTextField = new javax.swing.JTextField JavaDoc();
142     final javax.swing.JButton JavaDoc mergeStartSearchButton = new javax.swing.JButton JavaDoc();
143     final javax.swing.JComboBox JavaDoc mergeStartUrlComboBox = new javax.swing.JComboBox JavaDoc();
144     // End of variables declaration//GEN-END:variables
145

146 }
147
Popular Tags