1281N/A<%--
1186N/A$Id$
1186N/A
0N/ACDDL HEADER START
0N/A
0N/AThe contents of this file are subject to the terms of the
1281N/ACommon Development and Distribution License (the "License").
0N/AYou may not use this file except in compliance with the License.
0N/A
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Alanguage governing permissions and limitations under the License.
0N/A
0N/AWhen distributing Covered Code, include this CDDL HEADER in each
0N/Afile and include the License file at LICENSE.txt.
0N/AIf applicable, add the following below this CDDL HEADER, with the
0N/Afields enclosed by brackets "[]" replaced with your own identifying
0N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
0N/A
0N/ACDDL HEADER END
0N/A
928N/ACopyright 2010 Sun Microsystems, Inc. All rights reserved.
0N/AUse is subject to license terms.
0N/A
1186N/APortions Copyright 2011 Jens Elkner.
1186N/A
1186N/A--%><%@page import="
1186N/Ajava.io.FileReader,
1478N/Ajava.util.EnumSet,
1186N/Ajava.util.logging.Level,
1417N/Ajava.util.logging.Logger,
1186N/A
1186N/Aorg.apache.lucene.search.Query,
1478N/Aorg.opensolaris.opengrok.Info,
1478N/Aorg.opensolaris.opengrok.configuration.Project,
986N/Aorg.opensolaris.opengrok.search.QueryBuilder,
1478N/Aorg.opensolaris.opengrok.search.context.Context,
1478N/Aorg.opensolaris.opengrok.web.PageConfig,
1478N/Aorg.opensolaris.opengrok.web.Prefix,
1478N/Aorg.opensolaris.opengrok.web.Util,
1478N/Aorg.opensolaris.opengrok.web.WebappListener"
1281N/A%><%@include
1186N/A
1478N/Afile="mast.jspf"
0N/A
1186N/A%><%
1186N/A/* ---------------------- more.jsp start --------------------- */
1186N/A{
1281N/A cfg = PageConfig.get(request);
1281N/A QueryBuilder qbuilder = cfg.getQueryBuilder();
986N/A
1281N/A try {
1281N/A Query tquery = qbuilder.build();
1281N/A if (tquery != null) {
1281N/A Context sourceContext = new Context(tquery, qbuilder.getQueries());
1469N/A%><p><span class="pagetitle">Lines Matching <b><%=
1469N/A Util.htmlize(tquery.toString()) %></b></span></p>
1186N/A<div id="more" style="line-height:1.5em;">
1281N/A <pre><%
1281N/A sourceContext.getContext(new FileReader(cfg.getResourceFile()), out,
1281N/A request.getContextPath() + Prefix.XREF_P, null, cfg.getPath(),
1281N/A null, false, null);
1281N/A %></pre>
1186N/A</div><%
1281N/A }
1281N/A } catch (Exception e) {
1417N/A Logger.getLogger("more.jsp").log(Level.WARNING, e.getMessage());
1281N/A }
1186N/A}
1186N/A/* ---------------------- more.jsp end --------------------- */
1186N/A%><%@
987N/A
1186N/Ainclude file="foot.jspf"
0N/A
1186N/A%>