KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > clientproject > ui > customizer > CustomizerLibraries


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.clientproject.ui.customizer;
21
22 import java.util.Iterator JavaDoc;
23 import javax.swing.DefaultListModel JavaDoc;
24 import javax.swing.JPanel JavaDoc;
25 import javax.swing.JTable JavaDoc;
26 import javax.swing.ListSelectionModel JavaDoc;
27 import javax.swing.SwingUtilities JavaDoc;
28 import javax.swing.event.ListDataEvent JavaDoc;
29 import javax.swing.event.ListDataListener JavaDoc;
30 import javax.swing.table.JTableHeader JavaDoc;
31 import javax.swing.table.TableColumn JavaDoc;
32 import org.netbeans.api.java.platform.JavaPlatform;
33 import org.netbeans.api.java.platform.PlatformsCustomizer;
34 import org.netbeans.modules.j2ee.clientproject.classpath.ClassPathSupport;
35 import org.netbeans.modules.j2ee.clientproject.ui.AppClientLogicalViewProvider;
36 import org.openide.util.HelpCtx;
37 import org.openide.util.NbBundle;
38
39 /** Customizer for general project attributes.
40  *
41  * @author phrebejk
42  */

43 public class CustomizerLibraries extends JPanel JavaDoc implements HelpCtx.Provider, ListDataListener JavaDoc {
44     
45     public static final String JavaDoc COMPILE = "COMPILE"; //NOI18N
46
public static final String JavaDoc RUN = "RUN"; //NOI18N
47
public static final String JavaDoc COMPILE_TESTS = "COMPILE_TESTS"; //NOI18N
48
public static final String JavaDoc RUN_TESTS = "RUN_TESTS"; //NOI18N
49

50     private final AppClientProjectProperties uiProperties;
51     
52     public CustomizerLibraries( AppClientProjectProperties uiProperties, CustomizerProviderImpl.SubCategoryProvider subcat) {
53         this.uiProperties = uiProperties;
54         initComponents();
55         
56         this.putClientProperty( "HelpID", "J2SE_CustomizerGeneral" ); // NOI18N
57

58         
59         // Hide unused edit buttons
60
jButtonEditC.setVisible( false );
61         jButtonEditCT.setVisible( false );
62         jButtonEditR.setVisible( false );
63         jButtonEditRT.setVisible( false );
64         
65         jTableCpC.setModel( uiProperties.JAVAC_CLASSPATH_MODEL );
66         initTableVisualProperties(jTableCpC);
67         uiProperties.CLASS_PATH_TABLE_ITEM_RENDERER.setBooleanRenderer(jTableCpC.getDefaultRenderer(Boolean JavaDoc.class));
68         jTableCpC.setDefaultRenderer( ClassPathSupport.Item.class, uiProperties.CLASS_PATH_TABLE_ITEM_RENDERER );
69         jTableCpC.setDefaultRenderer( Boolean JavaDoc.class, uiProperties.CLASS_PATH_TABLE_ITEM_RENDERER );
70         
71         AppClientClassPathUi.EditMediator.register( uiProperties.getProject(),
72                                                AppClientClassPathUi.EditMediator.createListComponent(jTableCpC, uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel()),
73                                                jButtonAddJarC.getModel(),
74                                                jButtonAddLibraryC.getModel(),
75                                                jButtonAddArtifactC.getModel(),
76                                                jButtonRemoveC.getModel(),
77                                                jButtonMoveUpC.getModel(),
78                                                jButtonMoveDownC.getModel(),
79                                                true);
80         
81         jListCpCT.setModel( uiProperties.JAVAC_TEST_CLASSPATH_MODEL);
82         jListCpCT.setCellRenderer( uiProperties.CLASS_PATH_LIST_RENDERER );
83         AppClientClassPathUi.EditMediator.register( uiProperties.getProject(),
84                                                AppClientClassPathUi.EditMediator.createListComponent(jListCpCT),
85                                                jButtonAddJarCT.getModel(),
86                                                jButtonAddLibraryCT.getModel(),
87                                                jButtonAddArtifactCT.getModel(),
88                                                jButtonRemoveCT.getModel(),
89                                                jButtonMoveUpCT.getModel(),
90                                                jButtonMoveDownCT.getModel(),
91                                                false);
92         
93         jListCpR.setModel( uiProperties.RUN_CLASSPATH_MODEL );
94         jListCpR.setCellRenderer( uiProperties.CLASS_PATH_LIST_RENDERER );
95         AppClientClassPathUi.EditMediator.register( uiProperties.getProject(),
96                                                AppClientClassPathUi.EditMediator.createListComponent(jListCpR),
97                                                jButtonAddJarR.getModel(),
98                                                jButtonAddLibraryR.getModel(),
99                                                jButtonAddArtifactR.getModel(),
100                                                jButtonRemoveR.getModel(),
101                                                jButtonMoveUpR.getModel(),
102                                                jButtonMoveDownR.getModel(),
103                                                false);
104         
105         jListCpRT.setModel( uiProperties.RUN_TEST_CLASSPATH_MODEL );
106         jListCpRT.setCellRenderer( uiProperties.CLASS_PATH_LIST_RENDERER );
107         AppClientClassPathUi.EditMediator.register( uiProperties.getProject(),
108                                                AppClientClassPathUi.EditMediator.createListComponent(jListCpRT),
109                                                jButtonAddJarRT.getModel(),
110                                                jButtonAddLibraryRT.getModel(),
111                                                jButtonAddArtifactRT.getModel(),
112                                                jButtonRemoveRT.getModel(),
113                                                jButtonMoveUpRT.getModel(),
114                                                jButtonMoveDownRT.getModel(),
115                                                false);
116                 
117         uiProperties.NO_DEPENDENCIES_MODEL.setMnemonic( jCheckBoxBuildSubprojects.getMnemonic() );
118         jCheckBoxBuildSubprojects.setModel( uiProperties.NO_DEPENDENCIES_MODEL );
119         jComboBoxTarget.setModel(uiProperties.PLATFORM_MODEL);
120         jComboBoxTarget.setRenderer(uiProperties.PLATFORM_LIST_RENDERER);
121         jComboBoxTarget.putClientProperty ("JComboBox.isTableCellEditor", Boolean.TRUE); //NOI18N
122
jComboBoxTarget.addItemListener(new java.awt.event.ItemListener JavaDoc(){
123             public void itemStateChanged(java.awt.event.ItemEvent JavaDoc e){
124                 javax.swing.JComboBox JavaDoc combo = (javax.swing.JComboBox JavaDoc)e.getSource();
125                 combo.setPopupVisible(false);
126             }
127         });
128         testBroken();
129         if (AppClientCompositePanelProvider.LIBRARIES.equals(subcat.getCategory())) {
130             showSubCategory(subcat.getSubcategory());
131         }
132         
133         uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel().addListDataListener( this );
134         uiProperties.JAVAC_TEST_CLASSPATH_MODEL.addListDataListener( this );
135         uiProperties.RUN_CLASSPATH_MODEL.addListDataListener( this );
136         uiProperties.RUN_TEST_CLASSPATH_MODEL.addListDataListener( this );
137     }
138         
139     private void testBroken() {
140         
141         DefaultListModel JavaDoc[] models = new DefaultListModel JavaDoc[] {
142             uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel(),
143             uiProperties.JAVAC_TEST_CLASSPATH_MODEL,
144             uiProperties.RUN_CLASSPATH_MODEL,
145             uiProperties.RUN_TEST_CLASSPATH_MODEL,
146         };
147         
148         boolean broken = false;
149         
150         for( int i = 0; i < models.length; i++ ) {
151             for( Iterator JavaDoc it = ClassPathUiSupport.getIterator( models[i] ); it.hasNext(); ) {
152                 if ( ((ClassPathSupport.Item)it.next()).isBroken() ) {
153                     broken = true;
154                     break;
155                 }
156             }
157             if ( broken ) {
158                 break;
159             }
160         }
161         
162         if ( broken ) {
163             jLabelErrorMessage.setText( NbBundle.getMessage( CustomizerLibraries.class, "LBL_CustomizeLibraries_Libraries_Error" ) ); // NOI18N
164
}
165         else {
166             jLabelErrorMessage.setText( " " ); // NOI18N
167
}
168         AppClientLogicalViewProvider viewProvider = (AppClientLogicalViewProvider) uiProperties.getProject().getLookup().lookup(AppClientLogicalViewProvider.class);
169         //Update the state of project's node if needed
170
viewProvider.testBroken();
171     }
172     
173     // Implementation of HelpCtx.Provider --------------------------------------
174

175     public HelpCtx getHelpCtx() {
176         return new HelpCtx( CustomizerLibraries.class );
177     }
178
179     
180     // Implementation of ListDataListener --------------------------------------
181

182     
183     public void intervalRemoved( ListDataEvent JavaDoc e ) {
184         testBroken();
185     }
186
187     public void intervalAdded( ListDataEvent JavaDoc e ) {
188         // NOP
189
}
190
191     public void contentsChanged( ListDataEvent JavaDoc e ) {
192         // NOP
193
}
194     
195     
196     private void showSubCategory (String JavaDoc name) {
197         if (name.equals(COMPILE)) {
198             jTabbedPane1.setSelectedIndex (0);
199         }
200         else if (name.equals(COMPILE_TESTS)) {
201             jTabbedPane1.setSelectedIndex (2);
202         }
203         else if (name.equals(RUN)) {
204             jTabbedPane1.setSelectedIndex (1);
205         }
206         else if (name.equals(RUN_TESTS)) {
207             jTabbedPane1.setSelectedIndex (3);
208         }
209     }
210     
211     
212     /** This method is called from within the constructor to
213      * initialize the form.
214      * WARNING: Do NOT modify this code. The content of this method is
215      * always regenerated by the Form Editor.
216      */

217     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
218
private void initComponents() {
219         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
220
221         jLabelTarget = new javax.swing.JLabel JavaDoc();
222         jComboBoxTarget = new javax.swing.JComboBox JavaDoc();
223         jButton1 = new javax.swing.JButton JavaDoc();
224         jTabbedPane1 = new javax.swing.JTabbedPane JavaDoc();
225         jPanelCompile = new javax.swing.JPanel JavaDoc();
226         librariesJLabel1 = new javax.swing.JLabel JavaDoc();
227         librariesJScrollPane = new javax.swing.JScrollPane JavaDoc();
228         jTableCpC = new javax.swing.JTable JavaDoc();
229         jButtonAddArtifactC = new javax.swing.JButton JavaDoc();
230         jButtonAddLibraryC = new javax.swing.JButton JavaDoc();
231         jButtonAddJarC = new javax.swing.JButton JavaDoc();
232         jButtonEditC = new javax.swing.JButton JavaDoc();
233         jButtonRemoveC = new javax.swing.JButton JavaDoc();
234         jButtonMoveUpC = new javax.swing.JButton JavaDoc();
235         jButtonMoveDownC = new javax.swing.JButton JavaDoc();
236         jLabel1 = new javax.swing.JLabel JavaDoc();
237         jPanelRun = new javax.swing.JPanel JavaDoc();
238         librariesJLabel3 = new javax.swing.JLabel JavaDoc();
239         librariesJScrollPane2 = new javax.swing.JScrollPane JavaDoc();
240         jListCpR = new javax.swing.JList JavaDoc();
241         jButtonAddArtifactR = new javax.swing.JButton JavaDoc();
242         jButtonAddLibraryR = new javax.swing.JButton JavaDoc();
243         jButtonAddJarR = new javax.swing.JButton JavaDoc();
244         jButtonEditR = new javax.swing.JButton JavaDoc();
245         jButtonRemoveR = new javax.swing.JButton JavaDoc();
246         jButtonMoveUpR = new javax.swing.JButton JavaDoc();
247         jButtonMoveDownR = new javax.swing.JButton JavaDoc();
248         jPanelCompileTests = new javax.swing.JPanel JavaDoc();
249         librariesJLabel2 = new javax.swing.JLabel JavaDoc();
250         librariesJScrollPane1 = new javax.swing.JScrollPane JavaDoc();
251         jListCpCT = new javax.swing.JList JavaDoc();
252         jButtonAddArtifactCT = new javax.swing.JButton JavaDoc();
253         jButtonAddLibraryCT = new javax.swing.JButton JavaDoc();
254         jButtonAddJarCT = new javax.swing.JButton JavaDoc();
255         jButtonEditCT = new javax.swing.JButton JavaDoc();
256         jButtonRemoveCT = new javax.swing.JButton JavaDoc();
257         jButtonMoveUpCT = new javax.swing.JButton JavaDoc();
258         jButtonMoveDownCT = new javax.swing.JButton JavaDoc();
259         jPanelRunTests = new javax.swing.JPanel JavaDoc();
260         librariesJLabel4 = new javax.swing.JLabel JavaDoc();
261         librariesJScrollPane3 = new javax.swing.JScrollPane JavaDoc();
262         jListCpRT = new javax.swing.JList JavaDoc();
263         jButtonAddArtifactRT = new javax.swing.JButton JavaDoc();
264         jButtonAddLibraryRT = new javax.swing.JButton JavaDoc();
265         jButtonAddJarRT = new javax.swing.JButton JavaDoc();
266         jButtonEditRT = new javax.swing.JButton JavaDoc();
267         jButtonRemoveRT = new javax.swing.JButton JavaDoc();
268         jButtonMoveUpRT = new javax.swing.JButton JavaDoc();
269         jButtonMoveDownRT = new javax.swing.JButton JavaDoc();
270         jCheckBoxBuildSubprojects = new javax.swing.JCheckBox JavaDoc();
271         jLabelErrorMessage = new javax.swing.JLabel JavaDoc();
272
273         setLayout(new java.awt.GridBagLayout JavaDoc());
274
275         jLabelTarget.setLabelFor(jComboBoxTarget);
276         org.openide.awt.Mnemonics.setLocalizedText(jLabelTarget, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeGeneral_Platform_JLabel"));
277         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
278         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
279         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 12);
280         add(jLabelTarget, gridBagConstraints);
281         jLabelTarget.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerGeneral_jLabelTarget"));
282
283         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
284         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
285         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
286         gridBagConstraints.weightx = 1.0;
287         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
288         add(jComboBoxTarget, gridBagConstraints);
289
290         org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeGeneral_Platform_JButton"));
291         jButton1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
292             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
293                 createNewPlatform(evt);
294             }
295         });
296
297         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
298         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
299         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
300         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 12, 0);
301         add(jButton1, gridBagConstraints);
302         jButton1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerGeneral_jButton1"));
303
304         jPanelCompile.setLayout(new java.awt.GridBagLayout JavaDoc());
305
306         jPanelCompile.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
307         org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel1, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesC_JLabel"));
308         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
309         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
310         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
311         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 6, 0);
312         jPanelCompile.add(librariesJLabel1, gridBagConstraints);
313
314         jTableCpC.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
315             new Object JavaDoc [][] {
316                 {null, null, null, null},
317                 {null, null, null, null},
318                 {null, null, null, null},
319                 {null, null, null, null}
320             },
321             new String JavaDoc [] {
322                 "Title 1", "Title 2", "Title 3", "Title 4"
323             }
324         ));
325         librariesJScrollPane.setViewportView(jTableCpC);
326
327         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
328         gridBagConstraints.gridheight = 7;
329         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
330         gridBagConstraints.weightx = 1.0;
331         gridBagConstraints.weighty = 1.0;
332         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 12);
333         jPanelCompile.add(librariesJScrollPane, gridBagConstraints);
334
335         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton"));
336         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
337         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
338         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
339         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
340         jPanelCompile.add(jButtonAddArtifactC, gridBagConstraints);
341         jButtonAddArtifactC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact"));
342
343         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton"));
344         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
345         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
346         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
347         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
348         jPanelCompile.add(jButtonAddLibraryC, gridBagConstraints);
349         jButtonAddLibraryC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary"));
350
351         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton"));
352         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
353         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
354         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
355         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
356         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
357         jPanelCompile.add(jButtonAddJarC, gridBagConstraints);
358         jButtonAddJarC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar"));
359
360         org.openide.awt.Mnemonics.setLocalizedText(jButtonEditC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton"));
361         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
362         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
363         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
364         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
365         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
366         jPanelCompile.add(jButtonEditC, gridBagConstraints);
367
368         org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton"));
369         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
370         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
371         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
372         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
373         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
374         jPanelCompile.add(jButtonRemoveC, gridBagConstraints);
375         jButtonRemoveC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove"));
376
377         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton"));
378         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
379         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
380         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
381         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
382         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
383         jPanelCompile.add(jButtonMoveUpC, gridBagConstraints);
384         jButtonMoveUpC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp"));
385
386         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton"));
387         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
388         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
389         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
390         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
391         gridBagConstraints.weighty = 1.0;
392         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
393         jPanelCompile.add(jButtonMoveDownC, gridBagConstraints);
394         jButtonMoveDownC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown"));
395
396         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "MSG_CustomizerLibraries_CompileCpMessage"));
397         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
398         gridBagConstraints.gridy = 8;
399         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
400         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
401         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
402         gridBagConstraints.weightx = 1.0;
403         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 0, 0, 0);
404         jPanelCompile.add(jLabel1, gridBagConstraints);
405
406         jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesTab"), jPanelCompile);
407
408         jPanelRun.setLayout(new java.awt.GridBagLayout JavaDoc());
409
410         jPanelRun.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
411         librariesJLabel3.setLabelFor(jListCpR);
412         org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel3, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesR_JLabel"));
413         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
414         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
415         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
416         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 6, 0);
417         jPanelRun.add(librariesJLabel3, gridBagConstraints);
418
419         librariesJScrollPane2.setViewportView(jListCpR);
420         jListCpR.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AN_CustomizerLibraries_jListClasspathR"));
421         jListCpR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jLabelClasspathR"));
422
423         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
424         gridBagConstraints.gridheight = 7;
425         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
426         gridBagConstraints.weightx = 1.0;
427         gridBagConstraints.weighty = 1.0;
428         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 12);
429         jPanelRun.add(librariesJScrollPane2, gridBagConstraints);
430
431         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton"));
432         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
433         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
434         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
435         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
436         jPanelRun.add(jButtonAddArtifactR, gridBagConstraints);
437         jButtonAddArtifactR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact"));
438
439         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton"));
440         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
441         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
442         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
443         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
444         jPanelRun.add(jButtonAddLibraryR, gridBagConstraints);
445         jButtonAddLibraryR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary"));
446
447         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton"));
448         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
449         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
450         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
451         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
452         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
453         jPanelRun.add(jButtonAddJarR, gridBagConstraints);
454         jButtonAddJarR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar"));
455
456         org.openide.awt.Mnemonics.setLocalizedText(jButtonEditR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton"));
457         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
458         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
459         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
460         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
461         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
462         jPanelRun.add(jButtonEditR, gridBagConstraints);
463
464         org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton"));
465         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
466         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
467         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
468         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
469         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
470         jPanelRun.add(jButtonRemoveR, gridBagConstraints);
471         jButtonRemoveR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove"));
472
473         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton"));
474         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
475         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
476         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
477         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
478         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
479         jPanelRun.add(jButtonMoveUpR, gridBagConstraints);
480         jButtonMoveUpR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp"));
481
482         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton"));
483         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
484         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
485         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
486         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
487         gridBagConstraints.weighty = 1.0;
488         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
489         jPanelRun.add(jButtonMoveDownR, gridBagConstraints);
490         jButtonMoveDownR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown"));
491
492         jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Run_Tab"), jPanelRun);
493
494         jPanelCompileTests.setLayout(new java.awt.GridBagLayout JavaDoc());
495
496         jPanelCompileTests.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
497         librariesJLabel2.setLabelFor(jListCpCT);
498         org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel2, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesCT_JLabel"));
499         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
500         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
501         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
502         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 6, 0);
503         jPanelCompileTests.add(librariesJLabel2, gridBagConstraints);
504
505         librariesJScrollPane1.setViewportView(jListCpCT);
506         jListCpCT.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AN_CustomizerLibraries_jListClasspathCT"));
507         jListCpCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jLabelClasspathCT"));
508
509         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
510         gridBagConstraints.gridheight = 7;
511         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
512         gridBagConstraints.weightx = 1.0;
513         gridBagConstraints.weighty = 1.0;
514         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 12);
515         jPanelCompileTests.add(librariesJScrollPane1, gridBagConstraints);
516
517         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton"));
518         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
519         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
520         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
521         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
522         jPanelCompileTests.add(jButtonAddArtifactCT, gridBagConstraints);
523         jButtonAddArtifactCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact"));
524
525         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton"));
526         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
527         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
528         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
529         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
530         jPanelCompileTests.add(jButtonAddLibraryCT, gridBagConstraints);
531         jButtonAddLibraryCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary"));
532
533         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton"));
534         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
535         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
536         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
537         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
538         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
539         jPanelCompileTests.add(jButtonAddJarCT, gridBagConstraints);
540         jButtonAddJarCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar"));
541
542         org.openide.awt.Mnemonics.setLocalizedText(jButtonEditCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton"));
543         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
544         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
545         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
546         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
547         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
548         jPanelCompileTests.add(jButtonEditCT, gridBagConstraints);
549
550         org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton"));
551         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
552         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
553         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
554         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
555         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
556         jPanelCompileTests.add(jButtonRemoveCT, gridBagConstraints);
557         jButtonRemoveCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove"));
558
559         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton"));
560         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
561         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
562         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
563         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
564         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
565         jPanelCompileTests.add(jButtonMoveUpCT, gridBagConstraints);
566         jButtonMoveUpCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp"));
567
568         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton"));
569         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
570         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
571         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
572         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
573         gridBagConstraints.weighty = 1.0;
574         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
575         jPanelCompileTests.add(jButtonMoveDownCT, gridBagConstraints);
576         jButtonMoveDownCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown"));
577
578         jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_TestLibrariesTab"), jPanelCompileTests);
579
580         jPanelRunTests.setLayout(new java.awt.GridBagLayout JavaDoc());
581
582         jPanelRunTests.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
583         librariesJLabel4.setLabelFor(jListCpRT);
584         org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel4, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesRT_JLabel"));
585         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
586         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
587         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
588         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 6, 0);
589         jPanelRunTests.add(librariesJLabel4, gridBagConstraints);
590
591         librariesJScrollPane3.setViewportView(jListCpRT);
592         jListCpRT.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AN_CustomizerLibraries_jListClasspathRT"));
593         jListCpRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jLabelClasspathRT"));
594
595         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
596         gridBagConstraints.gridheight = 7;
597         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
598         gridBagConstraints.weightx = 1.0;
599         gridBagConstraints.weighty = 1.0;
600         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 12);
601         jPanelRunTests.add(librariesJScrollPane3, gridBagConstraints);
602
603         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton"));
604         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
605         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
606         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
607         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
608         jPanelRunTests.add(jButtonAddArtifactRT, gridBagConstraints);
609         jButtonAddArtifactRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact"));
610
611         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton"));
612         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
613         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
614         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
615         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
616         jPanelRunTests.add(jButtonAddLibraryRT, gridBagConstraints);
617         jButtonAddLibraryRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary"));
618
619         org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton"));
620         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
621         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
622         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
623         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
624         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
625         jPanelRunTests.add(jButtonAddJarRT, gridBagConstraints);
626         jButtonAddJarRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar"));
627
628         org.openide.awt.Mnemonics.setLocalizedText(jButtonEditRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton"));
629         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
630         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
631         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
632         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
633         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
634         jPanelRunTests.add(jButtonEditRT, gridBagConstraints);
635
636         org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton"));
637         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
638         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
639         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
640         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
641         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
642         jPanelRunTests.add(jButtonRemoveRT, gridBagConstraints);
643         jButtonRemoveRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove"));
644
645         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton"));
646         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
647         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
648         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
649         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
650         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
651         jPanelRunTests.add(jButtonMoveUpRT, gridBagConstraints);
652         jButtonMoveUpRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp"));
653
654         org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton"));
655         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
656         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
657         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
658         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
659         gridBagConstraints.weighty = 1.0;
660         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
661         jPanelRunTests.add(jButtonMoveDownRT, gridBagConstraints);
662         jButtonMoveDownRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown"));
663
664         jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_RunTests_Tab"), jPanelRunTests);
665
666         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
667         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
668         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
669         gridBagConstraints.weighty = 1.0;
670         add(jTabbedPane1, gridBagConstraints);
671         jTabbedPane1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSN_CustomizerLibraries_JTabbedPane"));
672         jTabbedPane1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_JTabbedPane"));
673
674         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxBuildSubprojects, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Build_Subprojects"));
675         jCheckBoxBuildSubprojects.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
676         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
677         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
678         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
679         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
680         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 0, 0, 0);
681         add(jCheckBoxBuildSubprojects, gridBagConstraints);
682         jCheckBoxBuildSubprojects.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AD_CheckBoxBuildSubprojects"));
683
684         org.openide.awt.Mnemonics.setLocalizedText(jLabelErrorMessage, " ");
685         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
686         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
687         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
688         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
689         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
690         gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 0, 0, 0);
691         add(jLabelErrorMessage, gridBagConstraints);
692
693     }// </editor-fold>//GEN-END:initComponents
694

