KickJava   Java API By Example, From Geeks To Geeks.

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


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 MergeSinceOriginPanel extends javax.swing.JPanel JavaDoc {
29
30     /** Creates new form WorkdirPanel */
31     public MergeSinceOriginPanel() {
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
43         setName(org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_Message")); // NOI18N
44

45         mergeEndRepositoryFolderLabel.setLabelFor(mergeEndUrlComboBox);
46         org.openide.awt.Mnemonics.setLocalizedText(mergeEndRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_RepositoryFolder")); // NOI18N
47

48         mergeAfterRevisionLabel.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/resources/icons/ending_revision.png")));
49         mergeAfterRevisionLabel.setLabelFor(mergeEndRevisionTextField);
50         org.openide.awt.Mnemonics.setLocalizedText(mergeAfterRevisionLabel, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_EndingRevision")); // NOI18N
51

52         org.openide.awt.Mnemonics.setLocalizedText(mergeAfterEmptyLabel, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_EmptyHint")); // NOI18N
53

54         mergeEndUrlComboBox.setEditable(true);
55
56         org.openide.awt.Mnemonics.setLocalizedText(mergeEndBrowseButton, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_Browse")); // NOI18N
57

58         org.openide.awt.Mnemonics.setLocalizedText(mergeEndSearchButton, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_Search")); // NOI18N
59

60         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
61         this.setLayout(layout);
62         layout.setHorizontalGroup(
63             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
64             .add(layout.createSequentialGroup()
65                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
66                     .add(mergeAfterRevisionLabel)
67                     .add(mergeEndRepositoryFolderLabel))
68                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
69                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
70                     .add(layout.createSequentialGroup()
71                         .add(mergeAfterEmptyLabel)
72                         .addContainerGap())
73                     .add(layout.createSequentialGroup()
74                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
75                             .add(layout.createSequentialGroup()
76                                 .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
77                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
78                                 .add(mergeEndSearchButton))
79                             .add(mergeEndUrlComboBox, 0, 309, Short.MAX_VALUE))
80                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
81                         .add(mergeEndBrowseButton))))
82         );
83         layout.setVerticalGroup(
84             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
85             .add(layout.createSequentialGroup()
86                 .addContainerGap()
87                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
88                     .add(mergeEndBrowseButton)
89                     .add(mergeEndRepositoryFolderLabel)
90                     .add(mergeEndUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
91                 .add(7, 7, 7)
92                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
93                     .add(mergeAfterRevisionLabel)
94                     .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
95                         .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
96                         .add(mergeEndSearchButton)))
97                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
98                 .add(mergeAfterEmptyLabel)
99                 .addContainerGap())
100         );
101
102         mergeEndRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("Repository Folder");
103         mergeAfterRevisionLabel.getAccessibleContext().setAccessibleDescription("End Revision for Merging");
104         mergeEndRevisionTextField.getAccessibleContext().setAccessibleName("End Revision");
105         mergeEndRevisionTextField.getAccessibleContext().setAccessibleDescription("End Revision");
106         mergeEndUrlComboBox.getAccessibleContext().setAccessibleName("Repository URL ");
107         mergeEndUrlComboBox.getAccessibleContext().setAccessibleDescription("Repository URL");
108         mergeEndBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository URL");
109         mergeEndSearchButton.getAccessibleContext().setAccessibleDescription("Search Revision for Merging");
110     }// </editor-fold>//GEN-END:initComponents
111

112     
113     // Variables declaration - do not modify//GEN-BEGIN:variables
114
final javax.swing.JLabel JavaDoc mergeAfterEmptyLabel = new javax.swing.JLabel JavaDoc();
115     final javax.swing.JLabel JavaDoc mergeAfterRevisionLabel = new javax.swing.JLabel JavaDoc();
116     final javax.swing.JButton JavaDoc mergeEndBrowseButton = new javax.swing.JButton JavaDoc();
117     final javax.swing.JLabel JavaDoc mergeEndRepositoryFolderLabel = new javax.swing.JLabel JavaDoc();
118     final javax.swing.JTextField JavaDoc mergeEndRevisionTextField = new javax.swing.JTextField JavaDoc();
119     final javax.swing.JButton JavaDoc mergeEndSearchButton = new javax.swing.JButton JavaDoc();
120     final javax.swing.JComboBox JavaDoc mergeEndUrlComboBox = new javax.swing.JComboBox JavaDoc();
121     // End of variables declaration//GEN-END:variables
122

123 }
124
Popular Tags