KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > java > j2seproject > 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-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.java.j2seproject.ui.customizer;
21
22 import java.util.ArrayList JavaDoc;
23 import java.util.Iterator JavaDoc;
24 import java.util.List JavaDoc;
25 import javax.swing.DefaultListModel JavaDoc;
26 import javax.swing.JComponent JavaDoc;
27 import javax.swing.JPanel JavaDoc;
28 import javax.swing.event.ListDataEvent JavaDoc;
29 import javax.swing.event.ListDataListener JavaDoc;
30 import javax.swing.table.DefaultTableModel JavaDoc;
31 import org.netbeans.api.java.platform.JavaPlatform;
32 import org.netbeans.api.java.platform.JavaPlatformManager;
33 import org.netbeans.api.java.platform.PlatformsCustomizer;
34 import org.netbeans.api.java.platform.Specification;
35 import org.netbeans.modules.java.j2seproject.J2SEProjectUtil;
36 import org.netbeans.modules.java.j2seproject.classpath.ClassPathSupport;
37 import org.netbeans.modules.java.j2seproject.ui.J2SELogicalViewProvider;
38 import org.openide.util.HelpCtx;
39 import org.openide.util.NbBundle;
40
41 /** Customizer for general project attributes.
42  *
43  * @author phrebejk
44  */

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

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

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

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

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

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

687     private void createNewPlatform(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_createNewPlatform
688
Object JavaDoc selectedItem = this.jComboBoxTarget.getSelectedItem();
689         JavaPlatform jp = (selectedItem == null ? null : PlatformUiSupport.getPlatform(selectedItem));
690         PlatformsCustomizer.showCustomizer(jp);
691     }//GEN-LAST:event_createNewPlatform
692

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

748         
749 }
750
Popular Tags