1 19 20 package org.netbeans.modules.java.j2seproject.ui.customizer; 21 22 import java.util.ArrayList ; 23 import java.util.Iterator ; 24 import java.util.List ; 25 import javax.swing.DefaultListModel ; 26 import javax.swing.JComponent ; 27 import javax.swing.JPanel ; 28 import javax.swing.event.ListDataEvent ; 29 import javax.swing.event.ListDataListener ; 30 import javax.swing.table.DefaultTableModel ; 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 45 public class CustomizerLibraries extends JPanel implements HelpCtx.Provider, ListDataListener { 46 47 public static final String COMPILE = "COMPILE"; public static final String RUN = "RUN"; public static final String COMPILE_TESTS = "COMPILE_TESTS"; public final String RUN_TESTS = "RUN_TESTS"; 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" ); 60 61 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); jComboBoxTarget.addItemListener(new java.awt.event.ItemListener (){ 121 public void itemStateChanged(java.awt.event.ItemEvent e){ 122 javax.swing.JComboBox combo = (javax.swing.JComboBox )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 [] models = new DefaultListModel [] { 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 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" ) ); } 163 else { 164 jLabelErrorMessage.setText( " " ); } 166 J2SELogicalViewProvider viewProvider = (J2SELogicalViewProvider) uiProperties.getProject().getLookup().lookup(J2SELogicalViewProvider.class); 167 viewProvider.testBroken(); 169 } 170 171 173 public HelpCtx getHelpCtx() { 174 return new HelpCtx( CustomizerLibraries.class ); 175 } 176 177 178 180 181 public void intervalRemoved( ListDataEvent e ) { 182 testBroken(); 183 } 184 185 public void intervalAdded( ListDataEvent e ) { 186 } 188 189 public void contentsChanged( ListDataEvent e ) { 190 } 192 193 194 private void showSubCategory (String 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 215 private void initComponents() { 217 java.awt.GridBagConstraints gridBagConstraints; 218 219 jLabelTarget = new javax.swing.JLabel (); 220 jComboBoxTarget = new javax.swing.JComboBox (); 221 jButton1 = new javax.swing.JButton (); 222 jTabbedPane1 = new javax.swing.JTabbedPane (); 223 jPanelCompile = new javax.swing.JPanel (); 224 librariesJLabel1 = new javax.swing.JLabel (); 225 librariesJScrollPane = new javax.swing.JScrollPane (); 226 jListCpC = new javax.swing.JList (); 227 jButtonAddArtifactC = new javax.swing.JButton (); 228 jButtonAddLibraryC = new javax.swing.JButton (); 229 jButtonAddJarC = new javax.swing.JButton (); 230 jButtonEditC = new javax.swing.JButton (); 231 jButtonRemoveC = new javax.swing.JButton (); 232 jButtonMoveUpC = new javax.swing.JButton (); 233 jButtonMoveDownC = new javax.swing.JButton (); 234 jLabel1 = new javax.swing.JLabel (); 235 jPanelRun = new javax.swing.JPanel (); 236 librariesJLabel3 = new javax.swing.JLabel (); 237 librariesJScrollPane2 = new javax.swing.JScrollPane (); 238 jListCpR = new javax.swing.JList (); 239 jButtonAddArtifactR = new javax.swing.JButton (); 240 jButtonAddLibraryR = new javax.swing.JButton (); 241 jButtonAddJarR = new javax.swing.JButton (); 242 jButtonEditR = new javax.swing.JButton (); 243 jButtonRemoveR = new javax.swing.JButton (); 244 jButtonMoveUpR = new javax.swing.JButton (); 245 jButtonMoveDownR = new javax.swing.JButton (); 246 jPanelCompileTests = new javax.swing.JPanel (); 247 librariesJLabel2 = new javax.swing.JLabel (); 248 librariesJScrollPane1 = new javax.swing.JScrollPane (); 249 jListCpCT = new javax.swing.JList (); 250 jButtonAddArtifactCT = new javax.swing.JButton (); 251 jButtonAddLibraryCT = new javax.swing.JButton (); 252 jButtonAddJarCT = new javax.swing.JButton (); 253 jButtonEditCT = new javax.swing.JButton (); 254 jButtonRemoveCT = new javax.swing.JButton (); 255 jButtonMoveUpCT = new javax.swing.JButton (); 256 jButtonMoveDownCT = new javax.swing.JButton (); 257 jPanelRunTests = new javax.swing.JPanel (); 258 librariesJLabel4 = new javax.swing.JLabel (); 259 librariesJScrollPane3 = new javax.swing.JScrollPane (); 260 jListCpRT = new javax.swing.JList (); 261 jButtonAddArtifactRT = new javax.swing.JButton (); 262 jButtonAddLibraryRT = new javax.swing.JButton (); 263 jButtonAddJarRT = new javax.swing.JButton (); 264 jButtonEditRT = new javax.swing.JButton (); 265 jButtonRemoveRT = new javax.swing.JButton (); 266 jButtonMoveUpRT = new javax.swing.JButton (); 267 jButtonMoveDownRT = new javax.swing.JButton (); 268 jCheckBoxBuildSubprojects = new javax.swing.JCheckBox (); 269 jLabelErrorMessage = new javax.swing.JLabel (); 270 271 setLayout(new java.awt.GridBagLayout ()); 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 (); 276 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 277 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 () { 291 public void actionPerformed(java.awt.event.ActionEvent evt) { 292 createNewPlatform(evt); 293 } 294 }); 295 296 gridBagConstraints = new java.awt.GridBagConstraints (); 297 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 298 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 299 gridBagConstraints.insets = new java.awt.Insets (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 ()); 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 (); 309 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 310 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 311 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 328 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 329 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 330 gridBagConstraints.insets = new java.awt.Insets (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 (); 336 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 337 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 338 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 ()); 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 (); 406 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 407 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 408 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 425 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 426 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 427 gridBagConstraints.insets = new java.awt.Insets (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 (); 433 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 434 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 435 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 ()); 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 (); 492 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 493 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 494 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 511 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 512 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 513 gridBagConstraints.insets = new java.awt.Insets (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 (); 519 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 520 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 521 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 ()); 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 (); 578 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 579 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 580 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 597 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 598 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 599 gridBagConstraints.insets = new java.awt.Insets (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 (); 605 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 606 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 607 gridBagConstraints.insets = new java.awt.Insets (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (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 (); 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 (0, 0, 0, 0)); 668 gridBagConstraints = new java.awt.GridBagConstraints (); 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 (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 (); 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 (12, 0, 0, 0); 683 add(jLabelErrorMessage, gridBagConstraints); 684 685 } 687 private void createNewPlatform(java.awt.event.ActionEvent evt) { Object selectedItem = this.jComboBoxTarget.getSelectedItem(); 689 JavaPlatform jp = (selectedItem == null ? null : PlatformUiSupport.getPlatform(selectedItem)); 690 PlatformsCustomizer.showCustomizer(jp); 691 } 693 694 private javax.swing.JButton jButton1; 696 private javax.swing.JButton jButtonAddArtifactC; 697 private javax.swing.JButton jButtonAddArtifactCT; 698 private javax.swing.JButton jButtonAddArtifactR; 699 private javax.swing.JButton jButtonAddArtifactRT; 700 private javax.swing.JButton jButtonAddJarC; 701 private javax.swing.JButton jButtonAddJarCT; 702 private javax.swing.JButton jButtonAddJarR; 703 private javax.swing.JButton jButtonAddJarRT; 704 private javax.swing.JButton jButtonAddLibraryC; 705 private javax.swing.JButton jButtonAddLibraryCT; 706 private javax.swing.JButton jButtonAddLibraryR; 707 private javax.swing.JButton jButtonAddLibraryRT; 708 private javax.swing.JButton jButtonEditC; 709 private javax.swing.JButton jButtonEditCT; 710 private javax.swing.JButton jButtonEditR; 711 private javax.swing.JButton jButtonEditRT; 712 private javax.swing.JButton jButtonMoveDownC; 713 private javax.swing.JButton jButtonMoveDownCT; 714 private javax.swing.JButton jButtonMoveDownR; 715 private javax.swing.JButton jButtonMoveDownRT; 716 private javax.swing.JButton jButtonMoveUpC; 717 private javax.swing.JButton jButtonMoveUpCT; 718 private javax.swing.JButton jButtonMoveUpR; 719 private javax.swing.JButton jButtonMoveUpRT; 720 private javax.swing.JButton jButtonRemoveC; 721 private javax.swing.JButton jButtonRemoveCT; 722 private javax.swing.JButton jButtonRemoveR; 723 private javax.swing.JButton jButtonRemoveRT; 724 private javax.swing.JCheckBox jCheckBoxBuildSubprojects; 725 private javax.swing.JComboBox jComboBoxTarget; 726 private javax.swing.JLabel jLabel1; 727 private javax.swing.JLabel jLabelErrorMessage; 728 private javax.swing.JLabel jLabelTarget; 729 private javax.swing.JList jListCpC; 730 private javax.swing.JList jListCpCT; 731 private javax.swing.JList jListCpR; 732 private javax.swing.JList jListCpRT; 733 private javax.swing.JPanel jPanelCompile; 734 private javax.swing.JPanel jPanelCompileTests; 735 private javax.swing.JPanel jPanelRun; 736 private javax.swing.JPanel jPanelRunTests; 737 private javax.swing.JTabbedPane jTabbedPane1; 738 private javax.swing.JLabel librariesJLabel1; 739 private javax.swing.JLabel librariesJLabel2; 740 private javax.swing.JLabel librariesJLabel3; 741 private javax.swing.JLabel librariesJLabel4; 742 private javax.swing.JScrollPane librariesJScrollPane; 743 private javax.swing.JScrollPane librariesJScrollPane1; 744 private javax.swing.JScrollPane librariesJScrollPane2; 745 private javax.swing.JScrollPane librariesJScrollPane3; 746 748 749 } 750 | Popular Tags |