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.
  • Constructor Details

    • SaveContext

      public SaveContext(Object settings)
    • SaveContext

      public SaveContext(String uri)
  • Method Details

    • isRefreshCodeLenses

      public boolean isRefreshCodeLenses()
    • setRefreshCodeLenses

      public void setRefreshCodeLenses(boolean isRefreshCodeLenses)
    • collectDocumentToValidate

      public void collectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate)
      Description copied from interface: ISaveContext
      This method is called to collect document to validate after the save.
    • getDocument

      public DOMDocument getDocument(String uri)
      Description copied from interface: IXMLDocumentProvider
      Returns the DOMDocument instance from the given uri and null otherwise.
      Parameters:
      uri - the document URI.
      Returns:
      the DOMDocument instance from the given uri and null otherwise.
    • triggerValidationIfNeeded

      public void triggerValidationIfNeeded()