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.java.ui;
043:
044: import org.netbeans.api.java.source.CodeStyle;
045: import static org.netbeans.modules.java.ui.FmtOptions.*;
046: import static org.netbeans.modules.java.ui.FmtOptions.CategorySupport.OPTION_ID;
047: import org.netbeans.modules.java.ui.FmtOptions.CategorySupport;
048: import org.openide.util.NbBundle;
049:
050: /**
051: *
052: * @author phrebejk
053: */
054: public class FmtWrapping extends javax.swing.JPanel {
055:
056: /** Creates new form FmtWrapping */
057: public FmtWrapping() {
058: initComponents();
059:
060: scrollPane.getViewport().setBackground(
061: java.awt.SystemColor.controlLtHighlight);
062:
063: extendsImplementsKeywordCombo.putClientProperty(OPTION_ID,
064: wrapExtendsImplementsKeyword);
065: extendsImplementsListCombo.putClientProperty(OPTION_ID,
066: wrapExtendsImplementsList);
067: methodParamsCombo
068: .putClientProperty(OPTION_ID, wrapMethodParams);
069: methodCallArgsCombo.putClientProperty(OPTION_ID,
070: wrapMethodCallArgs);
071: annotationArgsCombo.putClientProperty(OPTION_ID,
072: wrapAnnotationArgs);
073: chainedMethodCallsCombo.putClientProperty(OPTION_ID,
074: wrapChainedMethodCalls);
075: throwsKeywordCombo.putClientProperty(OPTION_ID,
076: wrapThrowsKeyword);
077: throwsListCombo.putClientProperty(OPTION_ID, wrapThrowsList);
078: arrayInitCombo.putClientProperty(OPTION_ID, wrapArrayInit);
079: forCombo.putClientProperty(OPTION_ID, wrapFor);
080: forStatementCombo
081: .putClientProperty(OPTION_ID, wrapForStatement);
082: ifStatementCombo.putClientProperty(OPTION_ID, wrapIfStatement);
083: whileStatementComboBox.putClientProperty(OPTION_ID,
084: wrapWhileStatement);
085: doWhileStatementCombo.putClientProperty(OPTION_ID,
086: wrapDoWhileStatement);
087: assertCombo.putClientProperty(OPTION_ID, wrapAssert);
088: enumConstantsCombo.putClientProperty(OPTION_ID,
089: wrapEnumConstants);
090: annotationsCombo.putClientProperty(OPTION_ID, wrapAnnotations);
091: binaryOpsCombo.putClientProperty(OPTION_ID, wrapBinaryOps);
092: ternaryOpsCombo.putClientProperty(OPTION_ID, wrapTernaryOps);
093: assignOpsCombo.putClientProperty(OPTION_ID, wrapAssignOps);
094: }
095:
096: public static FormatingOptionsPanel.Category getController() {
097: return new CategorySupport(
098: "LBL_Wrapping", // NOI18N
099: new FmtWrapping(), NbBundle.getMessage(
100: FmtWrapping.class, "SAMPLE_Wrapping"),
101: new String[] { FmtOptions.rightMargin, "30" },
102: new String[] {
103: FmtOptions.redundantDoWhileBraces,
104: CodeStyle.BracesGenerationStyle.LEAVE_ALONE
105: .name() }, new String[] {
106: FmtOptions.redundantForBraces,
107: CodeStyle.BracesGenerationStyle.LEAVE_ALONE
108: .name() }, new String[] {
109: FmtOptions.redundantIfBraces,
110: CodeStyle.BracesGenerationStyle.LEAVE_ALONE
111: .name() }, new String[] {
112: FmtOptions.redundantWhileBraces,
113: CodeStyle.BracesGenerationStyle.LEAVE_ALONE
114: .name() }); // NOI18N
115: }
116:
117: /** This method is called from within the constructor to
118: * initialize the form.
119: * WARNING: Do NOT modify this code. The content of this method is
120: * always regenerated by the Form Editor.
121: */
122: // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
123: private void initComponents() {
124: java.awt.GridBagConstraints gridBagConstraints;
125:
126: scrollPane = new javax.swing.JScrollPane();
127: panel1 = new javax.swing.JPanel();
128: extendsImplemetsKeywordLabel = new javax.swing.JLabel();
129: extendsImplementsKeywordCombo = new javax.swing.JComboBox();
130: extendsImplementsListLabel = new javax.swing.JLabel();
131: extendsImplementsListCombo = new javax.swing.JComboBox();
132: methodParamsLabel = new javax.swing.JLabel();
133: methodParamsCombo = new javax.swing.JComboBox();
134: methodCallArgsLabel = new javax.swing.JLabel();
135: methodCallArgsCombo = new javax.swing.JComboBox();
136: annotationArgsLabel = new javax.swing.JLabel();
137: annotationArgsCombo = new javax.swing.JComboBox();
138: chainedMethodCallsLabel = new javax.swing.JLabel();
139: chainedMethodCallsCombo = new javax.swing.JComboBox();
140: throwsKeywordLabel = new javax.swing.JLabel();
141: throwsKeywordCombo = new javax.swing.JComboBox();
142: throwsListLabel = new javax.swing.JLabel();
143: throwsListCombo = new javax.swing.JComboBox();
144: arrayInitLabel = new javax.swing.JLabel();
145: arrayInitCombo = new javax.swing.JComboBox();
146: forLabel = new javax.swing.JLabel();
147: forCombo = new javax.swing.JComboBox();
148: forStatementLabel = new javax.swing.JLabel();
149: forStatementCombo = new javax.swing.JComboBox();
150: ifStatementLabel = new javax.swing.JLabel();
151: ifStatementCombo = new javax.swing.JComboBox();
152: whileStatementLabel = new javax.swing.JLabel();
153: whileStatementComboBox = new javax.swing.JComboBox();
154: doWhileStatementLabel = new javax.swing.JLabel();
155: doWhileStatementCombo = new javax.swing.JComboBox();
156: assertLabel = new javax.swing.JLabel();
157: assertCombo = new javax.swing.JComboBox();
158: enumConstantsLabel = new javax.swing.JLabel();
159: enumConstantsCombo = new javax.swing.JComboBox();
160: annotationsLabel = new javax.swing.JLabel();
161: annotationsCombo = new javax.swing.JComboBox();
162: binaryOpsLabel = new javax.swing.JLabel();
163: binaryOpsCombo = new javax.swing.JComboBox();
164: ternaryOpsLabel = new javax.swing.JLabel();
165: ternaryOpsCombo = new javax.swing.JComboBox();
166: assignOpsLabel = new javax.swing.JLabel();
167: assignOpsCombo = new javax.swing.JComboBox();
168: spacerPanel1 = new javax.swing.JPanel();
169:
170: setOpaque(false);
171: setLayout(new java.awt.BorderLayout());
172:
173: scrollPane
174: .setBackground(java.awt.SystemColor.controlLtHighlight);
175:
176: panel1.setOpaque(false);
177: panel1.setLayout(new java.awt.GridBagLayout());
178:
179: extendsImplemetsKeywordLabel
180: .setLabelFor(extendsImplementsKeywordCombo);
181: org.openide.awt.Mnemonics.setLocalizedText(
182: extendsImplemetsKeywordLabel, org.openide.util.NbBundle
183: .getMessage(FmtWrapping.class,
184: "LBL_wrp_extendsImplementsKeyword")); // NOI18N
185: gridBagConstraints = new java.awt.GridBagConstraints();
186: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
187: gridBagConstraints.insets = new java.awt.Insets(8, 8, 4, 0);
188: panel1.add(extendsImplemetsKeywordLabel, gridBagConstraints);
189:
190: extendsImplementsKeywordCombo
191: .setModel(new javax.swing.DefaultComboBoxModel(
192: new String[] { "Item 1", "Item 2", "Item 3",
193: "Item 4" }));
194: gridBagConstraints = new java.awt.GridBagConstraints();
195: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
196: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
197: gridBagConstraints.weightx = 1.0;
198: gridBagConstraints.insets = new java.awt.Insets(8, 6, 4, 8);
199: panel1.add(extendsImplementsKeywordCombo, gridBagConstraints);
200:
201: extendsImplementsListLabel
202: .setLabelFor(extendsImplementsListCombo);
203: org.openide.awt.Mnemonics.setLocalizedText(
204: extendsImplementsListLabel, org.openide.util.NbBundle
205: .getMessage(FmtWrapping.class,
206: "LBL_wrp_extendsImplementsList")); // NOI18N
207: gridBagConstraints = new java.awt.GridBagConstraints();
208: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
209: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
210: panel1.add(extendsImplementsListLabel, gridBagConstraints);
211:
212: extendsImplementsListCombo
213: .setModel(new javax.swing.DefaultComboBoxModel(
214: new String[] { "Item 1", "Item 2", "Item 3",
215: "Item 4" }));
216: gridBagConstraints = new java.awt.GridBagConstraints();
217: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
218: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
219: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
220: panel1.add(extendsImplementsListCombo, gridBagConstraints);
221:
222: methodParamsLabel.setLabelFor(methodParamsCombo);
223: org.openide.awt.Mnemonics.setLocalizedText(methodParamsLabel,
224: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
225: "LBL_wrp_methodParameters")); // NOI18N
226: gridBagConstraints = new java.awt.GridBagConstraints();
227: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
228: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
229: panel1.add(methodParamsLabel, gridBagConstraints);
230:
231: methodParamsCombo
232: .setModel(new javax.swing.DefaultComboBoxModel(
233: new String[] { "Item 1", "Item 2", "Item 3",
234: "Item 4" }));
235: gridBagConstraints = new java.awt.GridBagConstraints();
236: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
237: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
238: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
239: panel1.add(methodParamsCombo, gridBagConstraints);
240:
241: methodCallArgsLabel.setLabelFor(methodCallArgsCombo);
242: org.openide.awt.Mnemonics.setLocalizedText(methodCallArgsLabel,
243: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
244: "LBL_wrp_methodCallArgs")); // NOI18N
245: gridBagConstraints = new java.awt.GridBagConstraints();
246: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
247: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
248: panel1.add(methodCallArgsLabel, gridBagConstraints);
249:
250: methodCallArgsCombo
251: .setModel(new javax.swing.DefaultComboBoxModel(
252: new String[] { "Item 1", "Item 2", "Item 3",
253: "Item 4" }));
254: gridBagConstraints = new java.awt.GridBagConstraints();
255: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
256: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
257: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
258: panel1.add(methodCallArgsCombo, gridBagConstraints);
259:
260: annotationArgsLabel.setLabelFor(annotationArgsCombo);
261: org.openide.awt.Mnemonics.setLocalizedText(annotationArgsLabel,
262: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
263: "LBL_wrp_annotationArgs")); // NOI18N
264: gridBagConstraints = new java.awt.GridBagConstraints();
265: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
266: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
267: panel1.add(annotationArgsLabel, gridBagConstraints);
268:
269: annotationArgsCombo
270: .setModel(new javax.swing.DefaultComboBoxModel(
271: new String[] { "Item 1", "Item 2", "Item 3",
272: "Item 4" }));
273: gridBagConstraints = new java.awt.GridBagConstraints();
274: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
275: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
276: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
277: panel1.add(annotationArgsCombo, gridBagConstraints);
278:
279: chainedMethodCallsLabel.setLabelFor(chainedMethodCallsCombo);
280: org.openide.awt.Mnemonics.setLocalizedText(
281: chainedMethodCallsLabel, org.openide.util.NbBundle
282: .getMessage(FmtWrapping.class,
283: "LBL_wrp_chainedMethodCalls")); // NOI18N
284: gridBagConstraints = new java.awt.GridBagConstraints();
285: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
286: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
287: panel1.add(chainedMethodCallsLabel, gridBagConstraints);
288:
289: chainedMethodCallsCombo
290: .setModel(new javax.swing.DefaultComboBoxModel(
291: new String[] { "Item 1", "Item 2", "Item 3",
292: "Item 4" }));
293: gridBagConstraints = new java.awt.GridBagConstraints();
294: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
295: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
296: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
297: panel1.add(chainedMethodCallsCombo, gridBagConstraints);
298:
299: throwsKeywordLabel.setLabelFor(throwsKeywordCombo);
300: org.openide.awt.Mnemonics.setLocalizedText(throwsKeywordLabel,
301: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
302: "LBL_wrp_throwsKeyword")); // NOI18N
303: gridBagConstraints = new java.awt.GridBagConstraints();
304: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
305: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
306: panel1.add(throwsKeywordLabel, gridBagConstraints);
307:
308: throwsKeywordCombo
309: .setModel(new javax.swing.DefaultComboBoxModel(
310: new String[] { "Item 1", "Item 2", "Item 3",
311: "Item 4" }));
312: gridBagConstraints = new java.awt.GridBagConstraints();
313: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
314: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
315: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
316: panel1.add(throwsKeywordCombo, gridBagConstraints);
317:
318: throwsListLabel.setLabelFor(throwsListCombo);
319: org.openide.awt.Mnemonics.setLocalizedText(throwsListLabel,
320: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
321: "LBL_wrp_throwsList")); // NOI18N
322: gridBagConstraints = new java.awt.GridBagConstraints();
323: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
324: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
325: panel1.add(throwsListLabel, gridBagConstraints);
326:
327: throwsListCombo
328: .setModel(new javax.swing.DefaultComboBoxModel(
329: new String[] { "Item 1", "Item 2", "Item 3",
330: "Item 4" }));
331: gridBagConstraints = new java.awt.GridBagConstraints();
332: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
333: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
334: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
335: panel1.add(throwsListCombo, gridBagConstraints);
336:
337: arrayInitLabel.setLabelFor(arrayInitCombo);
338: org.openide.awt.Mnemonics.setLocalizedText(arrayInitLabel,
339: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
340: "LBL_wrp_arrayInit")); // NOI18N
341: gridBagConstraints = new java.awt.GridBagConstraints();
342: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
343: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
344: panel1.add(arrayInitLabel, gridBagConstraints);
345:
346: arrayInitCombo
347: .setModel(new javax.swing.DefaultComboBoxModel(
348: new String[] { "Item 1", "Item 2", "Item 3",
349: "Item 4" }));
350: gridBagConstraints = new java.awt.GridBagConstraints();
351: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
352: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
353: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
354: panel1.add(arrayInitCombo, gridBagConstraints);
355:
356: forLabel.setLabelFor(forCombo);
357: org.openide.awt.Mnemonics.setLocalizedText(forLabel,
358: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
359: "LBL_wrp_for")); // NOI18N
360: gridBagConstraints = new java.awt.GridBagConstraints();
361: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
362: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
363: panel1.add(forLabel, gridBagConstraints);
364:
365: forCombo
366: .setModel(new javax.swing.DefaultComboBoxModel(
367: new String[] { "Item 1", "Item 2", "Item 3",
368: "Item 4" }));
369: gridBagConstraints = new java.awt.GridBagConstraints();
370: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
371: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
372: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
373: panel1.add(forCombo, gridBagConstraints);
374:
375: forStatementLabel.setLabelFor(forStatementCombo);
376: org.openide.awt.Mnemonics.setLocalizedText(forStatementLabel,
377: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
378: "LBL_wrp_forStatement")); // NOI18N
379: gridBagConstraints = new java.awt.GridBagConstraints();
380: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
381: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
382: panel1.add(forStatementLabel, gridBagConstraints);
383:
384: forStatementCombo
385: .setModel(new javax.swing.DefaultComboBoxModel(
386: new String[] { "Item 1", "Item 2", "Item 3",
387: "Item 4" }));
388: gridBagConstraints = new java.awt.GridBagConstraints();
389: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
390: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
391: gridBagConstraints.weightx = 1.0;
392: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
393: panel1.add(forStatementCombo, gridBagConstraints);
394:
395: ifStatementLabel.setLabelFor(ifStatementCombo);
396: org.openide.awt.Mnemonics.setLocalizedText(ifStatementLabel,
397: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
398: "LBL_wrp_ifStatement")); // NOI18N
399: gridBagConstraints = new java.awt.GridBagConstraints();
400: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
401: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
402: panel1.add(ifStatementLabel, gridBagConstraints);
403:
404: ifStatementCombo
405: .setModel(new javax.swing.DefaultComboBoxModel(
406: new String[] { "Item 1", "Item 2", "Item 3",
407: "Item 4" }));
408: gridBagConstraints = new java.awt.GridBagConstraints();
409: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
410: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
411: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
412: panel1.add(ifStatementCombo, gridBagConstraints);
413:
414: whileStatementLabel.setLabelFor(whileStatementComboBox);
415: org.openide.awt.Mnemonics.setLocalizedText(whileStatementLabel,
416: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
417: "LBL_wrp_whileStatement")); // NOI18N
418: gridBagConstraints = new java.awt.GridBagConstraints();
419: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
420: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
421: panel1.add(whileStatementLabel, gridBagConstraints);
422:
423: whileStatementComboBox
424: .setModel(new javax.swing.DefaultComboBoxModel(
425: new String[] { "Item 1", "Item 2", "Item 3",
426: "Item 4" }));
427: gridBagConstraints = new java.awt.GridBagConstraints();
428: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
429: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
430: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
431: panel1.add(whileStatementComboBox, gridBagConstraints);
432:
433: doWhileStatementLabel.setLabelFor(doWhileStatementCombo);
434: org.openide.awt.Mnemonics.setLocalizedText(
435: doWhileStatementLabel, org.openide.util.NbBundle
436: .getMessage(FmtWrapping.class,
437: "LBL_wrp_doWhileStatement")); // NOI18N
438: gridBagConstraints = new java.awt.GridBagConstraints();
439: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
440: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
441: panel1.add(doWhileStatementLabel, gridBagConstraints);
442:
443: doWhileStatementCombo
444: .setModel(new javax.swing.DefaultComboBoxModel(
445: new String[] { "Item 1", "Item 2", "Item 3",
446: "Item 4" }));
447: gridBagConstraints = new java.awt.GridBagConstraints();
448: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
449: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
450: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
451: panel1.add(doWhileStatementCombo, gridBagConstraints);
452:
453: assertLabel.setLabelFor(assertCombo);
454: org.openide.awt.Mnemonics.setLocalizedText(assertLabel,
455: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
456: "LBL_wrp_assert")); // NOI18N
457: gridBagConstraints = new java.awt.GridBagConstraints();
458: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
459: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
460: panel1.add(assertLabel, gridBagConstraints);
461:
462: assertCombo
463: .setModel(new javax.swing.DefaultComboBoxModel(
464: new String[] { "Item 1", "Item 2", "Item 3",
465: "Item 4" }));
466: gridBagConstraints = new java.awt.GridBagConstraints();
467: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
468: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
469: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
470: panel1.add(assertCombo, gridBagConstraints);
471:
472: enumConstantsLabel.setLabelFor(enumConstantsCombo);
473: org.openide.awt.Mnemonics.setLocalizedText(enumConstantsLabel,
474: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
475: "LBL_wrp_enumConstants")); // NOI18N
476: gridBagConstraints = new java.awt.GridBagConstraints();
477: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
478: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
479: panel1.add(enumConstantsLabel, gridBagConstraints);
480:
481: enumConstantsCombo
482: .setModel(new javax.swing.DefaultComboBoxModel(
483: new String[] { "Item 1", "Item 2", "Item 3",
484: "Item 4" }));
485: gridBagConstraints = new java.awt.GridBagConstraints();
486: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
487: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
488: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
489: panel1.add(enumConstantsCombo, gridBagConstraints);
490:
491: annotationsLabel.setLabelFor(annotationsCombo);
492: org.openide.awt.Mnemonics.setLocalizedText(annotationsLabel,
493: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
494: "LBL_wrp_annotations")); // NOI18N
495: gridBagConstraints = new java.awt.GridBagConstraints();
496: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
497: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
498: panel1.add(annotationsLabel, gridBagConstraints);
499:
500: annotationsCombo
501: .setModel(new javax.swing.DefaultComboBoxModel(
502: new String[] { "Item 1", "Item 2", "Item 3",
503: "Item 4" }));
504: gridBagConstraints = new java.awt.GridBagConstraints();
505: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
506: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
507: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
508: panel1.add(annotationsCombo, gridBagConstraints);
509:
510: binaryOpsLabel.setLabelFor(binaryOpsCombo);
511: org.openide.awt.Mnemonics.setLocalizedText(binaryOpsLabel,
512: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
513: "LBL_wrp_binaryOps")); // NOI18N
514: gridBagConstraints = new java.awt.GridBagConstraints();
515: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
516: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
517: panel1.add(binaryOpsLabel, gridBagConstraints);
518:
519: binaryOpsCombo
520: .setModel(new javax.swing.DefaultComboBoxModel(
521: new String[] { "Item 1", "Item 2", "Item 3",
522: "Item 4" }));
523: gridBagConstraints = new java.awt.GridBagConstraints();
524: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
525: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
526: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
527: panel1.add(binaryOpsCombo, gridBagConstraints);
528:
529: ternaryOpsLabel.setLabelFor(ternaryOpsCombo);
530: org.openide.awt.Mnemonics.setLocalizedText(ternaryOpsLabel,
531: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
532: "LBL_wrp_ternaryOps")); // NOI18N
533: gridBagConstraints = new java.awt.GridBagConstraints();
534: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
535: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
536: panel1.add(ternaryOpsLabel, gridBagConstraints);
537:
538: ternaryOpsCombo
539: .setModel(new javax.swing.DefaultComboBoxModel(
540: new String[] { "Item 1", "Item 2", "Item 3",
541: "Item 4" }));
542: gridBagConstraints = new java.awt.GridBagConstraints();
543: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
544: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
545: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
546: panel1.add(ternaryOpsCombo, gridBagConstraints);
547:
548: assignOpsLabel.setLabelFor(assignOpsCombo);
549: org.openide.awt.Mnemonics.setLocalizedText(assignOpsLabel,
550: org.openide.util.NbBundle.getMessage(FmtWrapping.class,
551: "LBL_wrp_assignOps")); // NOI18N
552: gridBagConstraints = new java.awt.GridBagConstraints();
553: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
554: gridBagConstraints.insets = new java.awt.Insets(0, 8, 4, 0);
555: panel1.add(assignOpsLabel, gridBagConstraints);
556:
557: assignOpsCombo
558: .setModel(new javax.swing.DefaultComboBoxModel(
559: new String[] { "Item 1", "Item 2", "Item 3",
560: "Item 4" }));
561: gridBagConstraints = new java.awt.GridBagConstraints();
562: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
563: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
564: gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 8);
565: panel1.add(assignOpsCombo, gridBagConstraints);
566:
567: spacerPanel1.setOpaque(false);
568: gridBagConstraints = new java.awt.GridBagConstraints();
569: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
570: gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
571: gridBagConstraints.weighty = 1.0;
572: gridBagConstraints.insets = new java.awt.Insets(0, 8, 0, 8);
573: panel1.add(spacerPanel1, gridBagConstraints);
574:
575: scrollPane.setViewportView(panel1);
576:
577: add(scrollPane, java.awt.BorderLayout.CENTER);
578: }// </editor-fold>//GEN-END:initComponents
579:
580: // Variables declaration - do not modify//GEN-BEGIN:variables
581: private javax.swing.JComboBox annotationArgsCombo;
582: private javax.swing.JLabel annotationArgsLabel;
583: private javax.swing.JComboBox annotationsCombo;
584: private javax.swing.JLabel annotationsLabel;
585: private javax.swing.JComboBox arrayInitCombo;
586: private javax.swing.JLabel arrayInitLabel;
587: private javax.swing.JComboBox assertCombo;
588: private javax.swing.JLabel assertLabel;
589: private javax.swing.JComboBox assignOpsCombo;
590: private javax.swing.JLabel assignOpsLabel;
591: private javax.swing.JComboBox binaryOpsCombo;
592: private javax.swing.JLabel binaryOpsLabel;
593: private javax.swing.JComboBox chainedMethodCallsCombo;
594: private javax.swing.JLabel chainedMethodCallsLabel;
595: private javax.swing.JComboBox doWhileStatementCombo;
596: private javax.swing.JLabel doWhileStatementLabel;
597: private javax.swing.JComboBox enumConstantsCombo;
598: private javax.swing.JLabel enumConstantsLabel;
599: private javax.swing.JComboBox extendsImplementsKeywordCombo;
600: private javax.swing.JComboBox extendsImplementsListCombo;
601: private javax.swing.JLabel extendsImplementsListLabel;
602: private javax.swing.JLabel extendsImplemetsKeywordLabel;
603: private javax.swing.JComboBox forCombo;
604: private javax.swing.JLabel forLabel;
605: private javax.swing.JComboBox forStatementCombo;
606: private javax.swing.JLabel forStatementLabel;
607: private javax.swing.JComboBox ifStatementCombo;
608: private javax.swing.JLabel ifStatementLabel;
609: private javax.swing.JComboBox methodCallArgsCombo;
610: private javax.swing.JLabel methodCallArgsLabel;
611: private javax.swing.JComboBox methodParamsCombo;
612: private javax.swing.JLabel methodParamsLabel;
613: private javax.swing.JPanel panel1;
614: private javax.swing.JScrollPane scrollPane;
615: private javax.swing.JPanel spacerPanel1;
616: private javax.swing.JComboBox ternaryOpsCombo;
617: private javax.swing.JLabel ternaryOpsLabel;
618: private javax.swing.JComboBox throwsKeywordCombo;
619: private javax.swing.JLabel throwsKeywordLabel;
620: private javax.swing.JComboBox throwsListCombo;
621: private javax.swing.JLabel throwsListLabel;
622: private javax.swing.JComboBox whileStatementComboBox;
623: private javax.swing.JLabel whileStatementLabel;
624: // End of variables declaration//GEN-END:variables
625:
626: }
|