Class AbstractSaveContext
java.lang.Object
org.eclipse.lemminx.services.extensions.save.AbstractSaveContext
- All Implemented Interfaces:
ICodeLensRefresher,IDiagnosticsRefresher,ISaveContext,IXMLDocumentProvider
- Direct Known Subclasses:
XMLTextDocumentService.SaveContext
Abstract class for 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 TypeMethodDescriptionReturns the settings which has changed and null otherwise.getType()Returns the save context type.getUri()Returns the document URI which was saved and null if it's a settings which was saved.booleanReturnstrueif any extension has requested a code lens refresh for the current event batch.voidRequests aworkspace/codeLens/refreshto be sent to the client once all extensions have finished processing the current event batch.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.extensions.IDiagnosticsRefresher
refreshDiagnosticsMethods inherited from interface org.eclipse.lemminx.services.IXMLDocumentProvider
getAllDocuments, getDocument
-
Constructor Details
-
AbstractSaveContext
-
AbstractSaveContext
-
-
Method Details
-
getType
Description copied from interface:ISaveContextReturns the save context type.- Specified by:
getTypein interfaceISaveContext- Returns:
- the save context type.
-
getUri
Description copied from interface:ISaveContextReturns the document URI which was saved and null if it's a settings which was saved.- Specified by:
getUriin interfaceISaveContext- Returns:
- the document URI which was saved and null if it's a settings which was saved.
-
getSettings
Description copied from interface:ISaveContextReturns the settings which has changed and null otherwise.- Specified by:
getSettingsin interfaceISaveContext- Returns:
- the settings which has changed and null otherwise.
-
requestCodeLensRefresh
public void requestCodeLensRefresh()Description copied from interface:ICodeLensRefresherRequests aworkspace/codeLens/refreshto be sent to the client once all extensions have finished processing the current event batch.Multiple extensions may call this for the same batch; only one refresh is sent. The refresh is only sent if the client declared support for it (
workspace.codeLens.refreshSupportin client capabilities).- Specified by:
requestCodeLensRefreshin interfaceICodeLensRefresher
-
isCodeLensRefreshRequested
public boolean isCodeLensRefreshRequested()Description copied from interface:ICodeLensRefresherReturnstrueif any extension has requested a code lens refresh for the current event batch.Called by the host service after all participants finish to decide whether to send
workspace/codeLens/refresh.- Specified by:
isCodeLensRefreshRequestedin interfaceICodeLensRefresher
-