list.jsp revision 1186
252N/ASee LICENSE.txt included in this distribution for the specific
252N/Afile and include the License file at LICENSE.txt.
252N/A if (request.getCharacterEncoding() == null) {
252N/A request.setCharacterEncoding("UTF-8");
252N/A cfg = PageConfig.get(request);
252N/A Annotation annotation = cfg.getAnnotation();
513N/A int r = annotation.getWidestRevision();
252N/A int a = annotation.getWidestAuthor();
252N/A%><script type="text/javascript">/* <![CDATA[ */
252N/Adocument.pageReady.push(function() { pageReadyList();});
790N/A cfg = PageConfig.get(request);
252N/A String rev = cfg.getRequestedRevision();
277N/A File resourceFile = cfg.getResourceFile();
252N/A String path = cfg.getPath();
252N/A String basename = resourceFile.getName();
252N/A // see cfg.resourceNotAvailable()
252N/A Project activeProject = Project.getProject(resourceFile);
252N/A String cookieValue = cfg.getRequestedProjectsAsString();
252N/A Set<String> projects = cfg.getRequestedProjects();
3985N/A cookieValue = cookieValue.length() == 0
3985N/A : activeProject.getDescription() + '/' + cookieValue;
3985N/A // TODO hmmm, projects.jspf doesn't set a path
790N/A response.addCookie(cookie);
252N/A DirectoryListing dl = new DirectoryListing(cfg.getEftarReader());
252N/A String[] files = cfg.getResourceFileList();
252N/A if (files.length != 0) {
252N/A File[] catfiles = cfg.findDataFiles(readMes);
252N/A for (int i=0; i < catfiles.length; i++) {
252N/A%><h3><%= readMes.get(i) %></h3>
790N/A } else if (rev.length() != 0) {
790N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
790N/A Genre g = AnalyzerGuru.getGenre(a);
252N/A in = HistoryGuru.getInstance()
252N/A error = e.getMessage();
252N/A a = AnalyzerGuru.find(in);
252N/A g = AnalyzerGuru.getGenre(a);
3996N/A rev.substring(2) %></span>
if (g == Genre.PLAIN) {
Annotation annotation = cfg.getAnnotation();
//annotation.writeTooltipMap(out);
AnalyzerGuru.writeXref(a, r, out, defs,
annotation, Project.getProject(resourceFile));
} else if (g == Genre.IMAGE) {
} else if (g == Genre.HTML) {
Util.dump(out, r);
error = e.getMessage();
try { r.close(); in = null;}
try { in.close(); }
} else if (g == Genre.IMAGE) {
if (!cfg.annotate()) {
xrefFile = cfg.findDataFile();
FileAnalyzerFactory a = AnalyzerGuru.find(basename);
Genre g = AnalyzerGuru.getGenre(a);
a = AnalyzerGuru.find(bin);
g = AnalyzerGuru.getGenre(a);
if (g == Genre.IMAGE) {
} else if ( g == Genre.HTML) {
Util.dump(out, r);
} else if (g == Genre.PLAIN) {
Definitions defs = IndexDatabase.getDefinitions(resourceFile);
Annotation annotation = cfg.getAnnotation();
AnalyzerGuru.writeXref(a, r, out, defs, annotation,
Project.getProject(resourceFile));
try { r.close(); bin = null; }
try { bin.close(); }
/* ---------------------- list.jsp end --------------------- */
include file="foot.jspf"