src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/EnumConstantWriterImpl.java
changeset 48654 36f58bd6269f
parent 47850 4a28dc8a86c2
child 49551 0d4786e42471
equal deleted inserted replaced
48653:89111a0e6355 48654:36f58bd6269f
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   279      */
   279      */
   280     @Override
   280     @Override
   281     protected Content getNavSummaryLink(TypeElement typeElement, boolean link) {
   281     protected Content getNavSummaryLink(TypeElement typeElement, boolean link) {
   282         if (link) {
   282         if (link) {
   283             if (typeElement == null) {
   283             if (typeElement == null) {
   284                 return Links.createLink(SectionName.ENUM_CONSTANT_SUMMARY,
   284                 return links.createLink(SectionName.ENUM_CONSTANT_SUMMARY,
   285                         contents.navEnum);
   285                         contents.navEnum);
   286             } else {
   286             } else {
   287                 return links.createLink(
   287                 return links.createLink(
   288                         SectionName.ENUM_CONSTANTS_INHERITANCE,
   288                         SectionName.ENUM_CONSTANTS_INHERITANCE,
   289                         configuration.getClassName(typeElement), contents.navEnum);
   289                         configuration.getClassName(typeElement), contents.navEnum);
   297      * {@inheritDoc}
   297      * {@inheritDoc}
   298      */
   298      */
   299     @Override
   299     @Override
   300     protected void addNavDetailLink(boolean link, Content liNav) {
   300     protected void addNavDetailLink(boolean link, Content liNav) {
   301         if (link) {
   301         if (link) {
   302             liNav.addContent(Links.createLink(
   302             liNav.addContent(links.createLink(
   303                     SectionName.ENUM_CONSTANT_DETAIL,
   303                     SectionName.ENUM_CONSTANT_DETAIL,
   304                     contents.navEnum));
   304                     contents.navEnum));
   305         } else {
   305         } else {
   306             liNav.addContent(contents.navEnum);
   306             liNav.addContent(contents.navEnum);
   307         }
   307         }