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 Type Method Description
      void onFileAdded​(org.eclipse.core.resources.IFile file)
      File has been added.
      void onFileChanged​(org.eclipse.core.resources.IFile file, int flags)
      File has been changed (markers, contents, etc).
      void onFileMoved​(org.eclipse.core.resources.IFile newFile, org.eclipse.core.resources.IFile oldFile)
      File has been moved.
      void onFileRemoved​(org.eclipse.core.resources.IFile file)
      File has been removed.
      void onFolderAdded​(org.eclipse.core.resources.IFolder folder)
      Folder has been added.
      void onFolderMoved​(org.eclipse.core.resources.IFolder newFolder, org.eclipse.core.resources.IFolder oldFolder)
      Folder has been moved.
      void onFolderRemoved​(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.