Class TextFileDocumentProvider.FileBufferListener

    • Constructor Detail

      • FileBufferListener

        public FileBufferListener()
    • Method Detail

      • stateChanging

        public void stateChanging​(IFileBuffer file)
        Description copied from interface: IFileBufferListener
        Informs the listener about the start of a state changing operation on the given buffer.
        Specified by:
        stateChanging in interface IFileBufferListener
        Parameters:
        file - the affected file buffer
      • dirtyStateChanged

        public void dirtyStateChanged​(IFileBuffer file,
                                      boolean isDirty)
        Description copied from interface: IFileBufferListener
        Informs the listener that the dirty state of the given buffer changed to the specified value
        Specified by:
        dirtyStateChanged in interface IFileBufferListener
        Parameters:
        file - the affected file buffer
        isDirty - true if the buffer is dirty, false otherwise
      • stateValidationChanged

        public void stateValidationChanged​(IFileBuffer file,
                                           boolean isStateValidated)
        Description copied from interface: IFileBufferListener
        Informs the listener that the state validation changed to the specified value.
        Specified by:
        stateValidationChanged in interface IFileBufferListener
        Parameters:
        file - the affected file buffer
        isStateValidated - true if the buffer state is validated, false otherwise
      • underlyingFileMoved

        public void underlyingFileMoved​(IFileBuffer file,
                                        IPath newLocation)
        Description copied from interface: IFileBufferListener
        Informs 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:
        underlyingFileMoved in interface IFileBufferListener
        Parameters:
        file - the affected file buffer
        newLocation - the new location (not just the container)
      • bufferDisposed

        public void bufferDisposed​(IFileBuffer buffer)
        Description copied from interface: IFileBufferListener
        Informs 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:
        bufferDisposed in interface IFileBufferListener
        Parameters:
        buffer - the disposed file buffer