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

changeset 1568
5f0731e4e5e6
parent 1372
78962d89f283
child 1635
e0ef84e33167
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java	Wed Jan 16 12:00:21 2013 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java	Mon Jan 21 00:45:35 2013 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2013, 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 @@ -65,7 +65,7 @@
    1.11      public FrameOutputWriter(ConfigurationImpl configuration,
    1.12                               DocPath filename) throws IOException {
    1.13          super(configuration, filename);
    1.14 -    noOfPackages = configuration.packages.length;
    1.15 +        noOfPackages = configuration.packages.length;
    1.16      }
    1.17  
    1.18      /**
    1.19 @@ -135,7 +135,13 @@
    1.20      protected Content getFrameDetails() {
    1.21          HtmlTree frameset = HtmlTree.FRAMESET("20%,80%", null, "Documentation frame",
    1.22                  "top.loadFrames()");
    1.23 -        if (noOfPackages <= 1) {
    1.24 +        if (configuration.showProfiles) {
    1.25 +            HtmlTree leftFrameset = HtmlTree.FRAMESET(null, "30%,70%", "Left frames",
    1.26 +                "top.loadFrames()");
    1.27 +            addAllProfilesFrameTag(leftFrameset);
    1.28 +            addAllClassesFrameTag(leftFrameset);
    1.29 +            frameset.addContent(leftFrameset);
    1.30 +        } else if (noOfPackages <= 1) {
    1.31              addAllClassesFrameTag(frameset);
    1.32          } else if (noOfPackages > 1) {
    1.33              HtmlTree leftFrameset = HtmlTree.FRAMESET(null, "30%,70%", "Left frames",
    1.34 @@ -150,6 +156,17 @@
    1.35      }
    1.36  
    1.37      /**
    1.38 +     * Add the FRAME tag for the frame that lists all profiles.
    1.39 +     *
    1.40 +     * @param contentTree the content tree to which the information will be added
    1.41 +     */
    1.42 +    private void addAllProfilesFrameTag(Content contentTree) {
    1.43 +        HtmlTree frame = HtmlTree.FRAME(DocPaths.PROFILE_OVERVIEW_FRAME.getPath(),
    1.44 +                "profileListFrame", configuration.getText("doclet.All_Profiles"));
    1.45 +        contentTree.addContent(frame);
    1.46 +    }
    1.47 +
    1.48 +    /**
    1.49       * Add the FRAME tag for the frame that lists all packages.
    1.50       *
    1.51       * @param contentTree the content tree to which the information will be added

mercurial