public void invertSelectedRelations(){
  ISelection selection=viewer.getSelection();
  if (!(selection instanceof IStructuredSelection)) {
    return;
  }
  IStructuredSelection structuredSelection=(IStructuredSelection)selection;
  Collection<Relation> inverse=computeInverseRelations(getTableRelations(),structuredSelection);
  StructuredSelection nextSelection=new StructuredSelection(inverse.toArray());
  viewer.setSelection(nextSelection,true);
}

public void invertSelectedRelations ( ) { ISelection selection = viewer . getSelection ( ) ; if ( ! ( selection instanceof IStructuredSelection ) ) { return ; } IStructuredSelection structuredSelection = ( IStructuredSelection ) selection ; Collection < Relation > inverse = computeInverseRelations ( getTableRelations ( ) , structuredSelection ) ; StructuredSelection nextSelection = new StructuredSelection ( inverse . toArray ( ) ) ; viewer . setSelection ( nextSelection , true ) ; }
invert the set of relations selected in the table . don ' t change the state of any relation .
