menu.jspf revision 8d5daad4d9da04018b562f0dd12044f5f53c1a66
4406N/ASee LICENSE.txt included in this distribution for the specific
4406N/Afile and include the License file at LICENSE.txt.
5680N/A--%><%@page import="java.util.TreeSet"%>
4406N/A<%@page import="java.util.Set"%>
4406N/A<%@page import="java.util.LinkedList"%>
4406N/A<%@page import="org.opensolaris.opengrok.configuration.Group"%>
4406N/A<%@page import="org.opensolaris.opengrok.web.ProjectHelper"%>
4406N/A<%@page import="org.opensolaris.opengrok.web.SearchHelper"%>
4406N/A<%@page import="java.util.Map"%>
/* ---------------------- menu.jspf start --------------------- */
// PageConfig cfg = PageConfig.get(request);
ProjectHelper ph = ProjectHelper.getInstance(cfg);
Set<Project> projects = ph.getAllProjects();
int projectsSize = ph.getAllUngrouped().size();
for (Group group : ph.getGroups()) {
projectsSize += ph.getAllGrouped(group).size();
QueryBuilder queryParams = cfg.getQueryBuilder();
if (projects.size() != 0) {
String name = p.getDescription();
pMap.put(name, esc);
jsProjects.append('\'');
for (String name : cfg.getRequestedProjects()) {
jsProjects.append(name).append("','");
if (jsProjects.length() > 1) {
<script type="text/javascript">/* <![CDATA[ */
%>';document.domReady.push(function() { domReadyMenu(); });
<td><label for="s1" title="The text token(s) or other fields to be found (lucene query, this is not full text!)">Full Search</label></td>
<td><label for="s2" title="Definition of function/variable/class">Definition</label></td>
<td><label for="s3" title="Usage of function/variable/class">Symbol</label></td>
<td><label for="s4" title="path or parts of it, no need to use dividers">File Path</label></td>
String selection = queryParams.getType();
if (d.getKey().equals(selection)) {
if (projects.size() != 0) {
String imgDir = cfg.getCssDir() + "/img/";
imgDir %>transparent_pixel.gif)
value="<%= cfg.getRequestedProjectsAsString()
alt="" src="<%= imgDir %>button2.png"/>
if (projects.size() != 0) {
Math.min(15, projectsSize) %>"><%
SortedSet<String> pRequested = cfg.getRequestedProjects();
for ( Group group : ph.getGroups() ) {
Set<Project> groupProjects = ph.getAllGrouped(group);
if ( groupProjects.size() > 0) {
%><optgroup label="<%= group.getName() %>"><%
%><option value="<%= p.getDescription() %>"<%
for ( Project p : ph.getAllUngrouped()) {
%><option value="<%= p.getDescription() %>"<%
/* ---------------------- menu.jspf end --------------------- */