protected boolean includesRulerLine ( Position position , IDocument document ) { if ( position != null && ruler != null ) { try { int markerLine = document . getLineOfOffset ( position . getOffset ( ) ) ; int line = ruler . getLineOfLastMouseButtonActivity ( ) ; if ( line == markerLine ) { return true ; } } catch ( BadLocationException x ) { FindbugsPlugin . getDefault ( ) . logException ( x , "Error getting marker line" ) ; } } return false ; }
Checks a Position in a document to see whether the line of last mouse activity falls within this region .