2
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
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]"
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.
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.
44
* Created on 03 March 2007, 11:53
47
package org.netbeans.modules.subversion.ui.relocate;
49
import javax.swing.JTextField;
55
public class RelocatePanel extends javax.swing.JPanel {
57
/** Creates new form RelocatePanel */
58
public RelocatePanel() {
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.
67
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
68
private void initComponents() {
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();
77
jLabel1.setLabelFor(tfWorkingCopy);
78
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel1.text")); // NOI18N
80
tfWorkingCopy.setEditable(false);
82
jLabel2.setLabelFor(tfCurrentURL);
83
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel2.text")); // NOI18N
85
tfCurrentURL.setEditable(false);
87
jLabel3.setLabelFor(tfNewURL);
88
org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel3.text")); // NOI18N
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()
96
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
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))
107
layout.setVerticalGroup(
108
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
109
.add(layout.createSequentialGroup()
111
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
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)
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)
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))
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
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
146
public JTextField getWorkingCopy() {
147
return tfWorkingCopy;
150
public JTextField getCurrentURL() {
154
public JTextField getNewURL() {