Search in sources :

Example 1 with SelectionRangeParams

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);
}
Also used : TextDocumentIdentifier(org.eclipse.lsp4j.TextDocumentIdentifier) SelectionRangeParams(org.eclipse.lsp4j.SelectionRangeParams)

Aggregations

SelectionRangeParams (org.eclipse.lsp4j.SelectionRangeParams)1 TextDocumentIdentifier (org.eclipse.lsp4j.TextDocumentIdentifier)1