Package org.eclipse.lemminx.settings
Class XMLCodeLensSettings
- java.lang.Object
-
- org.eclipse.lemminx.settings.XMLCodeLensSettings
-
public class XMLCodeLensSettings extends Object
XML CodeLens settings- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description XMLCodeLensSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()Returns true if codelens service is enabled and false otherwise.booleanisSupportedByClient(String kind)Returns true if the given code lens kind is supported by the client and false otherwise.voidmerge(XMLCodeLensSettings newSettings)voidsetCodeLens(ExtendedCodeLensCapabilities codeLens)Update the codelens client capabilities.voidsetEnabled(boolean enabled)Set true if codelens service is enabled and false otherwise.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns true if codelens service is enabled and false otherwise.- Returns:
- true if codelens service is enabled and false otherwise.
-
setEnabled
public void setEnabled(boolean enabled)
Set true if codelens service is enabled and false otherwise.- Parameters:
enabled-
-
isSupportedByClient
public boolean isSupportedByClient(String kind)
Returns true if the given code lens kind is supported by the client and false otherwise.- Parameters:
kind- code lens kind- Returns:
- true if the given code lens kind is supported by the client and false otherwise.
-
setCodeLens
public void setCodeLens(ExtendedCodeLensCapabilities codeLens)
Update the codelens client capabilities.- Parameters:
codelens- client capabilities
-
merge
public void merge(XMLCodeLensSettings newSettings)
-
-