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
public class XMLTextDocumentService.SaveContext extends AbstractSaveContext
Save context.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.lemminx.services.extensions.save.ISaveContext
ISaveContext.SaveContextType
-
-
Constructor Summary
Constructors Constructor Description SaveContext(Object settings)SaveContext(String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate)This method is called to collect document to validate after the save.DOMDocumentgetDocument(String uri)Returns theDOMDocumentinstance from the givenuriand null otherwise.booleanisRefreshCodeLenses()voidsetRefreshCodeLenses(boolean isRefreshCodeLenses)voidtriggerValidationIfNeeded()-
Methods inherited from class org.eclipse.lemminx.services.extensions.save.AbstractSaveContext
getSettings, getType, getUri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.lemminx.services.IXMLDocumentProvider
getAllDocuments
-
-
-
-
Method Detail
-
isRefreshCodeLenses
public boolean isRefreshCodeLenses()
-
setRefreshCodeLenses
public void setRefreshCodeLenses(boolean isRefreshCodeLenses)
-
collectDocumentToValidate
public void collectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate)
Description copied from interface:ISaveContextThis method is called to collect document to validate after the save.
-
getDocument
public DOMDocument getDocument(String uri)
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()
-
-