Class ProjectSettingsFiles
- java.lang.Object
-
- io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFiles
-
- All Implemented Interfaces:
java.lang.Iterable<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>
public class ProjectSettingsFiles extends java.lang.Object implements java.lang.Iterable<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>A collection ofproject setting files.- Author:
- Phillip Webb
-
-
Constructor Summary
Constructors Constructor Description ProjectSettingsFiles(java.util.Collection<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile> files, io.spring.javaformat.eclipse.projectsettings.ProjectProperties projectProperties)Create a newProjectSettingsFilesinstances with the specified files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)Apply the settings files to the given eclipse project.java.util.Iterator<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>iterator()
-
-
-
Constructor Detail
-
ProjectSettingsFiles
public ProjectSettingsFiles(java.util.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 Detail
-
iterator
public java.util.Iterator<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile>
-
applyToProject
public void applyToProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.core.runtime.CoreExceptionApply the settings files to the given eclipse project.- Parameters:
project- the project to apply the settings tomonitor- a progress monitor- Throws:
java.io.IOException- on IO errororg.eclipse.core.runtime.CoreException- on eclipse file creation failure
-
-