public ContentAssistEntry createSnippet ( final String proposal , final String label , final ContentAssistContext context ) { final Procedure1 < ContentAssistEntry > _function = ( ContentAssistEntry it ) -> { it . setLabel ( label ) ; } ; return this . createProposal ( proposal , context . getPrefix ( ) , context , ContentAssistEntry . KIND_SNIPPET , _function ) ; }
Returns an entry of kind snippet with the given proposal and label and the prefix from the context or null if the proposal is not valid .