list.jsp revision 1111
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
0N/A--%><%@ page import = "javax.servlet.*,
1108N/A<script type="text/javascript">/* <![CDATA[ */
962N/A this.innerHTML='';
1108N/A contents += "<b><a href=\"#\" onclick=\"javascript:add_highlight();return false;\" title=\"Add highlight\">Highlight</a></b><br>";
1108N/A for (var i = 0; i < class_names.length; i++)
1108N/A if (this.className == class_names[i])
1108N/A var fname = this.innerHTML;
1108N/A var line = this.getAttribute("ln");
1108N/A this.innerHTML + "</a><br>";
1108N/A for (var i = 0; i < class_names.length; i++)
1108N/Adocument.sym_div_top = 100;
1108N/A document.sym_div_left = $(window).width() - (document.sym_div_width + document.sym_div_left_margin);
1108N/A return document.sym_div_left;
1108N/A document.sym_div_height = $(window).height() - document.sym_div_top - document.sym_div_height_margin;
1108N/A return document.sym_div_height;
1108N/A return document.sym_div_top;
1108N/A return document.sym_div_width;
1108N/A if (document.sym_div == null)
1108N/A document.sym_div.id = "sym_div";
1108N/A document.sym_div.className = "sym_list_style";
1108N/A document.sym_div.style.margin = "0px auto";
1108N/A document.sym_div.style.width = get_sym_div_width() + "px";
1108N/A document.sym_div.style.height = get_sym_div_height() + "px";
1108N/A document.sym_div.style.top = get_sym_div_top() + "px";
1108N/A document.sym_div.style.left = get_sym_div_left() + "px";
1108N/A document.sym_div.innerHTML = get_sym_list_contents();
1108N/A if (document.sym_div_shown == 1)
1108N/A document.sym_div.className = "sym_list_style_hide";
1108N/A document.sym_div.style.height = get_sym_div_height() + "px";
1108N/A document.sym_div.style.width = get_sym_div_width() + "px";
1108N/A document.sym_div.style.top = get_sym_div_top() + "px";
1108N/A document.sym_div.style.left = get_sym_div_left() + "px";
1108N/A document.sym_div.className = "sym_list_style";
1108N/A if (document.sym_div_shown == 1)
1108N/A document.sym_div.style.left = get_sym_div_left() + "px";
1108N/A document.sym_div.style.height = get_sym_div_height() + "px";
1108N/A var tbox = document.getElementById('input_highlight');
1108N/A HighlightKeyword(tbox.value);
123N/A Project activeProject = Project.getProject(resourceFile);
896N/A//TODO: somehow integrate below with projects.jspf
123N/A Cookie[] cookies = request.getCookies();
867N/A for (String proj : cookie.getValue().split(",")) {
867N/A if (Project.getByDescription(proj) != null) {
867N/A project.add(proj);
867N/A// set this in case there is no project selected or current cookie doesn't contain current project from the link, so the rest of search works 100% :)
867N/A StringBuffer sproject=new StringBuffer(activeProject.getDescription()+",");
867N/A cookie.setPath(context + "/");
867N/A response.addCookie(cookie);
0N/A String[] files = resourceFile.list();
0N/A if(readMes != null && readMes.size() > 0) {
477N/A if (readmeFile.exists()) {
477N/A OpenGrokLogger.getLogger().log(Level.WARNING, "An error occured while reading/writing readme:", e);
335N/A response.sendError(404, "Revision not found");
202N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
0N/A Genre g = AnalyzerGuru.getGenre(a);
0N/A response.sendError(404, "Revision not found");
0N/A a = AnalyzerGuru.find(in);
0N/A g = AnalyzerGuru.getGenre(a);
335N/A %><div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
335N/A if (g == Genre.PLAIN) {
335N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
878N/A //annotation.writeTooltipMap(out); //not needed yet
335N/A } else if (g == Genre.IMAGE) {
1111N/A %><img src="<%=context+Constants.rawP+path%>?r=<%=rev%>"/><%
335N/A } else if (g == Genre.HTML) {
1111N/A %> Click <a href="<%=context+Constants.rawP+path%>?r=<%=rev%>">download <%=basename%></a><%
335N/A %> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
0N/A } else if(g == Genre.IMAGE) {
1111N/A %><div id="src"><img src="<%=context+Constants.rawP+path%>?r=<%=rev%>"/></div><%
1111N/A %><div id="src"> Binary file [Click <a href="<%=context+Constants.rawP+path%>?r=<%=rev%>">here</a> to download] </div><%
849N/A if (environment.isCompressXref() ) {
849N/A if (xrefFile.exists()) {
335N/A if (xrefFile.exists()) {
202N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
0N/A Genre g = AnalyzerGuru.getGenre(a);
0N/A a = AnalyzerGuru.find(bin);
0N/A g = AnalyzerGuru.getGenre(a);
0N/A if (g == Genre.IMAGE) {
1111N/A %><div id="src"><img src="<%=context+Constants.rawP+path%>"/></div><%
0N/A } else if( g == Genre.HTML) {
0N/A } else if(g == Genre.PLAIN) {
878N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
1111N/A %> Click <a href="<%=context+Constants.rawP+path%>">download <%=basename%></a><%