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

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)
    • refreshDiagnostics

      public void refreshDiagnostics(Predicate<DOMDocument> filter)
      Description copied from interface: IDiagnosticsRefresher
      Schedules a diagnostics re-publication for all open documents accepted by filter.
      Parameters:
      filter - predicate applied to each open DOMDocument.
    • 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()