Interface IFolderFileChangeListener

All Known Implementing Classes:
FileChangesCollection, JavaManager

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

    • onFileAdded

      void onFileAdded(IFile file) throws CoreException
      File has been added.

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

      Parameters:
      file - The file.
      Throws:
      CoreException - For failures.
    • onFileMoved

      void onFileMoved(IFile newFile, IFile oldFile) throws 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:
      CoreException - For failures.
    • onFileChanged

      void onFileChanged(IFile file, int flags) throws 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:
      CoreException - For failures.
    • onFileRemoved

      void onFileRemoved(IFile file) throws CoreException
      File has been removed.

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

      Parameters:
      file - The file.
      Throws:
      CoreException - For failures.
    • onFolderAdded

      void onFolderAdded(IFolder folder) throws CoreException
      Folder has been added.

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

      Parameters:
      folder - The folder.
      Throws:
      CoreException - For failures.
    • onFolderMoved

      void onFolderMoved(IFolder newFolder, IFolder oldFolder) throws 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:
      CoreException - For failures.
    • onFolderRemoved

      void onFolderRemoved(IFolder folder) throws CoreException
      Folder has been removed.

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

      Parameters:
      folder - The folder.
      Throws:
      CoreException - For failures.