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(); }
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; }