private void textSelectionChanged(ITextSelection selection){
  lastSelectionWasText=true;
  AnnotateBlock match=null;
  for (Iterator iterator=svnAnnotateBlocks.iterator(); iterator.hasNext(); ) {
    AnnotateBlock block=(AnnotateBlock)iterator.next();
    if (block.contains(selection.getStartLine())) {
      match=block;
      break;
    }
  }
  if (match == null) {
    return;
  }
  StructuredSelection listSelection=new StructuredSelection(match);
  viewer.setSelection(listSelection,true);
}

private void textSelectionChanged ( ITextSelection selection ) { lastSelectionWasText = true ; AnnotateBlock match = null ; for ( Iterator iterator = svnAnnotateBlocks . iterator ( ) ; iterator . hasNext ( ) ; ) { AnnotateBlock block = ( AnnotateBlock ) iterator . next ( ) ; if ( block . contains ( selection . getStartLine ( ) ) ) { match = block ; break ; } } if ( match == null ) { return ; } StructuredSelection listSelection = new StructuredSelection ( match ) ; viewer . setSelection ( listSelection , true ) ; }
a selection event in the annotate source editor
