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