Class XMLDocumentColorParticipant
- java.lang.Object
-
- org.eclipse.lemminx.extensions.colors.participants.XMLDocumentColorParticipant
-
- All Implemented Interfaces:
IDocumentColorParticipant
public class XMLDocumentColorParticipant extends Object implements IDocumentColorParticipant
XML document color particpant based on theXMLColorsSettings.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description XMLDocumentColorParticipant(XMLColorsPlugin xmlColorsPlugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoColorPresentations(DOMDocument xmlDocument, org.eclipse.lsp4j.ColorPresentationParams params, List<org.eclipse.lsp4j.ColorPresentation> presentations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Fill the given thepresentationslist ofColorPresentationfor the given DOM documentxmlDocumentand the givenparamscolors presentation parameter.voiddoDocumentColor(DOMDocument xmlDocument, List<org.eclipse.lsp4j.ColorInformation> colors, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Fill the given thecolorslist ofColorInformationfor the given DOM documentxmlDocument.
-
-
-
Constructor Detail
-
XMLDocumentColorParticipant
public XMLDocumentColorParticipant(XMLColorsPlugin xmlColorsPlugin)
-
-
Method Detail
-
doDocumentColor
public void doDocumentColor(DOMDocument xmlDocument, List<org.eclipse.lsp4j.ColorInformation> colors, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Description copied from interface:IDocumentColorParticipantFill the given thecolorslist ofColorInformationfor the given DOM documentxmlDocument.- Specified by:
doDocumentColorin interfaceIDocumentColorParticipant- Parameters:
xmlDocument- the DOM document.colors- the colors list to update.cancelChecker- the cancel checker.
-
doColorPresentations
public void doColorPresentations(DOMDocument xmlDocument, org.eclipse.lsp4j.ColorPresentationParams params, List<org.eclipse.lsp4j.ColorPresentation> presentations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Description copied from interface:IDocumentColorParticipantFill the given thepresentationslist ofColorPresentationfor the given DOM documentxmlDocumentand the givenparamscolors presentation parameter.- Specified by:
doColorPresentationsin interfaceIDocumentColorParticipant- Parameters:
xmlDocument- the DOM document.params- the color presentation parameter.presentations- the presentations list to update.cancelChecker- the cancel checker.
-
-