for(JTabbedPane rulePackagePane : this.sortElementsRulePackages(this.editor.getRulePackages())) {
RulePackagePanel rulePackage = (RulePackagePanel) rulePackagePane;
String rulePackageName = rulePackage.toString();
String rulePackageLink = rulePackageName.replaceAll(" ", "").toLowerCase();
DocumentationPanel rPDocumentationPanel = rulePackage.getDocumentationPanel();
rulePackageLinks.append("<a href=\"" + rulePackageLink + "OverviewFrame.html\" target=\"rulesOverviewFrame\">" + rulePackageName + "</a><br>\n");
// --- rules overview frames - begin ---
JTabbedPane[] associatedRulePackages = this.sortElementsRules(rulePackage.getAssociatedRules());
this.rulePackageAssociations.put(rulePackageName, associatedRulePackages);
this.generateRulesOverviewFrame(rulePackageName, associatedRulePackages);
// --- rules overview frames - end ---
this.ruleFrameNavigation.append(" - <a href=\"" + rulePackageLink + "PackageDescription.html\">" + rulePackageName + "</a>");
this.allRules_content.append("<h2>Rule Package <a href=\"" + rulePackageLink + "PackageDescription.html\">" + rulePackageName + "</a></h2>\n");
this.allRules_content.append(rPDocumentationPanel.getShortDescription());
}
File.writeFile(this.targetDirectory + "packagesOverviewFrame.html", String.format(this.getTemplate("packagesOverviewFrame"), rulePackageLinks.toString()));
this.ruleFrameNavigation.append("</td><td align=\"right\"><a href=\"index.html?%s\" target=\"_top\">FRAMES</a> - <a href=\"%s\" target=\"_top\">NO FRAMES</a></td></tr></table>");