Added a new extension point called "PageDecorator" to add HTML fragments to all pages.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11223 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-08-05 00:22:58 +00:00
1 parent 4678d49657
commit 862b79ccf1
5 files changed
+111

No files matched your search

+8
View File
@@ -17,6 +17,7 @@ import hudson.model.Project;
import hudson.model.Run;
import hudson.model.TopLevelItem;
import hudson.model.View;
import hudson.model.PageDecorator;
import hudson.search.SearchableModelObject;
import hudson.security.AccessControlled;
import hudson.security.AuthorizationStrategy;
@@ -932,5 +933,12 @@ public class Functions {
return null;
}
/**
* Gets all the {@link PageDecorator}s.
*/
public static List<PageDecorator> getPageDecorators() {
return (List)PageDecorator.ALL;
}
private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+");
}