public List<IResource> chooseResources(){
  if (open() == Window.OK) {
    List<IResource> resources=new ArrayList<IResource>();
    for (    Object obj : getResult()) {
      resources.add((IResource)obj);
    }
    return resources;
  }
  return null;
}

public List < IResource > chooseResources ( ) { if ( open ( ) == Window . OK ) { List < IResource > resources = new ArrayList < IResource > ( ) ; for ( Object obj : getResult ( ) ) { resources . add ( ( IResource ) obj ) ; } return resources ; } return null ; }
return the selected resource ( s ) as a list of iresource objects .
