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: package org.netbeans.modules.subversion.options;
042:
043: /**
044: *
045: * @author Tomas Stupka
046: */
047: public class SvnOptionsPanel extends javax.swing.JPanel {
048:
049: /** Creates new form SvnOptionsPanel */
050: public SvnOptionsPanel() {
051: initComponents();
052: }
053:
054: /** This method is called from within the constructor to
055: * initialize the form.
056: * WARNING: Do NOT modify this code. The content of this method is
057: * always regenerated by the Form Editor.
058: */
059: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
060: private void initComponents() {
061:
062: jLabel1 = new javax.swing.JLabel();
063: jLabel5 = new javax.swing.JLabel();
064: jLabel3 = new javax.swing.JLabel();
065: jLabel6 = new javax.swing.JLabel();
066: jLabel4 = new javax.swing.JLabel();
067: jLabel2 = new javax.swing.JLabel();
068: jLabel7 = new javax.swing.JLabel();
069: jSeparator1 = new javax.swing.JSeparator();
070: jSeparator2 = new javax.swing.JSeparator();
071:
072: jLabel1.setLabelFor(executablePathTextField);
073: org.openide.awt.Mnemonics.setLocalizedText(jLabel1,
074: org.openide.util.NbBundle.getMessage(
075: SvnOptionsPanel.class,
076: "SvnOptionsPanel.jLabel1.text")); // NOI18N
077:
078: jLabel5.setText(org.openide.util.NbBundle.getMessage(
079: SvnOptionsPanel.class, "SvnOptionsPanel.jLabel5.text")); // NOI18N
080:
081: org.openide.awt.Mnemonics.setLocalizedText(browseButton,
082: org.openide.util.NbBundle.getMessage(
083: SvnOptionsPanel.class,
084: "SvnOptionsPanel.browseButton.text")); // NOI18N
085:
086: org.openide.awt.Mnemonics
087: .setLocalizedText(
088: manageConnSettingsButton,
089: org.openide.util.NbBundle
090: .getMessage(SvnOptionsPanel.class,
091: "SvnOptionsPanel.manageConnSettingsButton.text")); // NOI18N
092:
093: jLabel3.setText(org.openide.util.NbBundle.getMessage(
094: SvnOptionsPanel.class, "SvnOptionsPanel.jLabel3.text")); // NOI18N
095:
096: jLabel6.setText(org.openide.util.NbBundle.getMessage(
097: SvnOptionsPanel.class, "SvnOptionsPanel.jLabel6.text")); // NOI18N
098:
099: jLabel4.setText(org.openide.util.NbBundle.getMessage(
100: SvnOptionsPanel.class, "SvnOptionsPanel.jLabel4.text")); // NOI18N
101:
102: jLabel2.setLabelFor(annotationTextField);
103: org.openide.awt.Mnemonics.setLocalizedText(jLabel2,
104: org.openide.util.NbBundle.getMessage(
105: SvnOptionsPanel.class,
106: "SvnOptionsPanel.jLabel2.text")); // NOI18N
107:
108: annotationTextField.setText(org.openide.util.NbBundle
109: .getMessage(SvnOptionsPanel.class,
110: "SvnOptionsPanel.annotationTextField.text")); // NOI18N
111:
112: org.openide.awt.Mnemonics.setLocalizedText(addButton,
113: org.openide.util.NbBundle.getMessage(
114: SvnOptionsPanel.class,
115: "SvnOptionsPanel.addButton.text")); // NOI18N
116:
117: org.openide.awt.Mnemonics.setLocalizedText(manageLabelsButton,
118: org.openide.util.NbBundle.getMessage(
119: SvnOptionsPanel.class,
120: "SvnOptionsPanel.manageLabelsButton.text")); // NOI18N
121:
122: jLabel7.setText(org.openide.util.NbBundle.getMessage(
123: SvnOptionsPanel.class, "SvnOptionsPanel.jLabel7.text")); // NOI18N
124:
125: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
126: this );
127: this .setLayout(layout);
128: layout
129: .setHorizontalGroup(layout
130: .createParallelGroup(
131: org.jdesktop.layout.GroupLayout.LEADING)
132: .add(
133: layout
134: .createSequentialGroup()
135: .add(0, 0, 0)
136: .add(
137: layout
138: .createParallelGroup(
139: org.jdesktop.layout.GroupLayout.LEADING)
140: .add(
141: layout
142: .createSequentialGroup()
143: .add(
144: 12,
145: 12,
146: 12)
147: .add(
148: layout
149: .createParallelGroup(
150: org.jdesktop.layout.GroupLayout.LEADING)
151: .add(
152: layout
153: .createSequentialGroup()
154: .add(
155: jLabel7,
156: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
157: 441,
158: Short.MAX_VALUE)
159: .addPreferredGap(
160: org.jdesktop.layout.LayoutStyle.RELATED))
161: .add(
162: layout
163: .createSequentialGroup()
164: .add(
165: jLabel2)
166: .addPreferredGap(
167: org.jdesktop.layout.LayoutStyle.RELATED)
168: .add(
169: annotationTextField,
170: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
171: 387,
172: Short.MAX_VALUE)
173: .add(
174: 7,
175: 7,
176: 7)))
177: .add(
178: layout
179: .createParallelGroup(
180: org.jdesktop.layout.GroupLayout.LEADING,
181: false)
182: .add(
183: org.jdesktop.layout.GroupLayout.TRAILING,
184: addButton,
185: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
186: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
187: Short.MAX_VALUE)
188: .add(
189: org.jdesktop.layout.GroupLayout.TRAILING,
190: manageLabelsButton,
191: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
192: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
193: Short.MAX_VALUE)))
194: .add(
195: layout
196: .createSequentialGroup()
197: .add(
198: jLabel1)
199: .addPreferredGap(
200: org.jdesktop.layout.LayoutStyle.RELATED)
201: .add(
202: layout
203: .createParallelGroup(
204: org.jdesktop.layout.GroupLayout.LEADING)
205: .add(
206: jLabel5)
207: .add(
208: org.jdesktop.layout.GroupLayout.TRAILING,
209: layout
210: .createSequentialGroup()
211: .add(
212: executablePathTextField,
213: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
214: 309,
215: Short.MAX_VALUE)
216: .addPreferredGap(
217: org.jdesktop.layout.LayoutStyle.RELATED)
218: .add(
219: browseButton))))
220: .add(
221: layout
222: .createSequentialGroup()
223: .add(
224: jLabel3)
225: .addPreferredGap(
226: org.jdesktop.layout.LayoutStyle.RELATED)
227: .add(
228: jSeparator1,
229: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
230: 460,
231: Short.MAX_VALUE))
232: .add(
233: layout
234: .createSequentialGroup()
235: .add(
236: 12,
237: 12,
238: 12)
239: .add(
240: jLabel6)
241: .addPreferredGap(
242: org.jdesktop.layout.LayoutStyle.RELATED,
243: 44,
244: Short.MAX_VALUE)
245: .add(
246: manageConnSettingsButton))
247: .add(
248: layout
249: .createSequentialGroup()
250: .add(
251: jLabel4)
252: .addPreferredGap(
253: org.jdesktop.layout.LayoutStyle.RELATED)
254: .add(
255: jSeparator2,
256: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
257: 430,
258: Short.MAX_VALUE)))));
259: layout
260: .setVerticalGroup(layout
261: .createParallelGroup(
262: org.jdesktop.layout.GroupLayout.LEADING)
263: .add(
264: layout
265: .createSequentialGroup()
266: .add(
267: layout
268: .createParallelGroup(
269: org.jdesktop.layout.GroupLayout.BASELINE)
270: .add(jLabel1)
271: .add(
272: browseButton)
273: .add(
274: executablePathTextField,
275: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
276: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
277: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
278: .addPreferredGap(
279: org.jdesktop.layout.LayoutStyle.RELATED)
280: .add(jLabel5)
281: .addPreferredGap(
282: org.jdesktop.layout.LayoutStyle.RELATED)
283: .add(
284: layout
285: .createParallelGroup(
286: org.jdesktop.layout.GroupLayout.TRAILING)
287: .add(jLabel3)
288: .add(
289: jSeparator1,
290: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
291: 10,
292: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
293: .addPreferredGap(
294: org.jdesktop.layout.LayoutStyle.RELATED)
295: .add(
296: layout
297: .createParallelGroup(
298: org.jdesktop.layout.GroupLayout.BASELINE)
299: .add(
300: jLabel6,
301: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
302: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
303: Short.MAX_VALUE)
304: .add(
305: manageConnSettingsButton))
306: .add(
307: layout
308: .createParallelGroup(
309: org.jdesktop.layout.GroupLayout.LEADING)
310: .add(
311: layout
312: .createSequentialGroup()
313: .add(
314: 18,
315: 18,
316: 18)
317: .add(
318: jLabel4))
319: .add(
320: layout
321: .createSequentialGroup()
322: .add(
323: 24,
324: 24,
325: 24)
326: .add(
327: jSeparator2,
328: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
329: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
330: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
331: .addPreferredGap(
332: org.jdesktop.layout.LayoutStyle.RELATED)
333: .add(
334: layout
335: .createParallelGroup(
336: org.jdesktop.layout.GroupLayout.BASELINE)
337: .add(jLabel2)
338: .add(
339: annotationTextField,
340: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
341: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
342: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
343: .add(addButton))
344: .addPreferredGap(
345: org.jdesktop.layout.LayoutStyle.UNRELATED)
346: .add(
347: layout
348: .createParallelGroup(
349: org.jdesktop.layout.GroupLayout.BASELINE)
350: .add(jLabel7)
351: .add(
352: manageLabelsButton))
353: .addContainerGap()));
354:
355: executablePathTextField
356: .getAccessibleContext()
357: .setAccessibleName(
358: org.openide.util.NbBundle
359: .getMessage(SvnOptionsPanel.class,
360: "ACSN_SvnOptionsPanel.executablePathTextField.text")); // NOI18N
361: executablePathTextField
362: .getAccessibleContext()
363: .setAccessibleDescription(
364: org.openide.util.NbBundle
365: .getMessage(SvnOptionsPanel.class,
366: "ACSD_SvnOptionsPanel.executablePathTextField.text")); // NOI18N
367: browseButton.getAccessibleContext().setAccessibleName(
368: org.openide.util.NbBundle.getMessage(
369: SvnOptionsPanel.class,
370: "ACSN_SvnOptionsPanel.browseButton.text")); // NOI18N
371: browseButton.getAccessibleContext().setAccessibleDescription(
372: org.openide.util.NbBundle.getMessage(
373: SvnOptionsPanel.class,
374: "ACSD_SvnOptionsPanel.browseButton.text")); // NOI18N
375: manageConnSettingsButton
376: .getAccessibleContext()
377: .setAccessibleName(
378: org.openide.util.NbBundle
379: .getMessage(SvnOptionsPanel.class,
380: "ACSN_SvnOptionsPanel.manageConnSettingsButton.text")); // NOI18N
381: manageConnSettingsButton
382: .getAccessibleContext()
383: .setAccessibleDescription(
384: org.openide.util.NbBundle
385: .getMessage(SvnOptionsPanel.class,
386: "ACSD_SvnOptionsPanel.manageConnSettingsButton.text")); // NOI18N
387: annotationTextField
388: .getAccessibleContext()
389: .setAccessibleName(
390: org.openide.util.NbBundle
391: .getMessage(SvnOptionsPanel.class,
392: "ACSN_SvnOptionsPanel.annotationTextField.text")); // NOI18N
393: annotationTextField
394: .getAccessibleContext()
395: .setAccessibleDescription(
396: org.openide.util.NbBundle
397: .getMessage(SvnOptionsPanel.class,
398: "ACSD_SvnOptionsPanel.annotationTextField.text")); // NOI18N
399: addButton.getAccessibleContext().setAccessibleName(
400: org.openide.util.NbBundle.getMessage(
401: SvnOptionsPanel.class,
402: "ACSN_SvnOptionsPanel.addButton.text")); // NOI18N
403: addButton.getAccessibleContext().setAccessibleDescription(
404: org.openide.util.NbBundle.getMessage(
405: SvnOptionsPanel.class,
406: "ACSD_SvnOptionsPanel.addButton.text")); // NOI18N
407: manageLabelsButton
408: .getAccessibleContext()
409: .setAccessibleName(
410: org.openide.util.NbBundle
411: .getMessage(SvnOptionsPanel.class,
412: "ACSN_SvnOptionsPanel.manageLabelsButton.text")); // NOI18N
413: manageLabelsButton
414: .getAccessibleContext()
415: .setAccessibleDescription(
416: org.openide.util.NbBundle
417: .getMessage(SvnOptionsPanel.class,
418: "ACSD_SvnOptionsPanel.manageLabelsButton.text")); // NOI18N
419: }// </editor-fold>//GEN-END:initComponents
420:
421: // Variables declaration - do not modify//GEN-BEGIN:variables
422: final javax.swing.JButton addButton = new javax.swing.JButton();
423: final javax.swing.JTextField annotationTextField = new javax.swing.JTextField();
424: final javax.swing.JButton browseButton = new javax.swing.JButton();
425: final javax.swing.JTextField executablePathTextField = new javax.swing.JTextField();
426: private javax.swing.JLabel jLabel1;
427: private javax.swing.JLabel jLabel2;
428: private javax.swing.JLabel jLabel3;
429: private javax.swing.JLabel jLabel4;
430: private javax.swing.JLabel jLabel5;
431: private javax.swing.JLabel jLabel6;
432: private javax.swing.JLabel jLabel7;
433: private javax.swing.JSeparator jSeparator1;
434: private javax.swing.JSeparator jSeparator2;
435: final javax.swing.JButton manageConnSettingsButton = new javax.swing.JButton();
436: final javax.swing.JButton manageLabelsButton = new javax.swing.JButton();
437: // End of variables declaration//GEN-END:variables
438:
439: }
|