src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java

changeset 1372
78962d89f283
parent 1358
fc123bdeddb8
child 1383
b980e8e6aabf
equal deleted inserted replaced
1366:12cf6bfd8c05 1372:78962d89f283
60 * a version number instead of a date. 60 * a version number instead of a date.
61 */ 61 */
62 public static final String BUILD_DATE = System.getProperty("java.version"); 62 public static final String BUILD_DATE = System.getProperty("java.version");
63 63
64 /** 64 /**
65 * The name of the constant values file.
66 */
67 public static final String CONSTANTS_FILE_NAME = "constant-values.html";
68
69 /**
70 * Argument for command line option "-header". 65 * Argument for command line option "-header".
71 */ 66 */
72 public String header = ""; 67 public String header = "";
73 68
74 /** 69 /**
177 172
178 /** 173 /**
179 * First file to appear in the right-hand frame in the generated 174 * First file to appear in the right-hand frame in the generated
180 * documentation. 175 * documentation.
181 */ 176 */
182 public String topFile = ""; 177 public DocPath topFile = DocPath.empty;
183 178
184 /** 179 /**
185 * The classdoc for the class file getting generated. 180 * The classdoc for the class file getting generated.
186 */ 181 */
187 public ClassDoc currentcd = null; // Set this classdoc in the 182 public ClassDoc currentcd = null; // Set this classdoc in the
445 protected void setTopFile(RootDoc root) { 440 protected void setTopFile(RootDoc root) {
446 if (!checkForDeprecation(root)) { 441 if (!checkForDeprecation(root)) {
447 return; 442 return;
448 } 443 }
449 if (createoverview) { 444 if (createoverview) {
450 topFile = "overview-summary.html"; 445 topFile = DocPaths.OVERVIEW_SUMMARY;
451 } else { 446 } else {
452 if (packages.length == 1 && packages[0].name().equals("")) { 447 if (packages.length == 1 && packages[0].name().equals("")) {
453 if (root.classes().length > 0) { 448 if (root.classes().length > 0) {
454 ClassDoc[] classarr = root.classes(); 449 ClassDoc[] classarr = root.classes();
455 Arrays.sort(classarr); 450 Arrays.sort(classarr);
456 ClassDoc cd = getValidClass(classarr); 451 ClassDoc cd = getValidClass(classarr);
457 topFile = DirectoryManager.getPathToClass(cd); 452 topFile = DocPath.forClass(cd);
458 } 453 }
459 } else { 454 } else {
460 topFile = DirectoryManager.getPathToPackage(packages[0], 455 topFile = DocPath.forPackage(packages[0]).resolve(DocPaths.PACKAGE_SUMMARY);
461 "package-summary.html");
462 } 456 }
463 } 457 }
464 } 458 }
465 459
466 protected ClassDoc getValidClass(ClassDoc[] classarr) { 460 protected ClassDoc getValidClass(ClassDoc[] classarr) {

mercurial