Class CompletionPrefixProvider
- java.lang.Object
-
- org.eclipse.xtext.ide.editor.contentassist.CompletionPrefixProvider
-
- Direct Known Subclasses:
IndentationAwareCompletionPrefixProvider
public class CompletionPrefixProvider extends java.lang.ObjectSmall utility to extract the parsable content of a document when content assist is invoked at a given location.- Since:
- 2.13
-
-
Constructor Summary
Constructors Constructor Description CompletionPrefixProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInputToParse(java.lang.String completeInput, int offset, int completionOffset)Standard languages only need to parse the text up to the last hidden token sequence in the document.org.eclipse.xtext.nodemodel.INodegetLastCompleteNodeByOffset(org.eclipse.xtext.nodemodel.INode node, int offsetPosition, int completionOffset)Returns the last node that appears to be part of the prefix.
-
-
-
Method Detail
-
getInputToParse
public java.lang.String getInputToParse(java.lang.String completeInput, int offset, int completionOffset)Standard languages only need to parse the text up to the last hidden token sequence in the document. Thus the string from start to the normalized offset is sufficient.
-
getLastCompleteNodeByOffset
public org.eclipse.xtext.nodemodel.INode getLastCompleteNodeByOffset(org.eclipse.xtext.nodemodel.INode node, int offsetPosition, int completionOffset)Returns the last node that appears to be part of the prefix. This will be used to determine the current model object that'll be the most special context instance in the proposal provider.
-
-