use of org.eclipse.lsp4j.SelectionRangeParams in project eclipse.jdt.ls by eclipse.
the class SelectionRangeHandlerTest method getSelectionRange.
private SelectionRange getSelectionRange(String className, Position position) throws CoreException {
SelectionRangeParams params = new SelectionRangeParams();
params.setPositions(Lists.newArrayList(position));
params.setTextDocument(new TextDocumentIdentifier(ClassFileUtil.getURI(project, className)));
return new SelectionRangeHandler().selectionRange(params, monitor).get(0);
}
Aggregations