~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to subversion/main/src/org/netbeans/modules/subversion/ui/relocate/RelocatePanel.java

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
3
 *
 
4
 * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
 
5
 *
 
6
 * The contents of this file are subject to the terms of either the GNU
 
7
 * General Public License Version 2 only ("GPL") or the Common
 
8
 * Development and Distribution License("CDDL") (collectively, the
 
9
 * "License"). You may not use this file except in compliance with the
 
10
 * License. You can obtain a copy of the License at
 
11
 * http://www.netbeans.org/cddl-gplv2.html
 
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
 
13
 * specific language governing permissions and limitations under the
 
14
 * License.  When distributing the software, include this License Header
 
15
 * Notice in each file and include the License file at
 
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
 
17
 * particular file as subject to the "Classpath" exception as provided
 
18
 * by Sun in the GPL Version 2 section of the License file that
 
19
 * accompanied this code. If applicable, add the following below the
 
20
 * License Header, with the fields enclosed by brackets [] replaced by
 
21
 * your own identifying information:
 
22
 * "Portions Copyrighted [year] [name of copyright owner]"
 
23
 *
 
24
 * Contributor(s):
 
25
 *
 
26
 * The Original Software is NetBeans. The Initial Developer of the Original
 
27
 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
 
28
 * Microsystems, Inc. All Rights Reserved.
 
29
 *
 
30
 * If you wish your version of this file to be governed by only the CDDL
 
31
 * or only the GPL Version 2, indicate your decision by adding
 
32
 * "[Contributor] elects to include this software in this distribution
 
33
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
 
34
 * single choice of license, a recipient has the option to distribute
 
35
 * your version of this file under either the CDDL, the GPL Version 2 or
 
36
 * to extend the choice of license to its licensees as provided above.
 
37
 * However, if you add GPL Version 2 code and therefore, elected the GPL
 
38
 * Version 2 license, then the option applies only if the new code is
 
39
 * made subject to such option by the copyright holder.
 
40
 */
 
41
/*
 
42
 * RelocatePanel.java
 
43
 *
 
44
 * Created on 03 March 2007, 11:53
 
45
 */
 
46
 
 
47
package org.netbeans.modules.subversion.ui.relocate;
 
48
 
 
49
import javax.swing.JTextField;
 
50
 
 
51
/**
 
52
 *
 
53
 * @author  Peter Pis
 
54
 */
 
55
public class RelocatePanel extends javax.swing.JPanel {
 
56
    
 
57
    /** Creates new form RelocatePanel */
 
58
    public RelocatePanel() {
 
59
        initComponents();
 
60
    }
 
61
    
 
62
    /** This method is called from within the constructor to
 
63
     * initialize the form.
 
64
     * WARNING: Do NOT modify this code. The content of this method is
 
65
     * always regenerated by the Form Editor.
 
66
     */
 
67
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
 
68
    private void initComponents() {
 
69
 
 
70
        jLabel1 = new javax.swing.JLabel();
 
71
        tfWorkingCopy = new javax.swing.JTextField();
 
72
        jLabel2 = new javax.swing.JLabel();
 
73
        tfCurrentURL = new javax.swing.JTextField();
 
74
        jLabel3 = new javax.swing.JLabel();
 
75
        tfNewURL = new javax.swing.JTextField();
 
76
 
 
77
        jLabel1.setLabelFor(tfWorkingCopy);
 
78
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel1.text")); // NOI18N
 
79
 
 
80
        tfWorkingCopy.setEditable(false);
 
81
 
 
82
        jLabel2.setLabelFor(tfCurrentURL);
 
83
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel2.text")); // NOI18N
 
84
 
 
85
        tfCurrentURL.setEditable(false);
 
86
 
 
87
        jLabel3.setLabelFor(tfNewURL);
 
88
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel3.text")); // NOI18N
 
89
 
 
90
        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
 
91
        this.setLayout(layout);
 
92
        layout.setHorizontalGroup(
 
93
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 
94
            .add(layout.createSequentialGroup()
 
95
                .addContainerGap()
 
96
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 
97
                    .add(jLabel1)
 
98
                    .add(jLabel2)
 
99
                    .add(jLabel3))
 
100
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 
101
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 
102
                    .add(tfCurrentURL, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
 
103
                    .add(tfWorkingCopy, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
 
104
                    .add(tfNewURL, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
 
105
                .addContainerGap())
 
106
        );
 
107
        layout.setVerticalGroup(
 
108
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 
109
            .add(layout.createSequentialGroup()
 
110
                .addContainerGap()
 
111
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 
112
                    .add(jLabel1)
 
113
                    .add(tfWorkingCopy, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 
114
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 
115
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 
116
                    .add(jLabel2)
 
117
                    .add(tfCurrentURL, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 
118
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 
119
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 
120
                    .add(jLabel3)
 
121
                    .add(tfNewURL, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 
122
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
123
        );
 
124
 
 
125
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel1.AccessibleContext.accessibleDescription")); // NOI18N
 
126
        tfWorkingCopy.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.tfWorkingCopy.AccessibleContext.accessibleName")); // NOI18N
 
127
        tfWorkingCopy.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.tfWorkingCopy.AccessibleContext.accessibleDescription")); // NOI18N
 
128
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel2.AccessibleContext.accessibleDescription")); // NOI18N
 
129
        tfCurrentURL.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.tfCurrentURL.AccessibleContext.accessibleName")); // NOI18N
 
130
        tfCurrentURL.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.tfCurrentURL.AccessibleContext.accessibleDescription")); // NOI18N
 
131
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel3.AccessibleContext.accessibleDescription")); // NOI18N
 
132
        tfNewURL.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.tfNewURL.AccessibleContext.accessibleName")); // NOI18N
 
133
        tfNewURL.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.tfNewURL.AccessibleContext.accessibleDescription")); // NOI18N
 
134
    }// </editor-fold>//GEN-END:initComponents
 
135
    
 
136
    
 
137
    // Variables declaration - do not modify//GEN-BEGIN:variables
 
138
    private javax.swing.JLabel jLabel1;
 
139
    private javax.swing.JLabel jLabel2;
 
140
    private javax.swing.JLabel jLabel3;
 
141
    private javax.swing.JTextField tfCurrentURL;
 
142
    private javax.swing.JTextField tfNewURL;
 
143
    private javax.swing.JTextField tfWorkingCopy;
 
144
    // End of variables declaration//GEN-END:variables
 
145
    
 
146
    public JTextField getWorkingCopy() {
 
147
        return tfWorkingCopy;
 
148
    }
 
149
    
 
150
    public JTextField getCurrentURL() {
 
151
        return tfCurrentURL;
 
152
    }
 
153
    
 
154
    public JTextField getNewURL() {
 
155
        return tfNewURL;
 
156
    }
 
157
}