IResource[] unadded = getUnaddedResources(resources, monitor); resourcesToBeAdded[0] = promptForResourcesToBeAdded(manager, unadded); if (resourcesToBeAdded[0] == null) { return;
IResource[] modified = getModifiedResources(resources, monitor);   if (modified.length == 0) { MessageDialog.openInformation(getShell(), Policy.bind("CommitDialog.title"), Policy.bind("CommitDialog.noChanges")); commit = false; } else commit = confirmCommit(modified);    if (commit) { List toBeAddedList = new ArrayList(); for (int i = 0; i < resourcesToCommit.length; i++) { IResource resource = resourcesToCommit[i]; ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource); if (!svnResource.isManaged()) toBeAddedList.add(resource); } resourcesToBeAdded[0] = new IResource[toBeAddedList.size()]; toBeAddedList.toArray(resourcesToBeAdded[0]);
			public void run(IProgressMonitor monitor) throws InvocationTargetException {				try {					// search for any non-added, non-ignored resources in the selection					IResource[] unadded = getUnaddedResources(resources, monitor);					resourcesToBeAdded[0] = promptForResourcesToBeAdded(manager, unadded);					if (resourcesToBeAdded[0] == null) {						return;					}					comment[0] = promptForComment(manager, resources);				} catch (TeamException e) {					throw new InvocationTargetException(e);				}			}