Java 类org.eclipse.jface.text.ISelectionValidator 实例源码

项目:typescript.java    文件:TypeScriptEditor.java   
public OccurrencesFinderJob(IDocument document, Position[] positions, ISelection selection) {
    super(JSDTTypeScriptUIMessages.TypeScriptEditor_markOccurrences_job_name);
    fDocument = document;
    fSelection = selection;
    fPositions = positions;

    if (getSelectionProvider() instanceof ISelectionValidator)
        fPostSelectionValidator = (ISelectionValidator) getSelectionProvider();
}
项目:Eclipse-Postfix-Code-Completion    文件:JavaEditor.java   
public OccurrencesFinderJob(IDocument document, OccurrenceLocation[] locations, ISelection selection) {
    super(JavaEditorMessages.JavaEditor_markOccurrences_job_name);
    fDocument= document;
    fSelection= selection;
    fLocations= locations;

    if (getSelectionProvider() instanceof ISelectionValidator)
        fPostSelectionValidator= (ISelectionValidator)getSelectionProvider();
    else
        fPostSelectionValidator= null;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaEditor.java   
public OccurrencesFinderJob(IDocument document, OccurrenceLocation[] locations, ISelection selection) {
    super(JavaEditorMessages.JavaEditor_markOccurrences_job_name);
    fDocument= document;
    fSelection= selection;
    fLocations= locations;

    if (getSelectionProvider() instanceof ISelectionValidator)
        fPostSelectionValidator= (ISelectionValidator)getSelectionProvider();
    else
        fPostSelectionValidator= null;
}