public IResource[] promptForMultiple() throws InterruptedException {
  List targetResources=new ArrayList();
  for (int i=0; i < resources.length; i++) {
    IResource resource=resources[i];
    if (condition.needsPrompt(resource) && confirmOverwrite) {
      if (confirmOverwrite(condition.promptMessage(resource))) {
        targetResources.add(resource);
      }
    }
 else {
      targetResources.add(resource);
    }
  }
  return (IResource[])targetResources.toArray(new IResource[targetResources.size()]);
}

public IResource [ ] promptForMultiple ( ) throws InterruptedException { List targetResources = new ArrayList ( ) ; for ( int i = 0 ; i < resources . length ; i ++ ) { IResource resource = resources [ i ] ; if ( condition . needsPrompt ( resource ) && confirmOverwrite ) { if ( confirmOverwrite ( condition . promptMessage ( resource ) ) ) { targetResources . add ( resource ) ; } } else { targetResources . add ( resource ) ; } } return ( IResource [ ] ) targetResources . toArray ( new IResource [ targetResources . size ( ) ] ) ; }
call to calculate and show prompt . if no resources satisfy the prompt condition a dialog won ' t be shown . the resources for which the user confirmed the action are returned .