695     private void createNewPlatform(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_createNewPlatform
696
Object JavaDoc selectedItem = this.jComboBoxTarget.getSelectedItem();
697         JavaPlatform jp = (selectedItem == null ? null : PlatformUiSupport.getPlatform(selectedItem));
698         PlatformsCustomizer.showCustomizer(jp);
699     }//GEN-LAST:event_createNewPlatform
700

701     
702     // Variables declaration - do not modify//GEN-BEGIN:variables
703
private javax.swing.JButton JavaDoc jButton1;
704     private javax.swing.JButton JavaDoc jButtonAddArtifactC;
705     private javax.swing.JButton JavaDoc jButtonAddArtifactCT;
706     private javax.swing.JButton JavaDoc jButtonAddArtifactR;
707     private javax.swing.JButton JavaDoc jButtonAddArtifactRT;
708     private javax.swing.JButton JavaDoc jButtonAddJarC;
709     private javax.swing.JButton JavaDoc jButtonAddJarCT;
710     private javax.swing.JButton JavaDoc jButtonAddJarR;
711     private javax.swing.JButton JavaDoc jButtonAddJarRT;
712     private javax.swing.JButton JavaDoc jButtonAddLibraryC;
713     private javax.swing.JButton JavaDoc jButtonAddLibraryCT;
714     private javax.swing.JButton JavaDoc jButtonAddLibraryR;
715     private javax.swing.JButton JavaDoc jButtonAddLibraryRT;
716     private javax.swing.JButton JavaDoc jButtonEditC;
717     private javax.swing.JButton JavaDoc jButtonEditCT;
718     private javax.swing.JButton JavaDoc jButtonEditR;
719     private javax.swing.JButton JavaDoc jButtonEditRT;
720     private javax.swing.JButton JavaDoc jButtonMoveDownC;
721     private javax.swing.JButton JavaDoc jButtonMoveDownCT;
722     private javax.swing.JButton JavaDoc jButtonMoveDownR;
723     private javax.swing.JButton JavaDoc jButtonMoveDownRT;
724     private javax.swing.JButton JavaDoc jButtonMoveUpC;
725     private javax.swing.JButton JavaDoc jButtonMoveUpCT;
726     private javax.swing.JButton JavaDoc jButtonMoveUpR;
727     private javax.swing.JButton JavaDoc jButtonMoveUpRT;
728     private javax.swing.JButton JavaDoc jButtonRemoveC;
729     private javax.swing.JButton JavaDoc jButtonRemoveCT;
730     private javax.swing.JButton JavaDoc jButtonRemoveR;
731     private javax.swing.JButton JavaDoc jButtonRemoveRT;
732     private javax.swing.JCheckBox JavaDoc jCheckBoxBuildSubprojects;
733     private javax.swing.JComboBox JavaDoc jComboBoxTarget;
734     private javax.swing.JLabel JavaDoc jLabel1;
735     private javax.swing.JLabel JavaDoc jLabelErrorMessage;
736     private javax.swing.JLabel JavaDoc jLabelTarget;
737     private javax.swing.JList JavaDoc jListCpCT;
738     private javax.swing.JList JavaDoc jListCpR;
739     private javax.swing.JList JavaDoc jListCpRT;
740     private javax.swing.JPanel JavaDoc jPanelCompile;
741     private javax.swing.JPanel JavaDoc jPanelCompileTests;
742     private javax.swing.JPanel JavaDoc jPanelRun;
743     private javax.swing.JPanel JavaDoc jPanelRunTests;
744     private javax.swing.JTabbedPane JavaDoc jTabbedPane1;
745     private javax.swing.JTable JavaDoc jTableCpC;
746     private javax.swing.JLabel JavaDoc librariesJLabel1;
747     private javax.swing.JLabel JavaDoc librariesJLabel2;
748     private javax.swing.JLabel JavaDoc librariesJLabel3;
749     private javax.swing.JLabel JavaDoc librariesJLabel4;
750     private javax.swing.JScrollPane JavaDoc librariesJScrollPane;
751     private javax.swing.JScrollPane JavaDoc librariesJScrollPane1;
752     private javax.swing.JScrollPane JavaDoc librariesJScrollPane2;
753     private javax.swing.JScrollPane JavaDoc librariesJScrollPane3;
754     // End of variables declaration//GEN-END:variables
755

756     private void initTableVisualProperties(JTable JavaDoc table) {
757         //table.setGridColor(jTableCpC.getBackground());
758
table.setRowHeight(jTableCpC.getRowHeight() + 4);
759         table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
760         table.setIntercellSpacing(new java.awt.Dimension JavaDoc(0, 0));
761         // set the color of the table's JViewport
762
table.getParent().setBackground(table.getBackground());
763         table.setShowHorizontalLines(false);
764         table.setShowVerticalLines(false);
765         
766         TableColumn JavaDoc column = table.getColumnModel().getColumn(1);
767         JTableHeader JavaDoc header = table.getTableHeader();
768         column.setMaxWidth(24 + SwingUtilities.computeStringWidth(header.getFontMetrics(header.getFont()), String.valueOf(column.getHeaderValue())));
769         header.setReorderingAllowed(false);
770     }
771 }
772
Popular Tags