@ CheckForNull protected AbstractMarkerAnnotationModel getModel ( ) { if ( editor == null ) { return null ; } IDocumentProvider provider = editor . getDocumentProvider ( ) ; IAnnotationModel model = provider . getAnnotationModel ( editor . getEditorInput ( ) ) ; if ( model instanceof AbstractMarkerAnnotationModel ) { return ( AbstractMarkerAnnotationModel ) model ; } return null ; }
Retrieves the AbstractMarkerAnnontationsModel from the editor .