1 19 20 package org.netbeans.modules.web.project.ui.customizer; 21 22 import org.openide.util.HelpCtx; 23 import org.openide.util.NbBundle; 24 25 public class CustomizerCompile extends javax.swing.JPanel implements HelpCtx.Provider { 26 27 28 public CustomizerCompile(WebProjectProperties uiProperties) { 29 initComponents(); 30 31 uiProperties.JAVAC_DEPRECATION_MODEL.setMnemonic( jCheckBoxDeprecation.getMnemonic() ); 32 jCheckBoxDeprecation.setModel( uiProperties.JAVAC_DEPRECATION_MODEL ); 33 uiProperties.JAVAC_DEBUG_MODEL.setMnemonic( jCheckBoxDebugInfo.getMnemonic() ); 34 jCheckBoxDebugInfo.setModel( uiProperties.JAVAC_DEBUG_MODEL ); 35 uiProperties.COMPILE_JSP_MODEL.setMnemonic( jCheckBoxCompileJSP.getMnemonic() ); 36 jCheckBoxCompileJSP.setModel( uiProperties.COMPILE_JSP_MODEL ); 37 additionalJavacParamsJTextField.setDocument( uiProperties.JAVAC_COMPILER_ARG_MODEL ); 38 39 } 40 41 46 private void initComponents() { 48 java.awt.GridBagConstraints gridBagConstraints; 49 50 jLabelOptions = new javax.swing.JLabel (); 51 jCheckBoxDebugInfo = new javax.swing.JCheckBox (); 52 jCheckBoxDeprecation = new javax.swing.JCheckBox (); 53 additionalJavacParamsJLabel = new javax.swing.JLabel (); 54 additionalJavacParamsJTextField = new javax.swing.JTextField (); 55 additionalJavacParamsExampleJLabel = new javax.swing.JLabel (); 56 jCheckBoxCompileJSP = new javax.swing.JCheckBox (); 57 58 setLayout(new java.awt.GridBagLayout ()); 59 60 org.openide.awt.Mnemonics.setLocalizedText(jLabelOptions, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_Options_JLabel")); 61 gridBagConstraints = new java.awt.GridBagConstraints (); 62 gridBagConstraints.gridx = 0; 63 gridBagConstraints.gridy = 0; 64 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 65 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 66 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 67 add(jLabelOptions, gridBagConstraints); 68 69 org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxDebugInfo, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_DebugInfo_JCheckBox")); 70 jCheckBoxDebugInfo.setMargin(new java.awt.Insets (0, 0, 0, 0)); 71 gridBagConstraints = new java.awt.GridBagConstraints (); 72 gridBagConstraints.gridx = 0; 73 gridBagConstraints.gridy = 1; 74 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 75 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 76 gridBagConstraints.insets = new java.awt.Insets (0, 12, 5, 0); 77 add(jCheckBoxDebugInfo, gridBagConstraints); 78 jCheckBoxDebugInfo.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/project/ui/customizer/Bundle").getString("ACS_CustomizeCompile_Debugging__A11YDesc")); 79 80 org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxDeprecation, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_Deprecation_JCheckBox")); 81 jCheckBoxDeprecation.setMargin(new java.awt.Insets (0, 0, 0, 0)); 82 gridBagConstraints = new java.awt.GridBagConstraints (); 83 gridBagConstraints.gridx = 0; 84 gridBagConstraints.gridy = 2; 85 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 86 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 87 gridBagConstraints.insets = new java.awt.Insets (0, 12, 11, 0); 88 add(jCheckBoxDeprecation, gridBagConstraints); 89 jCheckBoxDeprecation.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/project/ui/customizer/Bundle").getString("ACS_CustomizeCompile_Deprecated_A11YDesc")); 90 91 additionalJavacParamsJLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"MNE_AdditionalCompilerOptions").charAt(0)); 92 additionalJavacParamsJLabel.setLabelFor(additionalJavacParamsJTextField); 93 org.openide.awt.Mnemonics.setLocalizedText(additionalJavacParamsJLabel, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_AdditionalCompilerOptions")); 94 gridBagConstraints = new java.awt.GridBagConstraints (); 95 gridBagConstraints.gridx = 0; 96 gridBagConstraints.gridy = 3; 97 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 98 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 12); 99 add(additionalJavacParamsJLabel, gridBagConstraints); 100 101 gridBagConstraints = new java.awt.GridBagConstraints (); 102 gridBagConstraints.gridx = 1; 103 gridBagConstraints.gridy = 3; 104 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 105 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 106 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 107 gridBagConstraints.weightx = 1.0; 108 gridBagConstraints.insets = new java.awt.Insets (0, 0, 5, 0); 109 add(additionalJavacParamsJTextField, gridBagConstraints); 110 additionalJavacParamsJTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"AD_AdditionalCompilerOptions")); 111 112 org.openide.awt.Mnemonics.setLocalizedText(additionalJavacParamsExampleJLabel, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_AdditionalCompilerOptionsExample")); 113 gridBagConstraints = new java.awt.GridBagConstraints (); 114 gridBagConstraints.gridx = 1; 115 gridBagConstraints.gridy = 4; 116 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 117 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 118 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 119 gridBagConstraints.insets = new java.awt.Insets (0, 0, 12, 0); 120 add(additionalJavacParamsExampleJLabel, gridBagConstraints); 121 122 org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxCompileJSP, NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_CompileJSP_JCheckBox")); 123 gridBagConstraints = new java.awt.GridBagConstraints (); 124 gridBagConstraints.gridx = 0; 125 gridBagConstraints.gridy = 5; 126 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 127 gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; 128 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; 129 gridBagConstraints.weighty = 1.0; 130 add(jCheckBoxCompileJSP, gridBagConstraints); 131 jCheckBoxCompileJSP.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/project/ui/customizer/Bundle").getString("ACS_CustomizeCompile_TestCompile_A11YDesc")); 132 133 } 134 136 private javax.swing.JLabel additionalJavacParamsExampleJLabel; 138 private javax.swing.JLabel additionalJavacParamsJLabel; 139 private javax.swing.JTextField additionalJavacParamsJTextField; 140 private javax.swing.JCheckBox jCheckBoxCompileJSP; 141 private javax.swing.JCheckBox jCheckBoxDebugInfo; 142 private javax.swing.JCheckBox jCheckBoxDeprecation; 143 private javax.swing.JLabel jLabelOptions; 144 146 149 public HelpCtx getHelpCtx() { 150 return new HelpCtx(CustomizerCompile.class); 151 } 152 153 } 154 | Popular Tags |