IResource[] shared = getSharedResources(resources); if (shared.length == 0) { return; } manager.commit(shared, comment[0], Policy.subMonitorFor(monitor,ticks));
manager.commit(resourcesToCommit, commitComment, Policy.subMonitorFor(monitor,ticks));
			public void execute(IProgressMonitor monitor) throws  InvocationTargetException {				try {					// execute the add and commit in a single SVN runnable so sync changes are batched					SVNProviderPlugin.run(						new ISVNRunnable() {							public void run(IProgressMonitor monitor) throws SVNException {								try {									int ticks=100;									monitor.beginTask(null, ticks);									if (resourcesToBeAdded[0].length > 0) {										int addTicks = 20;										manager.add(resourcesToBeAdded[0], Policy.subMonitorFor(monitor, addTicks));										ticks-=addTicks;									}									IResource[] shared = getSharedResources(resources);									if (shared.length == 0) {										return;									}									manager.commit(shared, comment[0], Policy.subMonitorFor(monitor,ticks));									for (int i = 0; i < resources.length; i++) {										IResource projectHandle = resources[i].getProject();										projectHandle.refreshLocal(IResource.DEPTH_INFINITE, monitor);									}								} catch (TeamException e) {									throw SVNException.wrapException(e);								} catch (CoreException e) {									throw SVNException.wrapException(e);								}							}						}, monitor);				} catch (SVNException e) {					throw new InvocationTargetException(e);				} finally {					monitor.done();				}			}