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 boolean
equals(java.lang.Object obj)
Color
getColor()
The color information to request presentations for.Range
getRange()
The range where the color would be inserted.TextDocumentIdentifier
getTextDocument()
The text document.int
hashCode()
void
setColor(Color color)
The color information to request presentations for.void
setRange(Range range)
The range where the color would be inserted.void
setTextDocument(TextDocumentIdentifier textDocument)
The text document.java.lang.String
toString()
-
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:
toString
in classWorkDoneProgressAndPartialResultParams
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classWorkDoneProgressAndPartialResultParams
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classWorkDoneProgressAndPartialResultParams
-
-