1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java Thu Nov 15 14:41:31 2012 -0800 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java Thu Nov 15 19:54:20 2012 -0800 1.3 @@ -28,9 +28,13 @@ 1.4 import java.net.*; 1.5 import java.util.*; 1.6 1.7 +import javax.tools.JavaFileManager; 1.8 + 1.9 import com.sun.javadoc.*; 1.10 import com.sun.tools.doclets.internal.toolkit.*; 1.11 import com.sun.tools.doclets.internal.toolkit.util.*; 1.12 +import com.sun.tools.javac.file.JavacFileManager; 1.13 +import com.sun.tools.javac.util.Context; 1.14 1.15 /** 1.16 * Configure the output based on the command line options. 1.17 @@ -195,6 +199,7 @@ 1.18 /** 1.19 * Return the build date for the doclet. 1.20 */ 1.21 + @Override 1.22 public String getDocletSpecificBuildDate() { 1.23 return BUILD_DATE; 1.24 } 1.25 @@ -205,6 +210,7 @@ 1.26 * 1.27 * @param options The array of option names and values. 1.28 */ 1.29 + @Override 1.30 public void setSpecificDocletOptions(String[][] options) { 1.31 for (int oi = 0; oi < options.length; ++oi) { 1.32 String[] os = options[oi]; 1.33 @@ -323,6 +329,7 @@ 1.34 /** 1.35 * {@inheritDoc} 1.36 */ 1.37 + @Override 1.38 public boolean validOptions(String options[][], 1.39 DocErrorReporter reporter) { 1.40 boolean helpfile = false; 1.41 @@ -411,6 +418,7 @@ 1.42 /** 1.43 * {@inheritDoc} 1.44 */ 1.45 + @Override 1.46 public MessageRetriever getDocletSpecificMsg() { 1.47 return standardmessage; 1.48 } 1.49 @@ -480,6 +488,7 @@ 1.50 /** 1.51 * {@inheritDoc} 1.52 */ 1.53 + @Override 1.54 public WriterFactory getWriterFactory() { 1.55 return new WriterFactoryImpl(this); 1.56 } 1.57 @@ -487,6 +496,7 @@ 1.58 /** 1.59 * {@inheritDoc} 1.60 */ 1.61 + @Override 1.62 public Comparator<ProgramElementDoc> getMemberComparator() { 1.63 return null; 1.64 } 1.65 @@ -494,10 +504,22 @@ 1.66 /** 1.67 * {@inheritDoc} 1.68 */ 1.69 + @Override 1.70 public Locale getLocale() { 1.71 if (root instanceof com.sun.tools.javadoc.RootDocImpl) 1.72 return ((com.sun.tools.javadoc.RootDocImpl)root).getLocale(); 1.73 else 1.74 return Locale.getDefault(); 1.75 } 1.76 + 1.77 + /** 1.78 + * {@inheritDoc} 1.79 + */ 1.80 + @Override 1.81 + public JavaFileManager getFileManager() { 1.82 + if (root instanceof com.sun.tools.javadoc.RootDocImpl) 1.83 + return ((com.sun.tools.javadoc.RootDocImpl)root).getFileManager(); 1.84 + else 1.85 + return new JavacFileManager(new Context(), false, null); 1.86 + } 1.87 }