blob: 661023c92a492422ac5728bb4c5f8628f0d27781 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package org.eclipse.jface.text.contentassist;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jface.text.ITextViewer;
/**
* A context information validator is used to determine if
* a displayed context information is still valid or should
* be dismissed. The interface can be implemented by clients. <p>
*
* @see IContextInformationPresenter
*/
public interface IContextInformationValidator {
/**
* Installs this validator for the given context information.
*
* @param info the context information which this validator should check
* @param viewer the text viewer on which the information is presented
* @param documentPosition the document position for which the information has been computed
*/
void install(IContextInformation info, ITextViewer viewer, int documentPosition);
/**
* Returns whether the information this validator is installed on is still valid
* at the given document position.
*
* @param documentPosition the current position within the document
* @return <code>true</code> if the information also valid at the given document position
*/
boolean isContextInformationValid(int documentPosition);
}
|