org.eclipse.lsp4j.TextDocumentEdit的实例源码

项目:che    文件RenamePresenter.java   
private void applyRename(List<RenameProject> projects) {
  List<TextDocumentEdit> edits = new ArrayList<>();
  for (RenameProject project : projects) {
    edits.addAll(project.getTextDocumentEdits());
  }
  workspaceEditaction.applyWorkspaceEdit(new WorkspaceEdit(edits));
}
项目:che    文件RenameProject.java   
public List<TextDocumentEdit> getTextDocumentEdits() {
  return folders
      .stream()
      .map(RenameFolder::getTextDocumentEdit)
      .flatMap(Collection::stream)
      .collect(toList());
}
项目:che    文件RenameFile.java   
TextDocumentEdit getTextDocumentEdit() {
  VersionedTextDocumentIdentifier identifier = new VersionedTextDocumentIdentifier(-1);
  identifier.setUri(filePath);
  List<TextEdit> edits = new ArrayList<>();
  for (RenameChange change : changes) {
    edits.add(new TextEdit(change.getTextEdit().getRange(),change.getTextEdit().getNewText()));
  }
  return new TextDocumentEdit(identifier,edits);
}
项目:SOMns-vscode    文件WorkspaceEdit.java   
public WorkspaceEdit(final List<TextDocumentEdit> documentChanges) {
  this.documentChanges = documentChanges;
}
项目:SOMns-vscode    文件WorkspaceEdit.java   
/**
 * @deprecated According to the protocol documentation,it doesn't make sense to send both
 *      changes and documentChanges
 */
@Deprecated
public WorkspaceEdit(final Map<String,List<TextEdit>> changes,final List<TextDocumentEdit> documentChanges) {
  this.changes = changes;
  this.documentChanges = documentChanges;
}
项目:lsp4j    文件WorkspaceEdit.java   
public WorkspaceEdit(final List<TextDocumentEdit> documentChanges) {
  this.documentChanges = documentChanges;
}
项目:lsp4j    文件WorkspaceEdit.java   
/**
 * @deprecated According to the protocol documentation,final List<TextDocumentEdit> documentChanges) {
  this.changes = changes;
  this.documentChanges = documentChanges;
}
项目:che    文件RenameFolder.java   
public List<TextDocumentEdit> getTextDocumentEdit() {
  return files.stream().map(RenameFile::getTextDocumentEdit).collect(toList());
}
项目:SOMns-vscode    文件WorkspaceEdit.java   
/**
 * An array of `TextDocumentEdit`s to express changes to specific a specific
 * version of a text document. Whether a client supports versioned document
 * edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
 */
@Pure
public List<TextDocumentEdit> getDocumentChanges() {
  return this.documentChanges;
}
项目:SOMns-vscode    文件WorkspaceEdit.java   
/**
 * An array of `TextDocumentEdit`s to express changes to specific a specific
 * version of a text document. Whether a client supports versioned document
 * edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
 */
public void setDocumentChanges(final List<TextDocumentEdit> documentChanges) {
  this.documentChanges = documentChanges;
}
项目:lsp4j    文件WorkspaceEdit.java   
/**
 * An array of `TextDocumentEdit`s to express changes to specific a specific
 * version of a text document. Whether a client supports versioned document
 * edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
 */
@Pure
public List<TextDocumentEdit> getDocumentChanges() {
  return this.documentChanges;
}
项目:lsp4j    文件WorkspaceEdit.java   
/**
 * An array of `TextDocumentEdit`s to express changes to specific a specific
 * version of a text document. Whether a client supports versioned document
 * edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
 */
public void setDocumentChanges(final List<TextDocumentEdit> documentChanges) {
  this.documentChanges = documentChanges;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...