Package org.eclipse.lemminx
Class XMLTextDocumentService.SaveContext
java.lang.Object
org.eclipse.lemminx.services.extensions.save.AbstractSaveContext
org.eclipse.lemminx.XMLTextDocumentService.SaveContext
- All Implemented Interfaces:
ISaveContext,IXMLDocumentProvider
- Enclosing class:
- XMLTextDocumentService
Save context.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.lemminx.services.extensions.save.ISaveContext
ISaveContext.SaveContextType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate) This method is called to collect document to validate after the save.getDocument(String uri) Returns theDOMDocumentinstance from the givenuriand null otherwise.booleanvoidsetRefreshCodeLenses(boolean isRefreshCodeLenses) voidMethods inherited from class org.eclipse.lemminx.services.extensions.save.AbstractSaveContext
getSettings, getType, getUriMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.IXMLDocumentProvider
getAllDocuments
-
Constructor Details
-
SaveContext
-
SaveContext
-
-
Method Details
-
isRefreshCodeLenses
public boolean isRefreshCodeLenses() -
setRefreshCodeLenses
public void setRefreshCodeLenses(boolean isRefreshCodeLenses) -
collectDocumentToValidate
Description copied from interface:ISaveContextThis method is called to collect document to validate after the save. -
getDocument
Description copied from interface:IXMLDocumentProviderReturns theDOMDocumentinstance from the givenuriand null otherwise.- Parameters:
uri- the document URI.- Returns:
- the
DOMDocumentinstance from the givenuriand null otherwise.
-
triggerValidationIfNeeded
public void triggerValidationIfNeeded()
-