public class XMLTextDocumentService.SaveContext extends AbstractSaveContext
ISaveContext.SaveContextType
Constructor and Description |
---|
SaveContext(Object settings) |
SaveContext(String uri) |
Modifier and Type | Method and Description |
---|---|
void |
collectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate)
This method is called to collect document to validate after the save.
|
DOMDocument |
getDocument(String uri)
Returns the
DOMDocument instance from the given uri and
null otherwise. |
boolean |
isRefreshCodeLenses() |
void |
setRefreshCodeLenses(boolean isRefreshCodeLenses) |
void |
triggerValidationIfNeeded() |
getSettings, getType, getUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllDocuments
public SaveContext(Object settings)
public SaveContext(String uri)
public boolean isRefreshCodeLenses()
public void setRefreshCodeLenses(boolean isRefreshCodeLenses)
public void collectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate)
ISaveContext
public DOMDocument getDocument(String uri)
IXMLDocumentProvider
DOMDocument
instance from the given uri
and
null otherwise.uri
- the document URI.DOMDocument
instance from the given uri
and
null otherwise.public void triggerValidationIfNeeded()
Copyright © 2022. All rights reserved.