public void update(org.eclipse.lsp4j.CodeLens cl) { Command command = cl.getCommand(); if (command != null) { org.eclipse.jface.text.provisional.codelens.Command c = new org.eclipse.jface.text.provisional.codelens.Command( command.getTitle(), command.getCommand()); super.setCommand(c); } }
public LSPCodeLens(org.eclipse.lsp4j.CodeLens cl) { super(toRange(cl)); update(cl); this.cl = cl; }
private static Range toRange(org.eclipse.lsp4j.CodeLens cl) { org.eclipse.lsp4j.Range range = cl.getRange(); return new Range(range.getStart().getLine() + 1, range.getStart().getCharacter()); }
public org.eclipse.lsp4j.CodeLens getCl() { return cl; }