Lines 103-108
Link Here
|
103 |
keepGASTogetherCheckBox.putClientProperty(OPTION_ID, keepGettersAndSettersTogether); |
103 |
keepGASTogetherCheckBox.putClientProperty(OPTION_ID, keepGettersAndSettersTogether); |
104 |
sortMembersAlphaCheckBox.putClientProperty(OPTION_ID, sortMembersInGroups); |
104 |
sortMembersAlphaCheckBox.putClientProperty(OPTION_ID, sortMembersInGroups); |
105 |
sortUsesDependenciesCheckBox.putClientProperty(OPTION_ID, sortUsesDependencies); |
105 |
sortUsesDependenciesCheckBox.putClientProperty(OPTION_ID, sortUsesDependencies); |
|
|
106 |
sortIgnoreFieldsCheckBox.putClientProperty(OPTION_ID, sortIgnoreFields); |
106 |
insertionPointComboBox.putClientProperty(OPTION_ID, classMemberInsertionPoint); |
107 |
insertionPointComboBox.putClientProperty(OPTION_ID, classMemberInsertionPoint); |
107 |
} |
108 |
} |
108 |
|
109 |
|
Lines 172-177
Link Here
|
172 |
jSeparator1 = new javax.swing.JSeparator(); |
173 |
jSeparator1 = new javax.swing.JSeparator(); |
173 |
insertionPointComboBox = new javax.swing.JComboBox(); |
174 |
insertionPointComboBox = new javax.swing.JComboBox(); |
174 |
sortUsesDependenciesCheckBox = new javax.swing.JCheckBox(); |
175 |
sortUsesDependenciesCheckBox = new javax.swing.JCheckBox(); |
|
|
176 |
sortIgnoreFieldsCheckBox = new javax.swing.JCheckBox(); |
175 |
|
177 |
|
176 |
setName(org.openide.util.NbBundle.getMessage(FmtCodeGeneration.class, "LBL_CodeGeneration")); // NOI18N |
178 |
setName(org.openide.util.NbBundle.getMessage(FmtCodeGeneration.class, "LBL_CodeGeneration")); // NOI18N |
177 |
setOpaque(false); |
179 |
setOpaque(false); |
Lines 274-279
Link Here
|
274 |
} |
276 |
} |
275 |
}); |
277 |
}); |
276 |
|
278 |
|
|
|
279 |
sortIgnoreFieldsCheckBox.setSelected(true); |
280 |
org.openide.awt.Mnemonics.setLocalizedText(sortIgnoreFieldsCheckBox, org.openide.util.NbBundle.getMessage(FmtCodeGeneration.class, "FmtCodeGeneration.sortIgnoreFieldsCheckBox.text")); // NOI18N |
281 |
sortIgnoreFieldsCheckBox.setEnabled(false); |
282 |
sortIgnoreFieldsCheckBox.addActionListener(new java.awt.event.ActionListener() { |
283 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
284 |
sortIgnoreFieldsCheckBoxActionPerformed(evt); |
285 |
} |
286 |
}); |
287 |
|
277 |
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
288 |
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
278 |
this.setLayout(layout); |
289 |
this.setLayout(layout); |
279 |
layout.setHorizontalGroup( |
290 |
layout.setHorizontalGroup( |
Lines 292-298
Link Here
|
292 |
.addGap(0, 0, Short.MAX_VALUE)) |
303 |
.addGap(0, 0, Short.MAX_VALUE)) |
293 |
.addGroup(layout.createSequentialGroup() |
304 |
.addGroup(layout.createSequentialGroup() |
294 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) |
305 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) |
295 |
.addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING) |
|
|
296 |
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() |
306 |
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() |
297 |
.addComponent(insertionPointLabel) |
307 |
.addComponent(insertionPointLabel) |
298 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
308 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
Lines 312-319
Link Here
|
312 |
.addComponent(visDownButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) |
322 |
.addComponent(visDownButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) |
313 |
.addComponent(visUpButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))) |
323 |
.addComponent(visUpButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))) |
314 |
.addComponent(sortMembersAlphaCheckBox, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
324 |
.addComponent(sortMembersAlphaCheckBox, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
315 |
.addComponent(sortUsesDependenciesCheckBox, javax.swing.GroupLayout.Alignment.LEADING)) |
325 |
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() |
|
|
326 |
.addGap(21, 21, 21) |
327 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
328 |
.addComponent(sortIgnoreFieldsCheckBox) |
329 |
.addComponent(sortUsesDependenciesCheckBox)))) |
316 |
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
330 |
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
|
331 |
.addComponent(jSeparator1) |
317 |
); |
332 |
); |
318 |
layout.setVerticalGroup( |
333 |
layout.setVerticalGroup( |
319 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
334 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
Lines 352-360
Link Here
|
352 |
.addComponent(keepGASTogetherCheckBox) |
367 |
.addComponent(keepGASTogetherCheckBox) |
353 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
368 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
354 |
.addComponent(sortMembersAlphaCheckBox) |
369 |
.addComponent(sortMembersAlphaCheckBox) |
355 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
370 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
356 |
.addComponent(sortUsesDependenciesCheckBox) |
371 |
.addComponent(sortUsesDependenciesCheckBox) |
357 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
372 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
373 |
.addComponent(sortIgnoreFieldsCheckBox) |
374 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
358 |
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE) |
375 |
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE) |
359 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
376 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
360 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
377 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
Lines 417-425
Link Here
|
417 |
private void sortUsesDependenciesCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sortUsesDependenciesCheckBoxActionPerformed |
434 |
private void sortUsesDependenciesCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sortUsesDependenciesCheckBoxActionPerformed |
418 |
}//GEN-LAST:event_sortUsesDependenciesCheckBoxActionPerformed |
435 |
}//GEN-LAST:event_sortUsesDependenciesCheckBoxActionPerformed |
419 |
|
436 |
|
|
|
437 |
private void sortIgnoreFieldsCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sortIgnoreFieldsCheckBoxActionPerformed |
438 |
}//GEN-LAST:event_sortIgnoreFieldsCheckBoxActionPerformed |
439 |
|
420 |
private void enableDependencyOrder() { |
440 |
private void enableDependencyOrder() { |
421 |
boolean b = sortByVisibilityCheckBox.isSelected()|| sortMembersAlphaCheckBox.isSelected(); |
441 |
boolean b = sortByVisibilityCheckBox.isSelected()|| sortMembersAlphaCheckBox.isSelected(); |
422 |
sortUsesDependenciesCheckBox.setEnabled(b); |
442 |
sortUsesDependenciesCheckBox.setEnabled(b); |
|
|
443 |
sortIgnoreFieldsCheckBox.setEnabled(b); |
423 |
} |
444 |
} |
424 |
|
445 |
|
425 |
private void enableMembersOrderButtons() { |
446 |
private void enableMembersOrderButtons() { |
Lines 476-481
Link Here
|
476 |
private javax.swing.JCheckBox parametersFinalCheckBox; |
497 |
private javax.swing.JCheckBox parametersFinalCheckBox; |
477 |
private javax.swing.JCheckBox qualifyFieldAccessCheckBox; |
498 |
private javax.swing.JCheckBox qualifyFieldAccessCheckBox; |
478 |
private javax.swing.JCheckBox sortByVisibilityCheckBox; |
499 |
private javax.swing.JCheckBox sortByVisibilityCheckBox; |
|
|
500 |
private javax.swing.JCheckBox sortIgnoreFieldsCheckBox; |
479 |
private javax.swing.JCheckBox sortMembersAlphaCheckBox; |
501 |
private javax.swing.JCheckBox sortMembersAlphaCheckBox; |
480 |
private javax.swing.JCheckBox sortUsesDependenciesCheckBox; |
502 |
private javax.swing.JCheckBox sortUsesDependenciesCheckBox; |
481 |
private javax.swing.JButton upButton; |
503 |
private javax.swing.JButton upButton; |