Package org.eclipse.lemminx.settings
Class XMLGeneralClientSettings
java.lang.Object
org.eclipse.lemminx.settings.XMLGeneralClientSettings
Class to hold all settings from the client side.
See https://github.com/eclipse/lemminx/blob/main/docs/Configuration.md for more
information.
This class is created through the deseralization of a JSON object. Each
internal setting must be represented by a class and have:
1) A constructor with no parameters
2) The JSON key/parent for the settings must have the same name as a varible.
eg: {"format" : {...}, "completion" : {...}}
In this class must exist both a "format" and "completion" variable with the
appropriate Class to represent the value of each key
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the code lens settings.Returns the completion settingsReturns the folding optionsReturns the formatting optionsstatic XMLGeneralClientSettingsgetGeneralXMLSettings(Object initializationOptionsSettings) Returns a new instance ofXMLGeneralClientSettingswith contents frominitializationOptionsSettingsgetLogs()Returns the XML preferencesReturns the serverReturns the telemetry settingsbooleanvoidsetCodeLens(XMLCodeLensSettings codeLens) Sets the code lens settings.voidsetCompletion(XMLCompletionSettings completion) Sets the completion settingsvoidsetFolding(XMLFoldingSettings foldings) Sets the folding optionsvoidsetFormat(XMLFormattingOptions format) Sets the formatting optionsvoidsetLinkedEditingEnabled(boolean linkedEditingEnabled) voidsetLogs(LogsSettings logs) voidsetPreferences(XMLPreferences preferences) Sets the XML preferencesvoidsetServer(ServerSettings server) Sets the servervoidsetSymbols(XMLSymbolSettings symbols) voidsetTelemetry(XMLTelemetrySettings telemetry) Sets the telemetry settings
-
Constructor Details
-
XMLGeneralClientSettings
public XMLGeneralClientSettings()
-
-
Method Details
-
setLogs
-
getLogs
-
getSymbols
-
setSymbols
-
getCodeLens
Returns the code lens settings.- Returns:
- the code lens settings.
-
setCodeLens
Sets the code lens settings.- Parameters:
codeLens-
-
setFormat
Sets the formatting options- Parameters:
format-
-
getFormat
Returns the formatting options- Returns:
- the formatting options
-
setFolding
Sets the folding options- Parameters:
foldings-
-
getFolding
Returns the folding options- Returns:
- the folding options
-
setCompletion
Sets the completion settings- Parameters:
completion-
-
getCompletion
Returns the completion settings- Returns:
- the completion settings
-
setLinkedEditingEnabled
public void setLinkedEditingEnabled(boolean linkedEditingEnabled) -
isLinkedEditingEnabled
public boolean isLinkedEditingEnabled() -
getPreferences
Returns the XML preferences- Returns:
- the XML preferences
-
setPreferences
Sets the XML preferences- Parameters:
preferences- the XML preferences
-
getServer
Returns the server- Returns:
- the server
-
setServer
Sets the server- Parameters:
server-
-
getTelemetry
Returns the telemetry settings- Returns:
- the telemetry settings
-
setTelemetry
Sets the telemetry settings- Parameters:
telemetry- the telemetry settings
-
getGeneralXMLSettings
Returns a new instance ofXMLGeneralClientSettingswith contents frominitializationOptionsSettings- Parameters:
initializationOptionsSettings-- Returns:
- a new instance of
XMLGeneralClientSettingswith contents frominitializationOptionsSettings
-