oburn 2003/03/10 21:15:27
Modified: src/java/org/apache/log4j/chainsaw PreferencesDialog.java
Log:
Patch to fix Checkstyle errors
Revision Changes Path
1.3 +42 -3
jakarta-log4j/src/java/org/apache/log4j/chainsaw/PreferencesDialog.java
Index: PreferencesDialog.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/PreferencesDialog.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PreferencesDialog.java 11 Mar 2003 03:59:20 -0000 1.2
+++ PreferencesDialog.java 11 Mar 2003 05:15:27 -0000 1.3
@@ -83,9 +83,25 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Raymond DeCampo</a>
*/
class PreferencesDialog extends JDialog {
+
+ /**
+ * The one and only Preferences reference
+ */
private static final Preferences PREFS = Preferences.getInstance();
+
+ /**
+ * The ColumnModel to use to save/load stuff from
+ */
private final MyTableColumnModel mColModel;
+
+ /**
+ * TextField to enter the max # of files available on MRU list
+ */
private final JTextField mMaxFilesField = new JTextField(6);
+
+ /**
+ * CheckBox used to indicate whether the filters should be saved
+ */
private final JCheckBox mSaveFilters = new JCheckBox("Save filters?");
/** Map relating TableColumns to JCheckBoxes */
@@ -183,7 +199,10 @@
setLocationRelativeTo(owner);
}
- /* Get the columns from the model in alphabetical order */
+ /**
+ * Get the columns from the model in alphabetical order
+ * @return Iterator of available columns
+ */
private Iterator getAvailableColumns() {
SortedSet cols =
new TreeSet(
@@ -201,12 +220,22 @@
return cols.iterator();
}
- /** OK button handler */
+ /**
+ * OK button handler
+ */
private class OKAction extends AbstractAction {
+
+ /**
+ * Constructor
+ */
public OKAction() {
putValue(NAME, "OK");
}
+ /**
+ * ActionPerformed handler when they press Ok
+ * @param ae ActionEvent when the button is pressed
+ */
public void actionPerformed(ActionEvent ae) {
// File preferences
try {
@@ -246,12 +275,22 @@
}
}
- /** Cancel button handler */
+ /**
+ * Cancel button handler
+ */
private class CancelAction extends AbstractAction {
+
+ /**
+ * Constructor for the action
+ */
public CancelAction() {
putValue(NAME, "Cancel");
}
+ /**
+ * ActionEvent handler
+ * @param ae ActionEvent when they press Cancel
+ */
public void actionPerformed(ActionEvent ae) {
hide();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]