@Override
public List<IResource> run() {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell();
OverwriteDialog dialog = new OverwriteDialog(shell,
existingResources);
if (dialog.open() == Dialog.OK)
return dialog.getOverwriteAllowedResources();
return new ArrayList<IResource>();
}