Package org.eclipse.ui.editors.text
Class TextFileDocumentProvider.FileBufferListener
java.lang.Object
org.eclipse.ui.editors.text.TextFileDocumentProvider.FileBufferListener
- All Implemented Interfaces:
IFileBufferListener
- Enclosing class:
TextFileDocumentProvider
protected class TextFileDocumentProvider.FileBufferListener
extends Object
implements IFileBufferListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInforms the listener about an upcoming replace of the contents of the given buffer.voidInforms the listener that the buffer of the given buffer has been replaced.voidbufferCreated(IFileBuffer buffer) Informs the listener about the creation of the given buffer.voidbufferDisposed(IFileBuffer buffer) Informs the listener that the given buffer has been disposed.voiddirtyStateChanged(IFileBuffer file, boolean isDirty) Informs the listener that the dirty state of the given buffer changed to the specified valuevoidstateChangeFailed(IFileBuffer file) Informs the listener that a state changing operation on the given file buffer failed.voidstateChanging(IFileBuffer file) Informs the listener about the start of a state changing operation on the given buffer.voidstateValidationChanged(IFileBuffer file, boolean isStateValidated) Informs the listener that the state validation changed to the specified value.voidInforms the listener that the file underlying the given file buffer has been deleted.voidunderlyingFileMoved(IFileBuffer file, IPath newLocation) Informs the listener that the file underlying the given file buffer has been moved to the given location.
-
Constructor Details
-
FileBufferListener
public FileBufferListener()
-
-
Method Details
-
bufferContentAboutToBeReplaced
Description copied from interface:IFileBufferListenerInforms the listener about an upcoming replace of the contents of the given buffer.- Specified by:
bufferContentAboutToBeReplacedin interfaceIFileBufferListener- Parameters:
file- the affected file buffer
-
bufferContentReplaced
Description copied from interface:IFileBufferListenerInforms the listener that the buffer of the given buffer has been replaced.- Specified by:
bufferContentReplacedin interfaceIFileBufferListener- Parameters:
file- the affected file buffer
-
stateChanging
Description copied from interface:IFileBufferListenerInforms the listener about the start of a state changing operation on the given buffer.- Specified by:
stateChangingin interfaceIFileBufferListener- Parameters:
file- the affected file buffer
-
dirtyStateChanged
Description copied from interface:IFileBufferListenerInforms the listener that the dirty state of the given buffer changed to the specified value- Specified by:
dirtyStateChangedin interfaceIFileBufferListener- Parameters:
file- the affected file bufferisDirty-trueif the buffer is dirty,falseotherwise
-
stateValidationChanged
Description copied from interface:IFileBufferListenerInforms the listener that the state validation changed to the specified value.- Specified by:
stateValidationChangedin interfaceIFileBufferListener- Parameters:
file- the affected file bufferisStateValidated-trueif the buffer state is validated,falseotherwise
-
underlyingFileMoved
Description copied from interface:IFileBufferListenerInforms the listener that the file underlying the given file buffer has been moved to the given location.This event is currently only sent if the file buffer is backed by an
IFile.- Specified by:
underlyingFileMovedin interfaceIFileBufferListener- Parameters:
file- the affected file buffernewLocation- the new location (not just the container)
-
underlyingFileDeleted
Description copied from interface:IFileBufferListenerInforms the listener that the file underlying the given file buffer has been deleted.- Specified by:
underlyingFileDeletedin interfaceIFileBufferListener- Parameters:
file- the affected file buffer
-
stateChangeFailed
Description copied from interface:IFileBufferListenerInforms the listener that a state changing operation on the given file buffer failed.- Specified by:
stateChangeFailedin interfaceIFileBufferListener- Parameters:
file- the affected file buffer
-
bufferCreated
Description copied from interface:IFileBufferListenerInforms the listener about the creation of the given buffer.- Specified by:
bufferCreatedin interfaceIFileBufferListener- Parameters:
buffer- the created file buffer
-
bufferDisposed
Description copied from interface:IFileBufferListenerInforms the listener that the given buffer has been disposed. All state information has already been disposed and accessing it is forbidden. However, accessing the file buffer's content is still allowed during the notification.- Specified by:
bufferDisposedin interfaceIFileBufferListener- Parameters:
buffer- the disposed file buffer
-