Package org.eclipse.lemminx.utils
Class MarkupContentFactory
- java.lang.Object
-
- org.eclipse.lemminx.utils.MarkupContentFactory
-
public class MarkupContentFactory extends Object
Factory to create LSP4JMarkupContent- Author:
- Angelo ZERR
-
-
Field Summary
Fields Modifier and Type Field Description static StringMARKDOWN_SEPARATOR
-
Constructor Summary
Constructors Constructor Description MarkupContentFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.lsp4j.HovercreateHover(List<org.eclipse.lsp4j.MarkupContent> values)Create the hover from the given markup content list.static org.eclipse.lsp4j.HovercreateHover(List<org.eclipse.lsp4j.MarkupContent> values, org.eclipse.lsp4j.Range defaultRange)Create the hover from the given markup content list and range.static org.eclipse.lsp4j.MarkupContentcreateMarkupContent(String value, String preferredKind, ISharedSettingsRequest support)Create the markup content according the given markup kind and the capability of the client.
-
-
-
Field Detail
-
MARKDOWN_SEPARATOR
public static final String MARKDOWN_SEPARATOR
- See Also:
- Constant Field Values
-
-
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 valuepreferredKind- 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 valuesdefaultRange- the default range.- Returns:
- the hover from the given markup content list and range.
-
-