Class ContentModelElementCompletionItem
java.lang.Object
org.eclipse.lsp4j.CompletionItem
org.eclipse.lemminx.services.extensions.completion.AbstractElementCompletionItem<CMElementDeclaration,XMLGenerator>
org.eclipse.lemminx.extensions.contentmodel.participants.completion.ContentModelElementCompletionItem
public class ContentModelElementCompletionItem
extends AbstractElementCompletionItem<CMElementDeclaration,XMLGenerator>
Element completion item created from a content model (schema/grammar element
declaration).
-
Field Summary
Fields inherited from class org.eclipse.lemminx.services.extensions.completion.AbstractElementCompletionItem
UPDATE_END_TAG_NAME_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionContentModelElementCompletionItem(String tagName, CMElementDeclaration elementDeclaration, XMLGenerator generator, ICompletionRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.lsp4j.MarkupContentReturns the completion item documentation and null otherwise.protected StringgenerateFullElementContent(boolean generateEndTag) Returns the full element content (ex :). Methods inherited from class org.eclipse.lemminx.services.extensions.completion.AbstractElementCompletionItem
addResolveData, getGenerator, getRequest, getResolverParticipantId, getSourceElement, getTagName, hasContentAfterTagName, isElementClosed, updateEndTagNameMethods inherited from class org.eclipse.lsp4j.CompletionItem
equals, getAdditionalTextEdits, getCommand, getCommitCharacters, getData, getDeprecated, getDetail, getDocumentation, getFilterText, getInsertText, getInsertTextFormat, getInsertTextMode, getKind, getLabel, getLabelDetails, getPreselect, getSortText, getTags, getTextEdit, getTextEditText, hashCode, setAdditionalTextEdits, setCommand, setCommitCharacters, setData, setDeprecated, setDetail, setDocumentation, setDocumentation, setDocumentation, setFilterText, setInsertText, setInsertTextFormat, setInsertTextMode, setKind, setLabel, setLabelDetails, setPreselect, setSortText, setTags, setTextEdit, setTextEditText, toString
-
Constructor Details
-
ContentModelElementCompletionItem
public ContentModelElementCompletionItem(String tagName, CMElementDeclaration elementDeclaration, XMLGenerator generator, ICompletionRequest request)
-
-
Method Details
-
generateDocumentation
protected org.eclipse.lsp4j.MarkupContent generateDocumentation()Description copied from class:AbstractElementCompletionItemReturns the completion item documentation and null otherwise.- Specified by:
generateDocumentationin classAbstractElementCompletionItem<CMElementDeclaration,XMLGenerator> - Returns:
- the completion item documentation and null otherwise.
-
generateFullElementContent
Description copied from class:AbstractElementCompletionItemReturns the full element content (ex :). - Specified by:
generateFullElementContentin classAbstractElementCompletionItem<CMElementDeclaration,XMLGenerator> - Parameters:
generateEndTag- true if the element end tag must be generated and false otherwise.- Returns:
- the full element content (ex :
).
-