Class 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 of project 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 new ProjectSettingsFiles instances with the specified files.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void applyToProject​(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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ProjectSettingsFiles

        public ProjectSettingsFiles​(java.util.Collection<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile> files,
                                    io.spring.javaformat.eclipse.projectsettings.ProjectProperties projectProperties)
        Create a new ProjectSettingsFiles instances with the specified files.
        Parameters:
        files - the project settings files
        projectProperties - project properties
    • Method Detail

      • iterator

        public java.util.Iterator<io.spring.javaformat.eclipse.projectsettings.ProjectSettingsFile> iterator()
        Specified by:
        iterator in interface java.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.CoreException
        Apply the settings files to the given eclipse project.
        Parameters:
        project - the project to apply the settings to
        monitor - a progress monitor
        Throws:
        java.io.IOException - on IO error
        org.eclipse.core.runtime.CoreException - on eclipse file creation failure