1.1 --- a/src/share/classes/com/sun/tools/javac/util/Log.java Fri Feb 06 17:24:04 2009 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/util/Log.java Fri Feb 13 11:57:33 2009 +0000 1.3 @@ -93,17 +93,17 @@ 1.4 protected DiagnosticListener<? super JavaFileObject> diagListener; 1.5 1.6 /** 1.7 - * Formatter for diagnostics 1.8 + * Formatter for diagnostics. 1.9 */ 1.10 private DiagnosticFormatter<JCDiagnostic> diagFormatter; 1.11 1.12 /** 1.13 - * Keys for expected diagnostics 1.14 + * Keys for expected diagnostics. 1.15 */ 1.16 public Set<String> expectDiagKeys; 1.17 1.18 /** 1.19 - * JavacMessages object used for localization 1.20 + * JavacMessages object used for localization. 1.21 */ 1.22 private JavacMessages messages; 1.23 1.24 @@ -206,6 +206,18 @@ 1.25 return source == null ? null : source.getFile(); 1.26 } 1.27 1.28 + /** Get the current diagnostic formatter. 1.29 + */ 1.30 + public DiagnosticFormatter<JCDiagnostic> getDiagnosticFormatter() { 1.31 + return diagFormatter; 1.32 + } 1.33 + 1.34 + /** Set the current diagnostic formatter. 1.35 + */ 1.36 + public void setDiagnosticFormatter(DiagnosticFormatter<JCDiagnostic> diagFormatter) { 1.37 + this.diagFormatter = diagFormatter; 1.38 + } 1.39 + 1.40 /** Flush the logs 1.41 */ 1.42 public void flush() {