Package com.iizigo.project
Interface IFolderFileChangeListener
- All Known Implementing Classes:
FileChangesCollection,JavaManager
public interface IFolderFileChangeListener
The change listener for folders and files.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoidonFileAdded(IFile file) File has been added.voidonFileChanged(IFile file, int flags) File has been changed (markers, contents, etc).voidonFileMoved(IFile newFile, IFile oldFile) File has been moved.voidonFileRemoved(IFile file) File has been removed.voidonFolderAdded(IFolder folder) Folder has been added.voidonFolderMoved(IFolder newFolder, IFolder oldFolder) Folder has been moved.voidonFolderRemoved(IFolder folder) Folder has been removed.
Method Details
onFileAdded
File has been added.Subclasses should override to process the event, no need to call the
supermethod.- Parameters:
file- The file.- Throws:
CoreException- For failures.
onFileMoved
File has been moved.Subclasses should override to process the event, no need to call the
supermethod.- Parameters:
newFile- The new file.oldFile- The old file.- Throws:
CoreException- For failures.
onFileChanged
File has been changed (markers, contents, etc).Subclasses should override to process the event, no need to call the
supermethod.- 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
File has been removed.Subclasses should override to process the event, no need to call the
supermethod.- Parameters:
file- The file.- Throws:
CoreException- For failures.
onFolderAdded
Folder has been added.Subclasses should override to process the event, no need to call the
supermethod.- Parameters:
folder- The folder.- Throws:
CoreException- For failures.
onFolderMoved
Folder has been moved.Subclasses should override to process the event, no need to call the
supermethod.- Parameters:
newFolder- The new folder.oldFolder- The old folder.- Throws:
CoreException- For failures.
onFolderRemoved
Folder has been removed.Subclasses should override to process the event, no need to call the
supermethod.- Parameters:
folder- The folder.- Throws:
CoreException- For failures.