128 Content profilesDiv = HtmlTree.DIV(h2); |
128 Content profilesDiv = HtmlTree.DIV(h2); |
129 Content ul = new HtmlTree(HtmlTag.UL); |
129 Content ul = new HtmlTree(HtmlTag.UL); |
130 String profileName; |
130 String profileName; |
131 for (int i = 1; i < configuration.profiles.getProfileCount(); i++) { |
131 for (int i = 1; i < configuration.profiles.getProfileCount(); i++) { |
132 profileName = Profile.lookup(i).name; |
132 profileName = Profile.lookup(i).name; |
133 Content profileLinkContent = getTargetProfileLink("classFrame", |
133 // If the profile has valid packages to be documented, add it to the |
134 new StringContent(profileName), profileName); |
134 // profiles list on overview-summary.html page. |
135 Content li = HtmlTree.LI(profileLinkContent); |
135 if (configuration.shouldDocumentProfile(profileName)) { |
136 ul.addContent(li); |
136 Content profileLinkContent = getTargetProfileLink("classFrame", |
|
137 new StringContent(profileName), profileName); |
|
138 Content li = HtmlTree.LI(profileLinkContent); |
|
139 ul.addContent(li); |
|
140 } |
137 } |
141 } |
138 profilesDiv.addContent(ul); |
142 profilesDiv.addContent(ul); |
139 Content div = HtmlTree.DIV(HtmlStyle.contentContainer, profilesDiv); |
143 Content div = HtmlTree.DIV(HtmlStyle.contentContainer, profilesDiv); |
140 body.addContent(div); |
144 body.addContent(div); |
141 } |
145 } |