int nSelected = selected.size();
if (nSelected > 0) {
fResultPaths = new Path[nSelected];
for (int i = 0; i < nSelected; i++) {
BPVariableElement curr = (BPVariableElement) selected.get(i);
fResultPaths[i] = new Path(curr.getName());
File file = curr.getPath().toFile();
if (!file.exists()) {
status.setError(NewWizardMessages.NewVariableEntryDialog_info_notexists);
isValidSelection = false;
break;
}