question: 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 ( ) ] ) ; }
target:  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.