Interface IFolderFileChangeListener

All Known Implementing Classes:
FileChangesCollection, JavaManager

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

    • onFileAdded Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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.