public class RenameUtil extends Object
Constructor and Description |
---|
RenameUtil() |
Modifier and Type | Method and Description |
---|---|
static List<org.eclipse.lsp4j.TextDocumentEdit> |
getRenameTextEdits(List<org.eclipse.lsp4j.Location> locationList,
WorkspaceDocumentManager documentManager,
String newName,
String replaceSymbolName)
Get the list of rename related TextEdits.
|
static String |
getReplaceSymbolName(org.eclipse.lsp4j.RenameParams params,
WorkspaceDocumentManager documentManager)
Get the symbol name to replace.
|
public static List<org.eclipse.lsp4j.TextDocumentEdit> getRenameTextEdits(List<org.eclipse.lsp4j.Location> locationList, WorkspaceDocumentManager documentManager, String newName, String replaceSymbolName)
locationList
- List of locations of occurrencesdocumentManager
- WorkspaceDocumentManager
instancenewName
- New name to be replaced withreplaceSymbolName
- Symbol name being replacedList
List of TextEditspublic static String getReplaceSymbolName(org.eclipse.lsp4j.RenameParams params, WorkspaceDocumentManager documentManager)
params
- RenameParams
for operationdocumentManager
- WorkspaceDocumentManager
instanceString
Symbol name to replaceCopyright © 2018 WSO2. All rights reserved.