public static IStatus checkInSync(IResource[] resources) { IStatus result= null; for (int i= 0; i < resources.length; i++) { IResource resource= resources[i]; if (!resource.isSynchronized(IResource.DEPTH_INFINITE)) { result= addOutOfSync(result, resource); } } if (result != null) return result; return new Status(IStatus.OK, JavaPlugin.getPluginId(), IStatus.OK, "", null);
public static IStatus checkInSync(IResource resource) { return checkInSync(new IResource[] {resource});
	public static IStatus checkInSync(IResource[] resources) {		IStatus result= null;		for (int i= 0; i < resources.length; i++) {			IResource resource= resources[i];			if (!resource.isSynchronized(IResource.DEPTH_INFINITE)) {				result= addOutOfSync(result, resource);			}					}		if (result != null)			return result;		return new Status(IStatus.OK, JavaPlugin.getPluginId(), IStatus.OK, "", null); //$NON-NLS-1$			}