001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.subversion.ui.copy;
043:
044: import org.netbeans.modules.subversion.ui.wizards.*;
045:
046: /**
047: *
048: * @author Petr Kuzel
049: */
050: public class MergeTwoFoldersPanel extends javax.swing.JPanel {
051:
052: /** Creates new form WorkdirPanel */
053: public MergeTwoFoldersPanel() {
054: initComponents();
055: }
056:
057: /** This method is called from within the constructor to
058: * initialize the form.
059: * WARNING: Do NOT modify this code. The content of this method is
060: * always regenerated by the Form Editor.
061: */
062: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
063: private void initComponents() {
064:
065: jLabel8 = new javax.swing.JLabel();
066: jLabel9 = new javax.swing.JLabel();
067:
068: setName(org.openide.util.NbBundle
069: .getMessage(MergeTwoFoldersPanel.class,
070: "CTL_MergeTwoPanel_Message")); // NOI18N
071:
072: mergeStartRepositoryFolderLabel
073: .setLabelFor(mergeStartUrlComboBox);
074: org.openide.awt.Mnemonics.setLocalizedText(
075: mergeStartRepositoryFolderLabel,
076: org.openide.util.NbBundle.getMessage(
077: MergeTwoFoldersPanel.class,
078: "CTL_MergeTwoPanel_FirstFolder")); // NOI18N
079:
080: org.openide.awt.Mnemonics.setLocalizedText(
081: mergeEndBrowseButton, org.openide.util.NbBundle
082: .getMessage(MergeTwoFoldersPanel.class,
083: "CTL_MergeTwoPanel_Browse2")); // NOI18N
084:
085: mergeEndUrlComboBox.setEditable(true);
086:
087: mergeAfterRevisionLabel
088: .setIcon(new javax.swing.ImageIcon(
089: getClass()
090: .getResource(
091: "/org/netbeans/modules/subversion/resources/icons/ending_revision.png"))); // NOI18N
092: mergeAfterRevisionLabel.setLabelFor(mergeEndRevisionTextField);
093: org.openide.awt.Mnemonics.setLocalizedText(
094: mergeAfterRevisionLabel, org.openide.util.NbBundle
095: .getMessage(MergeTwoFoldersPanel.class,
096: "CTL_MergeTwoPanel_Ending")); // NOI18N
097:
098: org.openide.awt.Mnemonics.setLocalizedText(
099: mergeStartSearchButton, org.openide.util.NbBundle
100: .getMessage(MergeTwoFoldersPanel.class,
101: "CTL_MergeTwoPanel_Search1")); // NOI18N
102:
103: org.openide.awt.Mnemonics.setLocalizedText(
104: mergeAfterEmptyLabel, org.openide.util.NbBundle
105: .getMessage(MergeTwoFoldersPanel.class,
106: "CTL_MergeTwoPanel_EmptyHint")); // NOI18N
107:
108: mergeEndRepositoryFolderLabel.setLabelFor(mergeEndUrlComboBox);
109: org.openide.awt.Mnemonics.setLocalizedText(
110: mergeEndRepositoryFolderLabel,
111: org.openide.util.NbBundle.getMessage(
112: MergeTwoFoldersPanel.class,
113: "CTL_MergeTwoPanel_Second")); // NOI18N
114:
115: mergeStartUrlComboBox.setEditable(true);
116:
117: org.openide.awt.Mnemonics.setLocalizedText(
118: mergeStartBrowseButton, org.openide.util.NbBundle
119: .getMessage(MergeTwoFoldersPanel.class,
120: "CTL_MergeTwoPanel_Browse1")); // NOI18N
121:
122: org.openide.awt.Mnemonics.setLocalizedText(
123: mergeEndSearchButton, org.openide.util.NbBundle
124: .getMessage(MergeTwoFoldersPanel.class,
125: "CTL_MergeTwoPanel_Search2")); // NOI18N
126:
127: jLabel8
128: .setIcon(new javax.swing.ImageIcon(
129: getClass()
130: .getResource(
131: "/org/netbeans/modules/subversion/resources/icons/starting_revision.png"))); // NOI18N
132: jLabel8.setLabelFor(mergeStartRevisionTextField);
133: org.openide.awt.Mnemonics.setLocalizedText(jLabel8,
134: org.openide.util.NbBundle.getMessage(
135: MergeTwoFoldersPanel.class,
136: "CTL_MergeTwoPanel_Starting")); // NOI18N
137:
138: org.openide.awt.Mnemonics.setLocalizedText(jLabel9,
139: org.openide.util.NbBundle.getMessage(
140: MergeTwoFoldersPanel.class,
141: "CTL_MergeTwoPanel_EmptyHint")); // NOI18N
142:
143: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
144: this );
145: this .setLayout(layout);
146: layout
147: .setHorizontalGroup(layout
148: .createParallelGroup(
149: org.jdesktop.layout.GroupLayout.LEADING)
150: .add(
151: layout
152: .createSequentialGroup()
153: .add(
154: layout
155: .createParallelGroup(
156: org.jdesktop.layout.GroupLayout.LEADING,
157: false)
158: .add(
159: mergeEndRepositoryFolderLabel,
160: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
161: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
162: Short.MAX_VALUE)
163: .add(
164: jLabel8,
165: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
166: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
167: Short.MAX_VALUE)
168: .add(
169: mergeAfterRevisionLabel,
170: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
171: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
172: Short.MAX_VALUE)
173: .add(
174: mergeStartRepositoryFolderLabel,
175: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
176: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
177: Short.MAX_VALUE))
178: .addPreferredGap(
179: org.jdesktop.layout.LayoutStyle.RELATED)
180: .add(
181: layout
182: .createParallelGroup(
183: org.jdesktop.layout.GroupLayout.LEADING)
184: .add(
185: layout
186: .createSequentialGroup()
187: .add(
188: jLabel9)
189: .addContainerGap())
190: .add(
191: layout
192: .createSequentialGroup()
193: .add(
194: layout
195: .createParallelGroup(
196: org.jdesktop.layout.GroupLayout.LEADING)
197: .add(
198: mergeEndUrlComboBox,
199: 0,
200: 397,
201: Short.MAX_VALUE)
202: .add(
203: mergeStartUrlComboBox,
204: 0,
205: 397,
206: Short.MAX_VALUE)
207: .add(
208: layout
209: .createSequentialGroup()
210: .add(
211: mergeStartRevisionTextField,
212: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
213: 93,
214: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
215: .addPreferredGap(
216: org.jdesktop.layout.LayoutStyle.RELATED)
217: .add(
218: mergeStartSearchButton))
219: .add(
220: layout
221: .createSequentialGroup()
222: .add(
223: mergeEndRevisionTextField,
224: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
225: 93,
226: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
227: .addPreferredGap(
228: org.jdesktop.layout.LayoutStyle.RELATED)
229: .add(
230: mergeEndSearchButton))
231: .add(
232: mergeAfterEmptyLabel))
233: .addPreferredGap(
234: org.jdesktop.layout.LayoutStyle.RELATED)
235: .add(
236: layout
237: .createParallelGroup(
238: org.jdesktop.layout.GroupLayout.TRAILING)
239: .add(
240: mergeEndBrowseButton)
241: .add(
242: mergeStartBrowseButton))))));
243: layout
244: .setVerticalGroup(layout
245: .createParallelGroup(
246: org.jdesktop.layout.GroupLayout.LEADING)
247: .add(
248: layout
249: .createSequentialGroup()
250: .addContainerGap()
251: .add(
252: layout
253: .createParallelGroup(
254: org.jdesktop.layout.GroupLayout.BASELINE)
255: .add(
256: mergeStartUrlComboBox,
257: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
258: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
259: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
260: .add(
261: mergeStartBrowseButton)
262: .add(
263: mergeStartRepositoryFolderLabel))
264: .add(12, 12, 12)
265: .add(
266: layout
267: .createParallelGroup(
268: org.jdesktop.layout.GroupLayout.BASELINE)
269: .add(
270: mergeStartRevisionTextField,
271: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
272: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
273: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
274: .add(
275: mergeStartSearchButton)
276: .add(jLabel8))
277: .addPreferredGap(
278: org.jdesktop.layout.LayoutStyle.RELATED)
279: .add(jLabel9)
280: .add(19, 19, 19)
281: .add(
282: layout
283: .createParallelGroup(
284: org.jdesktop.layout.GroupLayout.BASELINE)
285: .add(
286: mergeEndRepositoryFolderLabel)
287: .add(
288: mergeEndUrlComboBox,
289: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
290: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
291: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
292: .add(
293: mergeEndBrowseButton))
294: .add(17, 17, 17)
295: .add(
296: layout
297: .createParallelGroup(
298: org.jdesktop.layout.GroupLayout.BASELINE)
299: .add(
300: mergeEndRevisionTextField,
301: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
302: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
303: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
304: .add(
305: mergeEndSearchButton)
306: .add(
307: mergeAfterRevisionLabel))
308: .addPreferredGap(
309: org.jdesktop.layout.LayoutStyle.RELATED)
310: .add(mergeAfterEmptyLabel)
311: .addContainerGap()));
312:
313: mergeStartRepositoryFolderLabel.getAccessibleContext()
314: .setAccessibleDescription("First Repository Folder");
315: mergeEndBrowseButton.getAccessibleContext()
316: .setAccessibleDescription("Browse Repository Folders");
317: mergeEndUrlComboBox.getAccessibleContext()
318: .setAccessibleDescription("Second Repository Folder");
319: mergeAfterRevisionLabel.getAccessibleContext()
320: .setAccessibleDescription(
321: "End Repository Revision for Merging");
322: mergeEndRevisionTextField.getAccessibleContext()
323: .setAccessibleName("Ending Revision for Merging");
324: mergeEndRevisionTextField
325: .getAccessibleContext()
326: .setAccessibleDescription("Ending Revision for Merging");
327: mergeStartSearchButton.getAccessibleContext()
328: .setAccessibleDescription(
329: "Search Repository Revision Number");
330: mergeEndRepositoryFolderLabel.getAccessibleContext()
331: .setAccessibleDescription("Second Repository Folder");
332: mergeStartUrlComboBox.getAccessibleContext()
333: .setAccessibleDescription("Second Repository Folder");
334: mergeStartBrowseButton.getAccessibleContext()
335: .setAccessibleDescription("Browse Repository Folders");
336: mergeEndSearchButton.getAccessibleContext()
337: .setAccessibleDescription("Search Repository Revision");
338: mergeStartRevisionTextField.getAccessibleContext()
339: .setAccessibleDescription(
340: "Staring Repository Revision for Merging");
341: jLabel8.getAccessibleContext().setAccessibleDescription(
342: "Starting Revision for Merging");
343: }// </editor-fold>//GEN-END:initComponents
344:
345: // Variables declaration - do not modify//GEN-BEGIN:variables
346: private javax.swing.JLabel jLabel8;
347: private javax.swing.JLabel jLabel9;
348: final javax.swing.JLabel mergeAfterEmptyLabel = new javax.swing.JLabel();
349: final javax.swing.JLabel mergeAfterRevisionLabel = new javax.swing.JLabel();
350: final javax.swing.JButton mergeEndBrowseButton = new javax.swing.JButton();
351: final javax.swing.JLabel mergeEndRepositoryFolderLabel = new javax.swing.JLabel();
352: final javax.swing.JTextField mergeEndRevisionTextField = new javax.swing.JTextField();
353: final javax.swing.JButton mergeEndSearchButton = new javax.swing.JButton();
354: final javax.swing.JComboBox mergeEndUrlComboBox = new javax.swing.JComboBox();
355: final javax.swing.JButton mergeStartBrowseButton = new javax.swing.JButton();
356: final javax.swing.JLabel mergeStartRepositoryFolderLabel = new javax.swing.JLabel();
357: final javax.swing.JTextField mergeStartRevisionTextField = new javax.swing.JTextField();
358: final javax.swing.JButton mergeStartSearchButton = new javax.swing.JButton();
359: final javax.swing.JComboBox mergeStartUrlComboBox = new javax.swing.JComboBox();
360: // End of variables declaration//GEN-END:variables
361:
362: }
|