Package org.eclipse.jface.text
Interface ISelectionValidator
- All Known Implementing Classes:
AbstractTextEditor.SelectionProvider
public interface ISelectionValidator
A selection validator allows clients to test whether the selection they
received during selection changed notification is valid.
For example, selection and document changes that occur between the original selection and the point in time the validator is called cause the selection to be invalid.
Clients may implement and use this interface.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(ISelection selection) Tests whether the given post selection is still valid.
-
Method Details
-
isValid
Tests whether the given post selection is still valid.- Parameters:
selection
- the selection- Returns:
true
if the selection is still valid
-