Class ColorPresentation
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.ColorPresentation
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorPresentationCreates a new ColorInformation literal.booleanAn optional array of additional [text edits](#TextEdit) that are applied when selecting this color presentation.getLabel()The label of this color presentation.An [edit](#TextEdit) which is applied to a document when selecting this presentation for the color.inthashCode()setAdditionalTextEdits(List<TextEdit> additionalTextEdits) setTextEdit(TextEdit textEdit)
-
Method Details
-
getLabel
The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation. -
setLabel
-
getTextEdit
An [edit](#TextEdit) which is applied to a document when selecting this presentation for the color. When `falsy` the [label](#ColorPresentation.label) is used. -
setTextEdit
-
getAdditionalTextEdits
An optional array of additional [text edits](#TextEdit) that are applied when selecting this color presentation. Edits must not overlap with the main [edit](#ColorPresentation.textEdit) nor with themselves. -
setAdditionalTextEdits
-
equals
-
hashCode
public int hashCode() -
create
public static ColorPresentation create(String label, TextEdit textEdit, List<TextEdit> additionalTextEdits) Creates a new ColorInformation literal.
-