1.1 --- a/src/share/classes/javax/tools/ToolProvider.java Thu Nov 15 19:54:20 2012 -0800 1.2 +++ b/src/share/classes/javax/tools/ToolProvider.java Thu Nov 15 23:07:24 2012 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -102,6 +102,19 @@ 1.11 return instance().getSystemTool(JavaCompiler.class, defaultJavaCompilerName); 1.12 } 1.13 1.14 + private static final String defaultDocumentationToolName 1.15 + = "com.sun.tools.javadoc.api.JavadocTool"; 1.16 + 1.17 + /** 1.18 + * Gets the Java™ programming language documentation tool provided 1.19 + * with this platform. 1.20 + * @return the documentation tool provided with this platform or 1.21 + * {@code null} if no documentation tool is provided 1.22 + */ 1.23 + public static DocumentationTool getSystemDocumentationTool() { 1.24 + return instance().getSystemTool(DocumentationTool.class, defaultDocumentationToolName); 1.25 + } 1.26 + 1.27 /** 1.28 * Returns the class loader for tools provided with this platform. 1.29 * This does not include user-installed tools. Use the