Interface IFolderFileChangeListener

  • All Known Implementing Classes:
    FileChangesCollection, JavaManager

    public interface IFolderFileChangeListener
    The change listener for folders and files.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      voidonFileAdded​(org.eclipse.core.resources.IFile file)
      File has been added.
      voidonFileChanged​(org.eclipse.core.resources.IFile file, int flags)
      File has been changed (markers, contents, etc).
      voidonFileMoved​(org.eclipse.core.resources.IFile newFile, org.eclipse.core.resources.IFile oldFile)
      File has been moved.
      voidonFileRemoved​(org.eclipse.core.resources.IFile file)
      File has been removed.
      voidonFolderAdded​(org.eclipse.core.resources.IFolder folder)
      Folder has been added.
      voidonFolderMoved​(org.eclipse.core.resources.IFolder newFolder, org.eclipse.core.resources.IFolder oldFolder)
      Folder has been moved.
      voidonFolderRemoved​(org.eclipse.core.resources.IFolder folder)
      Folder has been removed.
    • Method Detail

      • onFileAdded

        void onFileAdded​(org.eclipse.core.resources.IFile file)
                  throws org.eclipse.core.runtime.CoreException
        File has been added.

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        file - The file.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.
      • onFileMoved

        void onFileMoved​(org.eclipse.core.resources.IFile newFile,
                         org.eclipse.core.resources.IFile oldFile)
                  throws org.eclipse.core.runtime.CoreException
        File has been moved.

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        newFile - The new file.
        oldFile - The old file.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.
      • onFileChanged

        void onFileChanged​(org.eclipse.core.resources.IFile file,
                           int flags)
                    throws org.eclipse.core.runtime.CoreException
        File has been changed (markers, contents, etc).

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        file - The file.
        flags - How the file was changed, from IResourceDelta, where the important ones are CONTENT, MARKERS, ENCODING, LOCAL_CHANGE, DERIVED_CHANGED, REPLACED.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.
      • onFileRemoved

        void onFileRemoved​(org.eclipse.core.resources.IFile file)
                    throws org.eclipse.core.runtime.CoreException
        File has been removed.

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        file - The file.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.
      • onFolderAdded

        void onFolderAdded​(org.eclipse.core.resources.IFolder folder)
                    throws org.eclipse.core.runtime.CoreException
        Folder has been added.

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        folder - The folder.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.
      • onFolderMoved

        void onFolderMoved​(org.eclipse.core.resources.IFolder newFolder,
                           org.eclipse.core.resources.IFolder oldFolder)
                    throws org.eclipse.core.runtime.CoreException
        Folder has been moved.

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        newFolder - The new folder.
        oldFolder - The old folder.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.
      • onFolderRemoved

        void onFolderRemoved​(org.eclipse.core.resources.IFolder folder)
                      throws org.eclipse.core.runtime.CoreException
        Folder has been removed.

        Subclasses should override to process the event, no need to call the super method.

        Parameters:
        folder - The folder.
        Throws:
        org.eclipse.core.runtime.CoreException - For failures.