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:
ICodeLensRefresher,IDiagnosticsRefresher,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 TypeMethodDescriptiongetDocument(String uri) Returns theDOMDocumentinstance from the givenuriand null otherwise.booleanvoidrefreshDiagnostics(Predicate<DOMDocument> filter) Schedules a diagnostics re-publication for all open documents accepted byfilter.voidsetRefreshCodeLenses(boolean isRefreshCodeLenses) voidMethods inherited from class org.eclipse.lemminx.services.extensions.save.AbstractSaveContext
getSettings, getType, getUri, isCodeLensRefreshRequested, requestCodeLensRefreshMethods 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) -
refreshDiagnostics
Description copied from interface:IDiagnosticsRefresherSchedules a diagnostics re-publication for all open documents accepted byfilter.- Parameters:
filter- predicate applied to each openDOMDocument.
-
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()
-