Package org.eclipse.lsp4j
Class ColorPresentationParams
- java.lang.Object
-
- org.eclipse.lsp4j.WorkDoneProgressAndPartialResultParams
-
- org.eclipse.lsp4j.ColorPresentationParams
-
- All Implemented Interfaces:
PartialResultParams,WorkDoneProgressParams
public class ColorPresentationParams extends WorkDoneProgressAndPartialResultParams
The color presentation request is sent from the client to the server to obtain a list of presentations for a color value at a given location.Since 3.6.0
-
-
Constructor Summary
Constructors Constructor Description ColorPresentationParams()ColorPresentationParams(TextDocumentIdentifier textDocument, Color color, Range range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ColorgetColor()The color information to request presentations for.RangegetRange()The range where the color would be inserted.TextDocumentIdentifiergetTextDocument()The text document.inthashCode()voidsetColor(Color color)The color information to request presentations for.voidsetRange(Range range)The range where the color would be inserted.voidsetTextDocument(TextDocumentIdentifier textDocument)The text document.java.lang.StringtoString()-
Methods inherited from class org.eclipse.lsp4j.WorkDoneProgressAndPartialResultParams
getPartialResultToken, getWorkDoneToken, setPartialResultToken, setPartialResultToken, setPartialResultToken, setWorkDoneToken, setWorkDoneToken, setWorkDoneToken
-
-
-
-
Constructor Detail
-
ColorPresentationParams
public ColorPresentationParams()
-
ColorPresentationParams
public ColorPresentationParams(TextDocumentIdentifier textDocument, Color color, Range range)
-
-
Method Detail
-
getTextDocument
public TextDocumentIdentifier getTextDocument()
The text document.
-
setTextDocument
public void setTextDocument(TextDocumentIdentifier textDocument)
The text document.
-
getColor
public Color getColor()
The color information to request presentations for.
-
setColor
public void setColor(Color color)
The color information to request presentations for.
-
getRange
public Range getRange()
The range where the color would be inserted. Serves as a context.
-
setRange
public void setRange(Range range)
The range where the color would be inserted. Serves as a context.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classWorkDoneProgressAndPartialResultParams
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classWorkDoneProgressAndPartialResultParams
-
hashCode
public int hashCode()
- Overrides:
hashCodein classWorkDoneProgressAndPartialResultParams
-
-