Search in sources :

Example 1 with IStateValidationSupport

use of org.eclipse.core.filebuffers.IStateValidationSupport in project eclipse.platform.text by eclipse.

the class ResourceTextFileBufferManager method validationStateChangedFailed.

private void validationStateChangedFailed(IFileBuffer[] fileBuffers) {
    for (IFileBuffer fileBuffer : fileBuffers) {
        if (fileBuffer instanceof IStateValidationSupport) {
            IStateValidationSupport support = (IStateValidationSupport) fileBuffer;
            support.validationStateChangeFailed();
        }
    }
}
Also used : IFileBuffer(org.eclipse.core.filebuffers.IFileBuffer) IStateValidationSupport(org.eclipse.core.filebuffers.IStateValidationSupport)

Example 2 with IStateValidationSupport

use of org.eclipse.core.filebuffers.IStateValidationSupport in project eclipse.platform.text by eclipse.

the class ResourceTextFileBufferManager method validationStateAboutToBeChanged.

private void validationStateAboutToBeChanged(IFileBuffer[] fileBuffers) {
    for (IFileBuffer fileBuffer : fileBuffers) {
        if (fileBuffer instanceof IStateValidationSupport) {
            IStateValidationSupport support = (IStateValidationSupport) fileBuffer;
            support.validationStateAboutToBeChanged();
        }
    }
}
Also used : IFileBuffer(org.eclipse.core.filebuffers.IFileBuffer) IStateValidationSupport(org.eclipse.core.filebuffers.IStateValidationSupport)

Example 3 with IStateValidationSupport

use of org.eclipse.core.filebuffers.IStateValidationSupport in project eclipse.platform.text by eclipse.

the class ResourceTextFileBufferManager method validationStateChanged.

private void validationStateChanged(IFileBuffer[] fileBuffers, boolean validationState, IStatus status) {
    for (IFileBuffer fileBuffer : fileBuffers) {
        if (fileBuffer instanceof IStateValidationSupport) {
            IStateValidationSupport support = (IStateValidationSupport) fileBuffer;
            support.validationStateChanged(validationState, status);
        }
    }
}
Also used : IFileBuffer(org.eclipse.core.filebuffers.IFileBuffer) IStateValidationSupport(org.eclipse.core.filebuffers.IStateValidationSupport)

Aggregations

IFileBuffer (org.eclipse.core.filebuffers.IFileBuffer)3 IStateValidationSupport (org.eclipse.core.filebuffers.IStateValidationSupport)3