Class MarkupContentFactory


  • public class MarkupContentFactory
    extends Object
    Factory to create LSP4J MarkupContent
    Author:
    Angelo ZERR
    • Constructor Detail

      • MarkupContentFactory

        public MarkupContentFactory()
    • Method Detail

      • createMarkupContent

        public static org.eclipse.lsp4j.MarkupContent createMarkupContent​(String value,
                                                                          String preferredKind,
                                                                          ISharedSettingsRequest support)
        Create the markup content according the given markup kind and the capability of the client.
        Parameters:
        value - the documentation value
        preferredKind - the preferred markup kind
        Returns:
        the markup content according the given markup kind and the capability of the client.
      • createHover

        public static org.eclipse.lsp4j.Hover createHover​(List<org.eclipse.lsp4j.MarkupContent> values)
        Create the hover from the given markup content list.
        Parameters:
        values - the list of documentation values
        Returns:
        the hover from the given markup content list.
      • createHover

        public static org.eclipse.lsp4j.Hover createHover​(List<org.eclipse.lsp4j.MarkupContent> values,
                                                          org.eclipse.lsp4j.Range defaultRange)
        Create the hover from the given markup content list and range.
        Parameters:
        values - the list of documentation values
        defaultRange - the default range.
        Returns:
        the hover from the given markup content list and range.