public static void update(IJavaProject project,List<OmniEclipseSourceDirectory> sourceFolders,IProgressMonitor monitor) throws CoreException {
  SourceFolderUpdater updater=new SourceFolderUpdater(project,sourceFolders);
  updater.updateClasspath(monitor);
}

public static void update ( IJavaProject project , List < OmniEclipseSourceDirectory > sourceFolders , IProgressMonitor monitor ) throws CoreException { SourceFolderUpdater updater = new SourceFolderUpdater ( project , sourceFolders ) ; updater . updateClasspath ( monitor ) ; }
updates the source folders on the target project .
