1 19 20 package org.netbeans.modules.j2ee.clientproject.ui.customizer; 21 22 import java.util.Iterator ; 23 import javax.swing.DefaultListModel ; 24 import javax.swing.JPanel ; 25 import javax.swing.JTable ; 26 import javax.swing.ListSelectionModel ; 27 import javax.swing.SwingUtilities ; 28 import javax.swing.event.ListDataEvent ; 29 import javax.swing.event.ListDataListener ; 30 import javax.swing.table.JTableHeader ; 31 import javax.swing.table.TableColumn ; 32 import org.netbeans.api.java.platform.JavaPlatform; 33 import org.netbeans.api.java.platform.PlatformsCustomizer; 34 import org.netbeans.modules.j2ee.clientproject.classpath.ClassPathSupport; 35 import org.netbeans.modules.j2ee.clientproject.ui.AppClientLogicalViewProvider; 36 import org.openide.util.HelpCtx; 37 import org.openide.util.NbBundle; 38 39 43 public class CustomizerLibraries extends JPanel implements HelpCtx.Provider, ListDataListener { 44 45 public static final String COMPILE = "COMPILE"; public static final String RUN = "RUN"; public static final String COMPILE_TESTS = "COMPILE_TESTS"; public static final String RUN_TESTS = "RUN_TESTS"; 50 private final AppClientProjectProperties uiProperties; 51 52 public CustomizerLibraries( AppClientProjectProperties uiProperties, CustomizerProviderImpl.SubCategoryProvider subcat) { 53 this.uiProperties = uiProperties; 54 initComponents(); 55 56 this.putClientProperty( "HelpID", "J2SE_CustomizerGeneral" ); 58 59 jButtonEditC.setVisible( false ); 61 jButtonEditCT.setVisible( false ); 62 jButtonEditR.setVisible( false ); 63 jButtonEditRT.setVisible( false ); 64 65 jTableCpC.setModel( uiProperties.JAVAC_CLASSPATH_MODEL ); 66 initTableVisualProperties(jTableCpC); 67 uiProperties.CLASS_PATH_TABLE_ITEM_RENDERER.setBooleanRenderer(jTableCpC.getDefaultRenderer(Boolean .class)); 68 jTableCpC.setDefaultRenderer( ClassPathSupport.Item.class, uiProperties.CLASS_PATH_TABLE_ITEM_RENDERER ); 69 jTableCpC.setDefaultRenderer( Boolean .class, uiProperties.CLASS_PATH_TABLE_ITEM_RENDERER ); 70 71 AppClientClassPathUi.EditMediator.register( uiProperties.getProject(), 72 AppClientClassPathUi.EditMediator.createListComponent(jTableCpC, uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel()), 73 jButtonAddJarC.getModel(), 74 jButtonAddLibraryC.getModel(), 75 jButtonAddArtifactC.getModel(), 76 jButtonRemoveC.getModel(), 77 jButtonMoveUpC.getModel(), 78 jButtonMoveDownC.getModel(), 79 true); 80 81 jListCpCT.setModel( uiProperties.JAVAC_TEST_CLASSPATH_MODEL); 82 jListCpCT.setCellRenderer( uiProperties.CLASS_PATH_LIST_RENDERER ); 83 AppClientClassPathUi.EditMediator.register( uiProperties.getProject(), 84 AppClientClassPathUi.EditMediator.createListComponent(jListCpCT), 85 jButtonAddJarCT.getModel(), 86 jButtonAddLibraryCT.getModel(), 87 jButtonAddArtifactCT.getModel(), 88 jButtonRemoveCT.getModel(), 89 jButtonMoveUpCT.getModel(), 90 jButtonMoveDownCT.getModel(), 91 false); 92 93 jListCpR.setModel( uiProperties.RUN_CLASSPATH_MODEL ); 94 jListCpR.setCellRenderer( uiProperties.CLASS_PATH_LIST_RENDERER ); 95 AppClientClassPathUi.EditMediator.register( uiProperties.getProject(), 96 AppClientClassPathUi.EditMediator.createListComponent(jListCpR), 97 jButtonAddJarR.getModel(), 98 jButtonAddLibraryR.getModel(), 99 jButtonAddArtifactR.getModel(), 100 jButtonRemoveR.getModel(), 101 jButtonMoveUpR.getModel(), 102 jButtonMoveDownR.getModel(), 103 false); 104 105 jListCpRT.setModel( uiProperties.RUN_TEST_CLASSPATH_MODEL ); 106 jListCpRT.setCellRenderer( uiProperties.CLASS_PATH_LIST_RENDERER ); 107 AppClientClassPathUi.EditMediator.register( uiProperties.getProject(), 108 AppClientClassPathUi.EditMediator.createListComponent(jListCpRT), 109 jButtonAddJarRT.getModel(), 110 jButtonAddLibraryRT.getModel(), 111 jButtonAddArtifactRT.getModel(), 112 jButtonRemoveRT.getModel(), 113 jButtonMoveUpRT.getModel(), 114 jButtonMoveDownRT.getModel(), 115 false); 116 117 uiProperties.NO_DEPENDENCIES_MODEL.setMnemonic( jCheckBoxBuildSubprojects.getMnemonic() ); 118 jCheckBoxBuildSubprojects.setModel( uiProperties.NO_DEPENDENCIES_MODEL ); 119 jComboBoxTarget.setModel(uiProperties.PLATFORM_MODEL); 120 jComboBoxTarget.setRenderer(uiProperties.PLATFORM_LIST_RENDERER); 121 jComboBoxTarget.putClientProperty ("JComboBox.isTableCellEditor", Boolean.TRUE); jComboBoxTarget.addItemListener(new java.awt.event.ItemListener (){ 123 public void itemStateChanged(java.awt.event.ItemEvent e){ 124 javax.swing.JComboBox combo = (javax.swing.JComboBox )e.getSource(); 125 combo.setPopupVisible(false); 126 } 127 }); 128 testBroken(); 129 if (AppClientCompositePanelProvider.LIBRARIES.equals(subcat.getCategory())) { 130 showSubCategory(subcat.getSubcategory()); 131 } 132 133 uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel().addListDataListener( this ); 134 uiProperties.JAVAC_TEST_CLASSPATH_MODEL.addListDataListener( this ); 135 uiProperties.RUN_CLASSPATH_MODEL.addListDataListener( this ); 136 uiProperties.RUN_TEST_CLASSPATH_MODEL.addListDataListener( this ); 137 } 138 139 private void testBroken() { 140 141 DefaultListModel [] models = new DefaultListModel [] { 142 uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel(), 143 uiProperties.JAVAC_TEST_CLASSPATH_MODEL, 144 uiProperties.RUN_CLASSPATH_MODEL, 145 uiProperties.RUN_TEST_CLASSPATH_MODEL, 146 }; 147 148 boolean broken = false; 149 150 for( int i = 0; i < models.length; i++ ) { 151 for( Iterator it = ClassPathUiSupport.getIterator( models[i] ); it.hasNext(); ) { 152 if ( ((ClassPathSupport.Item)it.next()).isBroken() ) { 153 broken = true; 154 break; 155 } 156 } 157 if ( broken ) { 158 break; 159 } 160 } 161 162 if ( broken ) { 163 jLabelErrorMessage.setText( NbBundle.getMessage( CustomizerLibraries.class, "LBL_CustomizeLibraries_Libraries_Error" ) ); } 165 else { 166 jLabelErrorMessage.setText( " " ); } 168 AppClientLogicalViewProvider viewProvider = (AppClientLogicalViewProvider) uiProperties.getProject().getLookup().lookup(AppClientLogicalViewProvider.class); 169 viewProvider.testBroken(); 171 } 172 173 175 public HelpCtx getHelpCtx() { 176 return new HelpCtx( CustomizerLibraries.class ); 177 } 178 179 180 182 183 public void intervalRemoved( ListDataEvent e ) { 184 testBroken(); 185 } 186 187 public void intervalAdded( ListDataEvent e ) { 188 } 190 191 public void contentsChanged( ListDataEvent e ) { 192 } 194 195 196 private void showSubCategory (String name) { 197 if (name.equals(COMPILE)) { 198 jTabbedPane1.setSelectedIndex (0); 199 } 200 else if (name.equals(COMPILE_TESTS)) { 201 jTabbedPane1.setSelectedIndex (2); 202 } 203 else if (name.equals(RUN)) { 204 jTabbedPane1.setSelectedIndex (1); 205 } 206 else if (name.equals(RUN_TESTS)) { 207 jTabbedPane1.setSelectedIndex (3); 208 } 209 } 210 211 212 217 private void initComponents() { 219 java.awt.GridBagConstraints gridBagConstraints; 220 221 jLabelTarget = new javax.swing.JLabel (); 222 jComboBoxTarget = new javax.swing.JComboBox (); 223 jButton1 = new javax.swing.JButton (); 224 jTabbedPane1 = new javax.swing.JTabbedPane (); 225 jPanelCompile = new javax.swing.JPanel (); 226 librariesJLabel1 = new javax.swing.JLabel (); 227 librariesJScrollPane = new javax.swing.JScrollPane (); 228 jTableCpC = new javax.swing.JTable (); 229 jButtonAddArtifactC = new javax.swing.JButton (); 230 jButtonAddLibraryC = new javax.swing.JButton (); 231 jButtonAddJarC = new javax.swing.JButton (); 232 jButtonEditC = new javax.swing.JButton (); 233 jButtonRemoveC = new javax.swing.JButton (); 234 jButtonMoveUpC = new javax.swing.JButton (); 235 jButtonMoveDownC = new javax.swing.JButton (); 236 jLabel1 = new javax.swing.JLabel (); 237 jPanelRun = new javax.swing.JPanel (); 238 librariesJLabel3 = new javax.swing.JLabel (); 239 librariesJScrollPane2 = new javax.swing.JScrollPane (); 240 jListCpR = new javax.swing.JList (); 241 jButtonAddArtifactR = new javax.swing.JButton (); 242 jButtonAddLibraryR = new javax.swing.JButton (); 243 jButtonAddJarR = new javax.swing.JButton (); 244 jButtonEditR = new javax.swing.JButton (); 245 jButtonRemoveR = new javax.swing.JButton (); 246 jButtonMoveUpR = new javax.swing.JButton (); 247 jButtonMoveDownR = new javax.swing.JButton (); 248 jPanelCompileTests = new javax.swing.JPanel (); 249 librariesJLabel2 = new javax.swing.JLabel (); 250 librariesJScrollPane1 = new javax.swing.JScrollPane (); 251 jListCpCT = new javax.swing.JList (); 252 jButtonAddArtifactCT = new javax.swing.JButton (); 253 jButtonAddLibraryCT = new javax.swing.JButton (); 254 jButtonAddJarCT = new javax.swing.JButton (); 255 jButtonEditCT = new javax.swing.JButton (); 256 jButtonRemoveCT = new javax.swing.JButton (); 257 jButtonMoveUpCT = new javax.swing.JButton (); 258 jButtonMoveDownCT = new javax.swing.JButton (); 259 jPanelRunTests = new javax.swing.JPanel (); 260 librariesJLabel4 = new javax.swing.JLabel (); 261 librariesJScrollPane3 = new javax.swing.JScrollPane (); 262 jListCpRT = new javax.swing.JList (); 263 jButtonAddArtifactRT = new javax.swing.JButton (); 264 jButtonAddLibraryRT = new javax.swing.JButton (); 265 jButtonAddJarRT = new javax.swing.JButton (); 266 jButtonEditRT = new javax.swing.JButton (); 267 jButtonRemoveRT = new javax.swing.JButton (); 268 jButtonMoveUpRT = new javax.swing.JButton (); 269 jButtonMoveDownRT = new javax.swing.JButton (); 270 jCheckBoxBuildSubprojects = new javax.swing.JCheckBox (); 271 jLabelErrorMessage = new javax.swing.JLabel (); 272 273 setLayout(new java.awt.GridBagLayout ()); 274 275 jLabelTarget.setLabelFor(jComboBoxTarget); 276 org.openide.awt.Mnemonics.setLocalizedText(jLabelTarget, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeGeneral_Platform_JLabel")); 277 gridBagConstraints = new java.awt.GridBagConstraints (); 278 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 279 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 12); 280 add(jLabelTarget, gridBagConstraints); 281 jLabelTarget.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerGeneral_jLabelTarget")); 282 283 gridBagConstraints = new java.awt.GridBagConstraints (); 284 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 285 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 286 gridBagConstraints.weightx = 1.0; 287 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 288 add(jComboBoxTarget, gridBagConstraints); 289 290 org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeGeneral_Platform_JButton")); 291 jButton1.addActionListener(new java.awt.event.ActionListener () { 292 public void actionPerformed(java.awt.event.ActionEvent evt) { 293 createNewPlatform(evt); 294 } 295 }); 296 297 gridBagConstraints = new java.awt.GridBagConstraints (); 298 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 299 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 300 gridBagConstraints.insets = new java.awt.Insets (0, 6, 12, 0); 301 add(jButton1, gridBagConstraints); 302 jButton1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerGeneral_jButton1")); 303 304 jPanelCompile.setLayout(new java.awt.GridBagLayout ()); 305 306 jPanelCompile.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8)); 307 org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel1, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesC_JLabel")); 308 gridBagConstraints = new java.awt.GridBagConstraints (); 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 jTableCpC.setModel(new javax.swing.table.DefaultTableModel ( 315 new Object [][] { 316 {null, null, null, null}, 317 {null, null, null, null}, 318 {null, null, null, null}, 319 {null, null, null, null} 320 }, 321 new String [] { 322 "Title 1", "Title 2", "Title 3", "Title 4" 323 } 324 )); 325 librariesJScrollPane.setViewportView(jTableCpC); 326 327 gridBagConstraints = new java.awt.GridBagConstraints (); 328 gridBagConstraints.gridheight = 7; 329 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 330 gridBagConstraints.weightx = 1.0; 331 gridBagConstraints.weighty = 1.0; 332 gridBagConstraints.insets = new java.awt.Insets (0, 0, 0, 12); 333 jPanelCompile.add(librariesJScrollPane, gridBagConstraints); 334 335 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton")); 336 gridBagConstraints = new java.awt.GridBagConstraints (); 337 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 338 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 339 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 340 jPanelCompile.add(jButtonAddArtifactC, gridBagConstraints); 341 jButtonAddArtifactC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact")); 342 343 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton")); 344 gridBagConstraints = new java.awt.GridBagConstraints (); 345 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 346 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 347 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 348 jPanelCompile.add(jButtonAddLibraryC, gridBagConstraints); 349 jButtonAddLibraryC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary")); 350 351 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton")); 352 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonAddJarC, gridBagConstraints); 358 jButtonAddJarC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar")); 359 360 org.openide.awt.Mnemonics.setLocalizedText(jButtonEditC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton")); 361 gridBagConstraints = new java.awt.GridBagConstraints (); 362 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 363 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 364 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 365 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 366 jPanelCompile.add(jButtonEditC, gridBagConstraints); 367 368 org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton")); 369 gridBagConstraints = new java.awt.GridBagConstraints (); 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, 12, 0); 374 jPanelCompile.add(jButtonRemoveC, gridBagConstraints); 375 jButtonRemoveC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove")); 376 377 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton")); 378 gridBagConstraints = new java.awt.GridBagConstraints (); 379 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 380 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 381 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 382 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 383 jPanelCompile.add(jButtonMoveUpC, gridBagConstraints); 384 jButtonMoveUpC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp")); 385 386 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownC, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton")); 387 gridBagConstraints = new java.awt.GridBagConstraints (); 388 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 389 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 390 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 391 gridBagConstraints.weighty = 1.0; 392 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 393 jPanelCompile.add(jButtonMoveDownC, gridBagConstraints); 394 jButtonMoveDownC.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown")); 395 396 org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "MSG_CustomizerLibraries_CompileCpMessage")); 397 gridBagConstraints = new java.awt.GridBagConstraints (); 398 gridBagConstraints.gridy = 8; 399 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 400 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 401 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; 402 gridBagConstraints.weightx = 1.0; 403 gridBagConstraints.insets = new java.awt.Insets (6, 0, 0, 0); 404 jPanelCompile.add(jLabel1, gridBagConstraints); 405 406 jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesTab"), jPanelCompile); 407 408 jPanelRun.setLayout(new java.awt.GridBagLayout ()); 409 410 jPanelRun.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8)); 411 librariesJLabel3.setLabelFor(jListCpR); 412 org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel3, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesR_JLabel")); 413 gridBagConstraints = new java.awt.GridBagConstraints (); 414 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 415 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 416 gridBagConstraints.insets = new java.awt.Insets (0, 0, 6, 0); 417 jPanelRun.add(librariesJLabel3, gridBagConstraints); 418 419 librariesJScrollPane2.setViewportView(jListCpR); 420 jListCpR.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AN_CustomizerLibraries_jListClasspathR")); 421 jListCpR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jLabelClasspathR")); 422 423 gridBagConstraints = new java.awt.GridBagConstraints (); 424 gridBagConstraints.gridheight = 7; 425 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 426 gridBagConstraints.weightx = 1.0; 427 gridBagConstraints.weighty = 1.0; 428 gridBagConstraints.insets = new java.awt.Insets (0, 0, 0, 12); 429 jPanelRun.add(librariesJScrollPane2, gridBagConstraints); 430 431 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton")); 432 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonAddArtifactR, gridBagConstraints); 437 jButtonAddArtifactR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact")); 438 439 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton")); 440 gridBagConstraints = new java.awt.GridBagConstraints (); 441 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 442 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 443 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 444 jPanelRun.add(jButtonAddLibraryR, gridBagConstraints); 445 jButtonAddLibraryR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary")); 446 447 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton")); 448 gridBagConstraints = new java.awt.GridBagConstraints (); 449 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 450 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 451 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 452 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 453 jPanelRun.add(jButtonAddJarR, gridBagConstraints); 454 jButtonAddJarR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar")); 455 456 org.openide.awt.Mnemonics.setLocalizedText(jButtonEditR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton")); 457 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonEditR, gridBagConstraints); 463 464 org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton")); 465 gridBagConstraints = new java.awt.GridBagConstraints (); 466 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 467 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 468 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 469 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 470 jPanelRun.add(jButtonRemoveR, gridBagConstraints); 471 jButtonRemoveR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove")); 472 473 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton")); 474 gridBagConstraints = new java.awt.GridBagConstraints (); 475 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 476 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 477 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 478 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 479 jPanelRun.add(jButtonMoveUpR, gridBagConstraints); 480 jButtonMoveUpR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp")); 481 482 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownR, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton")); 483 gridBagConstraints = new java.awt.GridBagConstraints (); 484 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 485 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 486 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 487 gridBagConstraints.weighty = 1.0; 488 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 489 jPanelRun.add(jButtonMoveDownR, gridBagConstraints); 490 jButtonMoveDownR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown")); 491 492 jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Run_Tab"), jPanelRun); 493 494 jPanelCompileTests.setLayout(new java.awt.GridBagLayout ()); 495 496 jPanelCompileTests.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8)); 497 librariesJLabel2.setLabelFor(jListCpCT); 498 org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel2, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesCT_JLabel")); 499 gridBagConstraints = new java.awt.GridBagConstraints (); 500 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 501 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 502 gridBagConstraints.insets = new java.awt.Insets (0, 0, 6, 0); 503 jPanelCompileTests.add(librariesJLabel2, gridBagConstraints); 504 505 librariesJScrollPane1.setViewportView(jListCpCT); 506 jListCpCT.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AN_CustomizerLibraries_jListClasspathCT")); 507 jListCpCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jLabelClasspathCT")); 508 509 gridBagConstraints = new java.awt.GridBagConstraints (); 510 gridBagConstraints.gridheight = 7; 511 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 512 gridBagConstraints.weightx = 1.0; 513 gridBagConstraints.weighty = 1.0; 514 gridBagConstraints.insets = new java.awt.Insets (0, 0, 0, 12); 515 jPanelCompileTests.add(librariesJScrollPane1, gridBagConstraints); 516 517 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton")); 518 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonAddArtifactCT, gridBagConstraints); 523 jButtonAddArtifactCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact")); 524 525 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton")); 526 gridBagConstraints = new java.awt.GridBagConstraints (); 527 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 528 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 529 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 530 jPanelCompileTests.add(jButtonAddLibraryCT, gridBagConstraints); 531 jButtonAddLibraryCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary")); 532 533 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton")); 534 gridBagConstraints = new java.awt.GridBagConstraints (); 535 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 536 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 537 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 538 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 539 jPanelCompileTests.add(jButtonAddJarCT, gridBagConstraints); 540 jButtonAddJarCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar")); 541 542 org.openide.awt.Mnemonics.setLocalizedText(jButtonEditCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton")); 543 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonEditCT, gridBagConstraints); 549 550 org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton")); 551 gridBagConstraints = new java.awt.GridBagConstraints (); 552 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 553 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 554 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 555 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 556 jPanelCompileTests.add(jButtonRemoveCT, gridBagConstraints); 557 jButtonRemoveCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove")); 558 559 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton")); 560 gridBagConstraints = new java.awt.GridBagConstraints (); 561 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 562 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 563 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 564 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 565 jPanelCompileTests.add(jButtonMoveUpCT, gridBagConstraints); 566 jButtonMoveUpCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp")); 567 568 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownCT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton")); 569 gridBagConstraints = new java.awt.GridBagConstraints (); 570 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 571 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 572 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 573 gridBagConstraints.weighty = 1.0; 574 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 575 jPanelCompileTests.add(jButtonMoveDownCT, gridBagConstraints); 576 jButtonMoveDownCT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown")); 577 578 jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_TestLibrariesTab"), jPanelCompileTests); 579 580 jPanelRunTests.setLayout(new java.awt.GridBagLayout ()); 581 582 jPanelRunTests.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8)); 583 librariesJLabel4.setLabelFor(jListCpRT); 584 org.openide.awt.Mnemonics.setLocalizedText(librariesJLabel4, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_LibrariesRT_JLabel")); 585 gridBagConstraints = new java.awt.GridBagConstraints (); 586 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 587 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 588 gridBagConstraints.insets = new java.awt.Insets (0, 0, 6, 0); 589 jPanelRunTests.add(librariesJLabel4, gridBagConstraints); 590 591 librariesJScrollPane3.setViewportView(jListCpRT); 592 jListCpRT.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AN_CustomizerLibraries_jListClasspathRT")); 593 jListCpRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jLabelClasspathRT")); 594 595 gridBagConstraints = new java.awt.GridBagConstraints (); 596 gridBagConstraints.gridheight = 7; 597 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 598 gridBagConstraints.weightx = 1.0; 599 gridBagConstraints.weighty = 1.0; 600 gridBagConstraints.insets = new java.awt.Insets (0, 0, 0, 12); 601 jPanelRunTests.add(librariesJScrollPane3, gridBagConstraints); 602 603 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddArtifactRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddProject_JButton")); 604 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonAddArtifactRT, gridBagConstraints); 609 jButtonAddArtifactRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddArtifact")); 610 611 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddLibraryRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddLibary_JButton")); 612 gridBagConstraints = new java.awt.GridBagConstraints (); 613 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 614 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 615 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 616 jPanelRunTests.add(jButtonAddLibraryRT, gridBagConstraints); 617 jButtonAddLibraryRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddLibrary")); 618 619 org.openide.awt.Mnemonics.setLocalizedText(jButtonAddJarRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_AddJar_JButton")); 620 gridBagConstraints = new java.awt.GridBagConstraints (); 621 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 622 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 623 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 624 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 625 jPanelRunTests.add(jButtonAddJarRT, gridBagConstraints); 626 jButtonAddJarRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonAddJar")); 627 628 org.openide.awt.Mnemonics.setLocalizedText(jButtonEditRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Edit_JButton")); 629 gridBagConstraints = new java.awt.GridBagConstraints (); 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(jButtonEditRT, gridBagConstraints); 635 636 org.openide.awt.Mnemonics.setLocalizedText(jButtonRemoveRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Remove_JButton")); 637 gridBagConstraints = new java.awt.GridBagConstraints (); 638 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 639 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 640 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 641 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 642 jPanelRunTests.add(jButtonRemoveRT, gridBagConstraints); 643 jButtonRemoveRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonRemove")); 644 645 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveUpRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveUp_JButton")); 646 gridBagConstraints = new java.awt.GridBagConstraints (); 647 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 648 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 649 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 650 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 651 jPanelRunTests.add(jButtonMoveUpRT, gridBagConstraints); 652 jButtonMoveUpRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveUp")); 653 654 org.openide.awt.Mnemonics.setLocalizedText(jButtonMoveDownRT, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_MoveDown_JButton")); 655 gridBagConstraints = new java.awt.GridBagConstraints (); 656 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 657 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 658 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; 659 gridBagConstraints.weighty = 1.0; 660 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 661 jPanelRunTests.add(jButtonMoveDownRT, gridBagConstraints); 662 jButtonMoveDownRT.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_jButtonMoveDown")); 663 664 jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_RunTests_Tab"), jPanelRunTests); 665 666 gridBagConstraints = new java.awt.GridBagConstraints (); 667 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 668 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 669 gridBagConstraints.weighty = 1.0; 670 add(jTabbedPane1, gridBagConstraints); 671 jTabbedPane1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSN_CustomizerLibraries_JTabbedPane")); 672 jTabbedPane1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "ACSD_CustomizerLibraries_JTabbedPane")); 673 674 org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxBuildSubprojects, org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "LBL_CustomizeLibraries_Build_Subprojects")); 675 jCheckBoxBuildSubprojects.setMargin(new java.awt.Insets (0, 0, 0, 0)); 676 gridBagConstraints = new java.awt.GridBagConstraints (); 677 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 678 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 679 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 680 gridBagConstraints.insets = new java.awt.Insets (6, 0, 0, 0); 681 add(jCheckBoxBuildSubprojects, gridBagConstraints); 682 jCheckBoxBuildSubprojects.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, "AD_CheckBoxBuildSubprojects")); 683 684 org.openide.awt.Mnemonics.setLocalizedText(jLabelErrorMessage, " "); 685 gridBagConstraints = new java.awt.GridBagConstraints (); 686 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 687 gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; 688 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 689 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 690 gridBagConstraints.insets = new java.awt.Insets (12, 0, 0, 0); 691 add(jLabelErrorMessage, gridBagConstraints); 692 693 } 695 private void createNewPlatform(java.awt.event.ActionEvent evt) { Object selectedItem = this.jComboBoxTarget.getSelectedItem(); 697 JavaPlatform jp = (selectedItem == null ? null : PlatformUiSupport.getPlatform(selectedItem)); 698 PlatformsCustomizer.showCustomizer(jp); 699 } 701 702 private javax.swing.JButton jButton1; 704 private javax.swing.JButton jButtonAddArtifactC; 705 private javax.swing.JButton jButtonAddArtifactCT; 706 private javax.swing.JButton jButtonAddArtifactR; 707 private javax.swing.JButton jButtonAddArtifactRT; 708 private javax.swing.JButton jButtonAddJarC; 709 private javax.swing.JButton jButtonAddJarCT; 710 private javax.swing.JButton jButtonAddJarR; 711 private javax.swing.JButton jButtonAddJarRT; 712 private javax.swing.JButton jButtonAddLibraryC; 713 private javax.swing.JButton jButtonAddLibraryCT; 714 private javax.swing.JButton jButtonAddLibraryR; 715 private javax.swing.JButton jButtonAddLibraryRT; 716 private javax.swing.JButton jButtonEditC; 717 private javax.swing.JButton jButtonEditCT; 718 private javax.swing.JButton jButtonEditR; 719 private javax.swing.JButton jButtonEditRT; 720 private javax.swing.JButton jButtonMoveDownC; 721 private javax.swing.JButton jButtonMoveDownCT; 722 private javax.swing.JButton jButtonMoveDownR; 723 private javax.swing.JButton jButtonMoveDownRT; 724 private javax.swing.JButton jButtonMoveUpC; 725 private javax.swing.JButton jButtonMoveUpCT; 726 private javax.swing.JButton jButtonMoveUpR; 727 private javax.swing.JButton jButtonMoveUpRT; 728 private javax.swing.JButton jButtonRemoveC; 729 private javax.swing.JButton jButtonRemoveCT; 730 private javax.swing.JButton jButtonRemoveR; 731 private javax.swing.JButton jButtonRemoveRT; 732 private javax.swing.JCheckBox jCheckBoxBuildSubprojects; 733 private javax.swing.JComboBox jComboBoxTarget; 734 private javax.swing.JLabel jLabel1; 735 private javax.swing.JLabel jLabelErrorMessage; 736 private javax.swing.JLabel jLabelTarget; 737 private javax.swing.JList jListCpCT; 738 private javax.swing.JList jListCpR; 739 private javax.swing.JList jListCpRT; 740 private javax.swing.JPanel jPanelCompile; 741 private javax.swing.JPanel jPanelCompileTests; 742 private javax.swing.JPanel jPanelRun; 743 private javax.swing.JPanel jPanelRunTests; 744 private javax.swing.JTabbedPane jTabbedPane1; 745 private javax.swing.JTable jTableCpC; 746 private javax.swing.JLabel librariesJLabel1; 747 private javax.swing.JLabel librariesJLabel2; 748 private javax.swing.JLabel librariesJLabel3; 749 private javax.swing.JLabel librariesJLabel4; 750 private javax.swing.JScrollPane librariesJScrollPane; 751 private javax.swing.JScrollPane librariesJScrollPane1; 752 private javax.swing.JScrollPane librariesJScrollPane2; 753 private javax.swing.JScrollPane librariesJScrollPane3; 754 756 private void initTableVisualProperties(JTable table) { 757 table.setRowHeight(jTableCpC.getRowHeight() + 4); 759 table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 760 table.setIntercellSpacing(new java.awt.Dimension (0, 0)); 761 table.getParent().setBackground(table.getBackground()); 763 table.setShowHorizontalLines(false); 764 table.setShowVerticalLines(false); 765 766 TableColumn column = table.getColumnModel().getColumn(1); 767 JTableHeader header = table.getTableHeader(); 768 column.setMaxWidth(24 + SwingUtilities.computeStringWidth(header.getFontMetrics(header.getFont()), String.valueOf(column.getHeaderValue()))); 769 header.setReorderingAllowed(false); 770 } 771 } 772 | Popular Tags |