Class XMLValidationAllFilesCommand
- java.lang.Object
-
- org.eclipse.lemminx.extensions.contentmodel.commands.XMLValidationAllFilesCommand
-
- All Implemented Interfaces:
IXMLCommandService.IDelegateCommandHandler
public class XMLValidationAllFilesCommand extends Object implements IXMLCommandService.IDelegateCommandHandler
XML Command "xml.validation.all.files" to revalidate all opened XML files which means:- clear 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 all opened XML files
- Author:
- Angelo ZERR
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMAND_ID
-
Constructor Summary
Constructors Constructor Description XMLValidationAllFilesCommand(ContentModelManager contentModelManager, IXMLDocumentProvider documentProvider, IXMLValidationService validationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectexecuteCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Executes a command
-
-
-
Field Detail
-
COMMAND_ID
public static final String COMMAND_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLValidationAllFilesCommand
public XMLValidationAllFilesCommand(ContentModelManager contentModelManager, IXMLDocumentProvider documentProvider, IXMLValidationService validationService)
-
-
Method Detail
-
executeCommand
public Object executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
Description copied from interface:IXMLCommandService.IDelegateCommandHandlerExecutes a command- Specified by:
executeCommandin interfaceIXMLCommandService.IDelegateCommandHandler- Parameters:
params- command execution parameterssharedSettings- the shared settings.cancelChecker- check if cancel has been requested- Returns:
- the result of the command
- Throws:
Exception- the unhandled exception will be wrapped inorg.eclipse.lsp4j.jsonrpc.ResponseErrorExceptionand be wired back to the JSON-RPC protocol caller
-
-