Class XMLValidationFileCommand
java.lang.Object
org.eclipse.lemminx.services.extensions.commands.AbstractDOMDocumentCommandHandler
org.eclipse.lemminx.extensions.contentmodel.commands.XMLValidationFileCommand
- All Implemented Interfaces:
IXMLCommandService.IDelegateCommandHandler
XML Command "xml.validation.current.file" to revalidate a give XML file which
means:
- remove the referenced grammar in the XML file from the Xerces grammar pool (used by the Xerces validation) and the content model documents cache (used by the XML completion/hover based on the grammar)
- trigger the validation for the given XML file
- Author:
- Angelo ZERR
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXMLValidationFileCommand(ContentModelManager contentModelManager, IXMLDocumentProvider documentProvider, IXMLValidationService validationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectexecuteCommand(DOMDocument document, org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Executes a commandMethods inherited from class org.eclipse.lemminx.services.extensions.commands.AbstractDOMDocumentCommandHandler
executeCommand
-
Field Details
-
COMMAND_ID
- See Also:
-
-
Constructor Details
-
XMLValidationFileCommand
public XMLValidationFileCommand(ContentModelManager contentModelManager, IXMLDocumentProvider documentProvider, IXMLValidationService validationService)
-
-
Method Details