Class ProjectSettingsFiles
java.lang.Object
io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFiles
- All Implemented Interfaces:
Iterable<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>
public class ProjectSettingsFiles
extends Object
implements Iterable<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>
A collection of
project setting files.- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionProjectSettingsFiles(Collection<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile> files, io.spring.javaformat.eclipse.projectsettings.ProjectProperties projectProperties) Create a newProjectSettingsFilesinstances with the specified files. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Apply the settings files to the given eclipse project.Iterator<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ProjectSettingsFiles
public ProjectSettingsFiles(Collection<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile> files, io.spring.javaformat.eclipse.projectsettings.ProjectProperties projectProperties) Create a newProjectSettingsFilesinstances with the specified files.- Parameters:
files- the project settings filesprojectProperties- project properties
-
-
Method Details
-
iterator
-
applyToProject
public void applyToProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException, org.eclipse.core.runtime.CoreException Apply the settings files to the given eclipse project.- Parameters:
project- the project to apply the settings tomonitor- a progress monitor- Throws:
IOException- on IO errororg.eclipse.core.runtime.CoreException- on eclipse file creation failure
-