private void initLabels(){
  CompareConfiguration cc=getCompareConfiguration();
  ITypedElement left=this.left;
  ITypedElement right=this.right;
  ITypedElement ancestor=this.ancestor;
  if (left != null) {
    leftLabel=getLabel(left);
    cc.setLeftLabel(leftLabel);
    cc.setLeftImage(leftImage);
  }
  if (right != null) {
    rightLabel=getLabel(right);
    cc.setRightLabel(rightLabel);
    cc.setRightImage(rightImage);
  }
  if (ancestor != null) {
    cc.setAncestorLabel(getLabel(ancestor));
    cc.setAncestorImage(ancestorImage);
  }
  String title;
  if (ancestor != null) {
    title=Policy.bind("SVNCompareEditorInput.titleAncestor",new Object[]{guessResourceName(),getVersionLabel(ancestor),getVersionLabel(left),getVersionLabel(right)});
  }
 else {
    String leftName=null;
    if (left != null)     leftName=left.getName();
    String rightName=null;
    if (right != null)     rightName=right.getName();
    if (leftName != null && !leftName.equals(rightName)) {
      title=Policy.bind("SVNCompareEditorInput.titleNoAncestorDifferent",new Object[]{leftName,getVersionLabel(left),rightName,getVersionLabel(right)});
    }
 else {
      title=Policy.bind("SVNCompareEditorInput.titleNoAncestor",new Object[]{guessResourceName(),getVersionLabel(left),getVersionLabel(right)});
    }
  }
  setTitle(title);
}

private void initLabels ( ) { CompareConfiguration cc = getCompareConfiguration ( ) ; ITypedElement left = this . left ; ITypedElement right = this . right ; ITypedElement ancestor = this . ancestor ; if ( left != null ) { leftLabel = getLabel ( left ) ; cc . setLeftLabel ( leftLabel ) ; cc . setLeftImage ( leftImage ) ; } if ( right != null ) { rightLabel = getLabel ( right ) ; cc . setRightLabel ( rightLabel ) ; cc . setRightImage ( rightImage ) ; } if ( ancestor != null ) { cc . setAncestorLabel ( getLabel ( ancestor ) ) ; cc . setAncestorImage ( ancestorImage ) ; } String title ; if ( ancestor != null ) { title = Policy . bind ( "SVNCompareEditorInput.titleAncestor" , new Object [ ] { guessResourceName ( ) , getVersionLabel ( ancestor ) , getVersionLabel ( left ) , getVersionLabel ( right ) } ) ; } else { String leftName = null ; if ( left != null ) leftName = left . getName ( ) ; String rightName = null ; if ( right != null ) rightName = right . getName ( ) ; if ( leftName != null && ! leftName . equals ( rightName ) ) { title = Policy . bind ( "SVNCompareEditorInput.titleNoAncestorDifferent" , new Object [ ] { leftName , getVersionLabel ( left ) , rightName , getVersionLabel ( right ) } ) ; } else { title = Policy . bind ( "SVNCompareEditorInput.titleNoAncestor" , new Object [ ] { guessResourceName ( ) , getVersionLabel ( left ) , getVersionLabel ( right ) } ) ; } } setTitle ( title ) ; }
sets up the title and pane labels for the comparison view .
