public class SurroundWithCommand extends AbstractDOMDocumentCommandHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
SurroundWithCommand.SurroundWithKind |
static class |
SurroundWithCommand.SurroundWithResponse |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_ID |
| Constructor and Description |
|---|
SurroundWithCommand(IXMLDocumentProvider documentProvider,
ContentModelManager contentModelManager) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
executeCommandpublic static final String COMMAND_ID
public SurroundWithCommand(IXMLDocumentProvider documentProvider, ContentModelManager contentModelManager)
protected Object executeCommand(DOMDocument document, org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
AbstractDOMDocumentCommandHandlerexecuteCommand in class AbstractDOMDocumentCommandHandlerdocument - the DOM document retrieve by the
TextDocumentIdentifier argument.params - command execution parameterssharedSettings - the shared settingscancelChecker - check if cancel has been requestedException - the unhandled exception will be wrapped in
org.eclipse.lsp4j.jsonrpc.ResponseErrorException
and be wired back to the JSON-RPC protocol callerCopyright © 2024. All rights reserved.