public Object getDynamic ( final String link , final StaplerRequest request , final StaplerResponse response ) { if ( "configureDefaults" . equals ( link ) ) { Ancestor ancestor = request . findAncestor ( AbstractProject . class ) ; if ( ancestor . getObject ( ) instanceof AbstractProject ) { AbstractProject < ? , ? > project = ( AbstractProject < ? , ? > ) ancestor . getObject ( ) ; return new DefaultGraphConfigurationView ( new GraphConfiguration ( WarningsProjectAction . getAllGraphs ( ) ) , project , "warnings" , new NullBuildHistory ( ) , project . getAbsoluteUrl ( ) + "/descriptorByName/WarningsPublisher/configureDefaults/" ) ; } } return null ; }
Returns the graph configuration screen .