public ContentAssistEntry createProposal ( final String proposal , final String prefix , final ContentAssistContext context , final String kind , final Procedure1 < ? super ContentAssistEntry > init ) { boolean _isValidProposal = this . isValidProposal ( proposal , prefix , context ) ; if ( _isValidProposal ) { final ContentAssistEntry result = new ContentAssistEntry ( ) ; result . setProposal ( proposal ) ; result . setPrefix ( prefix ) ; if ( ( kind != null ) ) { result . setKind ( kind ) ; } if ( ( init != null ) ) { init . apply ( result ) ; } return result ; } return null ; }
Returns an entry with the given proposal and prefix or null if the proposal is not valid . If it is valid the initializer function is applied to it .