public List<? extends org.eclipse.lsp4j.TextEdit> onTypeFormatting(DocumentOnTypeFormattingParams params, IProgressMonitor monitor) { return format(params.getTextDocument().getUri(), params.getOptions(), params.getPosition(), params.getCh(), monitor); }
@Override @Pure public String toString() { ToStringBuilder b = new ToStringBuilder(this); b.add("position", this.position); b.add("ch", this.ch); b.add("textDocument", getTextDocument()); b.add("options", getOptions()); return b.toString(); }
@Override @Pure public String toString() { ToStringBuilder b = new ToStringBuilder(this); b.add("position", this.position); b.add("ch", this.ch); b.add("textDocument", getTextDocument()); b.add("options", getOptions()); return b.toString(); }
setCh((java.lang.String)chVal); if (o.getOptions() == null) { setOptions((org.eclipse.lsp4j.FormattingOptions)null); } else { org.eclipse.lsp4j.FormattingOptions optionsVal= new org.eclipse.lsp4j.FormattingOptions(); for (Entry<String, org.eclipse.lsp4j.jsonrpc.messages.Either3<java.lang.String, java.lang.Number, java.lang.Boolean>> optionsValX : o.getOptions().entrySet()) { org.eclipse.lsp4j.jsonrpc.messages.Either3<java.lang.String, java.lang.Number, java.lang.Boolean> optionsValY; if (optionsValX.getValue().isFirst()) {
DocumentOnTypeFormattingParams clone( DocumentOnTypeFormattingParams documentOnTypeFormattingParams) { if (documentOnTypeFormattingParams == null) { return null; } String ch = documentOnTypeFormattingParams.getCh(); Position position = documentOnTypeFormattingParams.getPosition(); FormattingOptions options = documentOnTypeFormattingParams.getOptions(); TextDocumentIdentifier textDocument = documentOnTypeFormattingParams.getTextDocument(); DocumentOnTypeFormattingParams cloned = new DocumentOnTypeFormattingParams(); cloned.setCh(ch); cloned.setPosition(clone(position)); cloned.setOptions(clone(options)); cloned.setTextDocument(clone(textDocument)); return cloned; }