Lines 20-31
Link Here
|
20 |
package org.netbeans.modules.java.j2seproject.ui.customizer; |
20 |
package org.netbeans.modules.java.j2seproject.ui.customizer; |
21 |
|
21 |
|
22 |
import java.io.File; |
22 |
import java.io.File; |
|
|
23 |
import java.nio.charset.Charset; |
24 |
import java.nio.charset.Charset; |
25 |
import java.nio.charset.UnsupportedCharsetException; |
26 |
import javax.swing.event.DocumentEvent; |
27 |
import javax.swing.event.DocumentListener; |
23 |
import javax.swing.event.ListDataEvent; |
28 |
import javax.swing.event.ListDataEvent; |
24 |
import javax.swing.event.ListDataListener; |
29 |
import javax.swing.event.ListDataListener; |
|
|
30 |
import org.netbeans.api.queries.FileEncodingQuery; |
25 |
import org.openide.filesystems.FileObject; |
31 |
import org.openide.filesystems.FileObject; |
26 |
import org.openide.filesystems.FileUtil; |
32 |
import org.openide.filesystems.FileUtil; |
27 |
import org.openide.util.HelpCtx; |
33 |
import org.openide.util.HelpCtx; |
28 |
import org.openide.util.NbBundle; |
|
|
29 |
import org.netbeans.modules.java.j2seproject.J2SEProject; |
34 |
import org.netbeans.modules.java.j2seproject.J2SEProject; |
30 |
|
35 |
|
31 |
/** |
36 |
/** |
Lines 33-38
Link Here
|
33 |
* @author Tomas Zezula |
38 |
* @author Tomas Zezula |
34 |
*/ |
39 |
*/ |
35 |
public class CustomizerSources extends javax.swing.JPanel implements HelpCtx.Provider { |
40 |
public class CustomizerSources extends javax.swing.JPanel implements HelpCtx.Provider { |
|
|
41 |
|
42 |
|
43 |
private J2SEProjectProperties uiProperties; |
44 |
private String originalEncoding; |
36 |
|
45 |
|
37 |
public CustomizerSources( J2SEProjectProperties uiProperties ) { |
46 |
public CustomizerSources( J2SEProjectProperties uiProperties ) { |
38 |
initComponents(); |
47 |
initComponents(); |
Lines 86-91
Link Here
|
86 |
} |
95 |
} |
87 |
}); |
96 |
}); |
88 |
enableSourceLevel (); |
97 |
enableSourceLevel (); |
|
|
98 |
this.uiProperties = uiProperties; |
99 |
this.originalEncoding = this.uiProperties.getProject().evaluator().getProperty(J2SEProjectProperties.PROJECT_ENCODING); |
100 |
if (this.originalEncoding == null) { |
101 |
this.originalEncoding = FileEncodingQuery.getDefaultEncoding().name(); |
102 |
} |
103 |
this.encoding.setText(this.originalEncoding); |
104 |
this.encoding.getDocument().addDocumentListener(new DocumentListener() { |
105 |
|
106 |
public void insertUpdate(DocumentEvent e) { |
107 |
handleEncodingChange(); |
108 |
} |
109 |
|
110 |
public void removeUpdate(DocumentEvent e) { |
111 |
handleEncodingChange (); |
112 |
} |
113 |
|
114 |
public void changedUpdate(DocumentEvent e) { |
115 |
handleEncodingChange (); |
116 |
} |
117 |
|
118 |
}); |
119 |
} |
120 |
|
121 |
|
122 |
private void handleEncodingChange () { |
123 |
try { |
124 |
String enc = encoding.getText(); |
125 |
if (enc.length()>0) { |
126 |
Charset c = Charset.forName(enc); |
127 |
} |
128 |
this.uiProperties.putAdditionalProperty(J2SEProjectProperties.PROJECT_ENCODING, enc); |
129 |
} catch (UnsupportedCharsetException e) { |
130 |
this.uiProperties.putAdditionalProperty(J2SEProjectProperties.PROJECT_ENCODING, originalEncoding); |
131 |
} |
89 |
} |
132 |
} |
90 |
|
133 |
|
91 |
public HelpCtx getHelpCtx() { |
134 |
public HelpCtx getHelpCtx() { |
Lines 127-138
Link Here
|
127 |
jLabel4 = new javax.swing.JLabel(); |
170 |
jLabel4 = new javax.swing.JLabel(); |
128 |
sourceLevel = new javax.swing.JComboBox(); |
171 |
sourceLevel = new javax.swing.JComboBox(); |
129 |
jPanel2 = new javax.swing.JPanel(); |
172 |
jPanel2 = new javax.swing.JPanel(); |
|
|
173 |
jLabel5 = new javax.swing.JLabel(); |
174 |
encoding = new javax.swing.JTextField(); |
130 |
|
175 |
|
131 |
setLayout(new java.awt.GridBagLayout()); |
176 |
setLayout(new java.awt.GridBagLayout()); |
132 |
|
177 |
|
133 |
jLabel1.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_ProjectFolder").charAt(0)); |
178 |
jLabel1.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_ProjectFolder").charAt(0)); |
134 |
jLabel1.setLabelFor(projectLocation); |
179 |
jLabel1.setLabelFor(projectLocation); |
135 |
jLabel1.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_ProjectFolder")); |
180 |
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle"); // NOI18N |
|
|
181 |
jLabel1.setText(bundle.getString("CTL_ProjectFolder")); // NOI18N |
136 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
182 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
137 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
183 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
138 |
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 12); |
184 |
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 12); |
Lines 145-157
Link Here
|
145 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
191 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
146 |
gridBagConstraints.weightx = 1.0; |
192 |
gridBagConstraints.weightx = 1.0; |
147 |
add(projectLocation, gridBagConstraints); |
193 |
add(projectLocation, gridBagConstraints); |
148 |
projectLocation.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_projectLocation")); |
194 |
projectLocation.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_projectLocation")); // NOI18N |
149 |
|
195 |
|
150 |
sourceRootsPanel.setLayout(new java.awt.GridBagLayout()); |
196 |
sourceRootsPanel.setLayout(new java.awt.GridBagLayout()); |
151 |
|
197 |
|
152 |
jLabel2.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_SourceRoots").charAt(0)); |
198 |
jLabel2.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_SourceRoots").charAt(0)); |
153 |
jLabel2.setLabelFor(sourceRoots); |
199 |
jLabel2.setLabelFor(sourceRoots); |
154 |
jLabel2.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_SourceRoots")); |
200 |
jLabel2.setText(bundle.getString("CTL_SourceRoots")); // NOI18N |
155 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
201 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
156 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
202 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
157 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
203 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
Lines 186-192
Link Here
|
186 |
} |
232 |
} |
187 |
}); |
233 |
}); |
188 |
jScrollPane1.setViewportView(sourceRoots); |
234 |
jScrollPane1.setViewportView(sourceRoots); |
189 |
sourceRoots.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_sourceRoots")); |
235 |
sourceRoots.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_sourceRoots")); // NOI18N |
190 |
|
236 |
|
191 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
237 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
192 |
gridBagConstraints.gridx = 0; |
238 |
gridBagConstraints.gridx = 0; |
Lines 200-206
Link Here
|
200 |
sourceRootsPanel.add(jScrollPane1, gridBagConstraints); |
246 |
sourceRootsPanel.add(jScrollPane1, gridBagConstraints); |
201 |
|
247 |
|
202 |
addSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_AddSourceRoot").charAt(0)); |
248 |
addSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_AddSourceRoot").charAt(0)); |
203 |
addSourceRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_AddSourceRoot")); |
249 |
addSourceRoot.setText(bundle.getString("CTL_AddSourceRoot")); // NOI18N |
204 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
250 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
205 |
gridBagConstraints.gridx = 1; |
251 |
gridBagConstraints.gridx = 1; |
206 |
gridBagConstraints.gridy = 1; |
252 |
gridBagConstraints.gridy = 1; |
Lines 208-217
Link Here
|
208 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
254 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
209 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
255 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
210 |
sourceRootsPanel.add(addSourceRoot, gridBagConstraints); |
256 |
sourceRootsPanel.add(addSourceRoot, gridBagConstraints); |
211 |
addSourceRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_addSourceRoot")); |
257 |
addSourceRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_addSourceRoot")); // NOI18N |
212 |
|
258 |
|
213 |
removeSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_RemoveSourceRoot").charAt(0)); |
259 |
removeSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_RemoveSourceRoot").charAt(0)); |
214 |
removeSourceRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_RemoveSourceRoot")); |
260 |
removeSourceRoot.setText(bundle.getString("CTL_RemoveSourceRoot")); // NOI18N |
215 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
261 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
216 |
gridBagConstraints.gridx = 1; |
262 |
gridBagConstraints.gridx = 1; |
217 |
gridBagConstraints.gridy = 2; |
263 |
gridBagConstraints.gridy = 2; |
Lines 220-229
Link Here
|
220 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
266 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
221 |
gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); |
267 |
gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); |
222 |
sourceRootsPanel.add(removeSourceRoot, gridBagConstraints); |
268 |
sourceRootsPanel.add(removeSourceRoot, gridBagConstraints); |
223 |
removeSourceRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_removeSourceRoot")); |
269 |
removeSourceRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_removeSourceRoot")); // NOI18N |
224 |
|
270 |
|
225 |
upSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_UpSourceRoot").charAt(0)); |
271 |
upSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_UpSourceRoot").charAt(0)); |
226 |
upSourceRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_UpSourceRoot")); |
272 |
upSourceRoot.setText(bundle.getString("CTL_UpSourceRoot")); // NOI18N |
227 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
273 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
228 |
gridBagConstraints.gridx = 1; |
274 |
gridBagConstraints.gridx = 1; |
229 |
gridBagConstraints.gridy = 3; |
275 |
gridBagConstraints.gridy = 3; |
Lines 232-241
Link Here
|
232 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
278 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
233 |
gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0); |
279 |
gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0); |
234 |
sourceRootsPanel.add(upSourceRoot, gridBagConstraints); |
280 |
sourceRootsPanel.add(upSourceRoot, gridBagConstraints); |
235 |
upSourceRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_upSourceRoot")); |
281 |
upSourceRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_upSourceRoot")); // NOI18N |
236 |
|
282 |
|
237 |
downSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_DownSourceRoot").charAt(0)); |
283 |
downSourceRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_DownSourceRoot").charAt(0)); |
238 |
downSourceRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_DownSourceRoot")); |
284 |
downSourceRoot.setText(bundle.getString("CTL_DownSourceRoot")); // NOI18N |
239 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
285 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
240 |
gridBagConstraints.gridx = 1; |
286 |
gridBagConstraints.gridx = 1; |
241 |
gridBagConstraints.gridy = 4; |
287 |
gridBagConstraints.gridy = 4; |
Lines 244-250
Link Here
|
244 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
290 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
245 |
gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); |
291 |
gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); |
246 |
sourceRootsPanel.add(downSourceRoot, gridBagConstraints); |
292 |
sourceRootsPanel.add(downSourceRoot, gridBagConstraints); |
247 |
downSourceRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_downSourceRoot")); |
293 |
downSourceRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_downSourceRoot")); // NOI18N |
248 |
|
294 |
|
249 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
295 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
250 |
gridBagConstraints.gridx = 0; |
296 |
gridBagConstraints.gridx = 0; |
Lines 260-266
Link Here
|
260 |
|
306 |
|
261 |
jLabel3.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_TestRoots").charAt(0)); |
307 |
jLabel3.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_TestRoots").charAt(0)); |
262 |
jLabel3.setLabelFor(testRoots); |
308 |
jLabel3.setLabelFor(testRoots); |
263 |
jLabel3.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_TestRoots")); |
309 |
jLabel3.setText(bundle.getString("CTL_TestRoots")); // NOI18N |
264 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
310 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
265 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
311 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
266 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
312 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
Lines 296-302
Link Here
|
296 |
} |
342 |
} |
297 |
}); |
343 |
}); |
298 |
jScrollPane2.setViewportView(testRoots); |
344 |
jScrollPane2.setViewportView(testRoots); |
299 |
testRoots.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_testRoots")); |
345 |
testRoots.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_testRoots")); // NOI18N |
300 |
|
346 |
|
301 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
347 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
302 |
gridBagConstraints.gridx = 0; |
348 |
gridBagConstraints.gridx = 0; |
Lines 309-315
Link Here
|
309 |
testRootsPanel.add(jScrollPane2, gridBagConstraints); |
355 |
testRootsPanel.add(jScrollPane2, gridBagConstraints); |
310 |
|
356 |
|
311 |
addTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_AddTestRoot").charAt(0)); |
357 |
addTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_AddTestRoot").charAt(0)); |
312 |
addTestRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_AddTestRoot")); |
358 |
addTestRoot.setText(bundle.getString("CTL_AddTestRoot")); // NOI18N |
313 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
359 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
314 |
gridBagConstraints.gridx = 1; |
360 |
gridBagConstraints.gridx = 1; |
315 |
gridBagConstraints.gridy = 1; |
361 |
gridBagConstraints.gridy = 1; |
Lines 318-327
Link Here
|
318 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
364 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
319 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 6, 0); |
365 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 6, 0); |
320 |
testRootsPanel.add(addTestRoot, gridBagConstraints); |
366 |
testRootsPanel.add(addTestRoot, gridBagConstraints); |
321 |
addTestRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_addTestRoot")); |
367 |
addTestRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_addTestRoot")); // NOI18N |
322 |
|
368 |
|
323 |
removeTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_RemoveTestRoot").charAt(0)); |
369 |
removeTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_RemoveTestRoot").charAt(0)); |
324 |
removeTestRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_RemoveTestRoot")); |
370 |
removeTestRoot.setText(bundle.getString("CTL_RemoveTestRoot")); // NOI18N |
325 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
371 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
326 |
gridBagConstraints.gridx = 1; |
372 |
gridBagConstraints.gridx = 1; |
327 |
gridBagConstraints.gridy = 2; |
373 |
gridBagConstraints.gridy = 2; |
Lines 330-339
Link Here
|
330 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
376 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
331 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 12, 0); |
377 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 12, 0); |
332 |
testRootsPanel.add(removeTestRoot, gridBagConstraints); |
378 |
testRootsPanel.add(removeTestRoot, gridBagConstraints); |
333 |
removeTestRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_removeTestRoot")); |
379 |
removeTestRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_removeTestRoot")); // NOI18N |
334 |
|
380 |
|
335 |
upTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_UpTestRoot").charAt(0)); |
381 |
upTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_UpTestRoot").charAt(0)); |
336 |
upTestRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_UpTestRoot")); |
382 |
upTestRoot.setText(bundle.getString("CTL_UpTestRoot")); // NOI18N |
337 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
383 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
338 |
gridBagConstraints.gridx = 1; |
384 |
gridBagConstraints.gridx = 1; |
339 |
gridBagConstraints.gridy = 3; |
385 |
gridBagConstraints.gridy = 3; |
Lines 342-351
Link Here
|
342 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
388 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
343 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 6, 0); |
389 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 6, 0); |
344 |
testRootsPanel.add(upTestRoot, gridBagConstraints); |
390 |
testRootsPanel.add(upTestRoot, gridBagConstraints); |
345 |
upTestRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_upTestRoot")); |
391 |
upTestRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_upTestRoot")); // NOI18N |
346 |
|
392 |
|
347 |
downTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_DownTestRoot").charAt(0)); |
393 |
downTestRoot.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_DownTestRoot").charAt(0)); |
348 |
downTestRoot.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("CTL_DownTestRoot")); |
394 |
downTestRoot.setText(bundle.getString("CTL_DownTestRoot")); // NOI18N |
349 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
395 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
350 |
gridBagConstraints.gridx = 1; |
396 |
gridBagConstraints.gridx = 1; |
351 |
gridBagConstraints.gridy = 4; |
397 |
gridBagConstraints.gridy = 4; |
Lines 354-360
Link Here
|
354 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
400 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
355 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0); |
401 |
gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0); |
356 |
testRootsPanel.add(downTestRoot, gridBagConstraints); |
402 |
testRootsPanel.add(downTestRoot, gridBagConstraints); |
357 |
downTestRoot.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_CustomizerSources_downTestRoot")); |
403 |
downTestRoot.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_CustomizerSources_downTestRoot")); // NOI18N |
358 |
|
404 |
|
359 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
405 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
360 |
gridBagConstraints.gridx = 0; |
406 |
gridBagConstraints.gridx = 0; |
Lines 371-401
Link Here
|
371 |
|
417 |
|
372 |
jLabel4.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_SourceLevel").charAt(0)); |
418 |
jLabel4.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("MNE_SourceLevel").charAt(0)); |
373 |
jLabel4.setLabelFor(sourceLevel); |
419 |
jLabel4.setLabelFor(sourceLevel); |
374 |
jLabel4.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("TXT_SourceLevel")); |
420 |
jLabel4.setText(bundle.getString("TXT_SourceLevel")); // NOI18N |
375 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
421 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
376 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
|
|
377 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
422 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
378 |
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 12); |
423 |
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 12); |
379 |
jPanel1.add(jLabel4, gridBagConstraints); |
424 |
jPanel1.add(jLabel4, gridBagConstraints); |
380 |
|
425 |
|
381 |
sourceLevel.setMinimumSize(this.sourceLevel.getPreferredSize()); |
426 |
sourceLevel.setMinimumSize(this.sourceLevel.getPreferredSize()); |
382 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
427 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
383 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
|
|
384 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
428 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
385 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
429 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
386 |
gridBagConstraints.weightx = 0.75; |
430 |
gridBagConstraints.weightx = 0.75; |
387 |
jPanel1.add(sourceLevel, gridBagConstraints); |
431 |
jPanel1.add(sourceLevel, gridBagConstraints); |
388 |
sourceLevel.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AN_SourceLevel")); |
432 |
sourceLevel.getAccessibleContext().setAccessibleName(bundle.getString("AN_SourceLevel")); // NOI18N |
389 |
sourceLevel.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/java/j2seproject/ui/customizer/Bundle").getString("AD_SourceLevel")); |
433 |
sourceLevel.getAccessibleContext().setAccessibleDescription(bundle.getString("AD_SourceLevel")); // NOI18N |
390 |
|
434 |
|
391 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
435 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
392 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
436 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
393 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
|
|
394 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
437 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
395 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
438 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
396 |
gridBagConstraints.weightx = 1.0; |
439 |
gridBagConstraints.weightx = 1.0; |
397 |
jPanel1.add(jPanel2, gridBagConstraints); |
440 |
jPanel1.add(jPanel2, gridBagConstraints); |
398 |
|
441 |
|
|
|
442 |
jLabel5.setLabelFor(encoding); |
443 |
org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(CustomizerSources.class, "TXT_Encoding")); // NOI18N |
444 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
445 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
446 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
447 |
gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 12); |
448 |
jPanel1.add(jLabel5, gridBagConstraints); |
449 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
450 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
451 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
452 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; |
453 |
gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0); |
454 |
jPanel1.add(encoding, gridBagConstraints); |
455 |
|
399 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
456 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
400 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
457 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
401 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
458 |
gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; |
Lines 403-409
Link Here
|
403 |
gridBagConstraints.weightx = 1.0; |
460 |
gridBagConstraints.weightx = 1.0; |
404 |
gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0); |
461 |
gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0); |
405 |
add(jPanel1, gridBagConstraints); |
462 |
add(jPanel1, gridBagConstraints); |
406 |
|
|
|
407 |
}// </editor-fold>//GEN-END:initComponents |
463 |
}// </editor-fold>//GEN-END:initComponents |
408 |
|
464 |
|
409 |
|
465 |
|
Lines 412-421
Link Here
|
412 |
private javax.swing.JButton addTestRoot; |
468 |
private javax.swing.JButton addTestRoot; |
413 |
private javax.swing.JButton downSourceRoot; |
469 |
private javax.swing.JButton downSourceRoot; |
414 |
private javax.swing.JButton downTestRoot; |
470 |
private javax.swing.JButton downTestRoot; |
|
|
471 |
private javax.swing.JTextField encoding; |
415 |
private javax.swing.JLabel jLabel1; |
472 |
private javax.swing.JLabel jLabel1; |
416 |
private javax.swing.JLabel jLabel2; |
473 |
private javax.swing.JLabel jLabel2; |
417 |
private javax.swing.JLabel jLabel3; |
474 |
private javax.swing.JLabel jLabel3; |
418 |
private javax.swing.JLabel jLabel4; |
475 |
private javax.swing.JLabel jLabel4; |
|
|
476 |
private javax.swing.JLabel jLabel5; |
419 |
private javax.swing.JPanel jPanel1; |
477 |
private javax.swing.JPanel jPanel1; |
420 |
private javax.swing.JPanel jPanel2; |
478 |
private javax.swing.JPanel jPanel2; |
421 |
private javax.swing.JScrollPane jScrollPane1; |
479 |
private javax.swing.JScrollPane jScrollPane1; |