public void contributeToViewMenu ( IMenuManager menu ) { if ( ! fInViewMenu ) return ; final String filters = "filters" ; //$NON-NLS-1$ if ( menu . find ( filters ) != null ) { for ( int i = 0 ; i < fFilterActions . length ; i ++ ) { menu . prependToGroup ( filters , fFilterActions [ i ] ) ; } } else { for ( int i = 0 ; i < fFilterActions . length ; i ++ ) { menu . add ( fFilterActions [ i ] ) ; } } }
Adds the filter actions to the given menu manager .