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 TypeMethodDescriptionvoid
onFileAdded
(IFile file) File has been added.void
onFileChanged
(IFile file, int flags) File has been changed (markers, contents, etc).void
onFileMoved
(IFile newFile, IFile oldFile) File has been moved.void
onFileRemoved
(IFile file) File has been removed.void
onFolderAdded
(IFolder folder) Folder has been added.void
onFolderMoved
(IFolder newFolder, IFolder oldFolder) Folder has been moved.void
onFolderRemoved
(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
super
method.- 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
super
method.- 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
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
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
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
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
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.