added views to the search index.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4148 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-08 18:44:30 +00:00
1 parent 965f31ed98
commit e4c2bb30c9
1 file changed
+4
@@ -687,6 +687,10 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
.add(new CollectionSearchIndex() {// for computers
protected Computer get(String key) { return getComputer(key); }
protected Collection<Computer> all() { return computers.values(); }
})
.add(new CollectionSearchIndex() {// for views
protected View get(String key) { return getView(key); }
protected Collection<ListView> all() { return views; }
});
}