Class FuzzyMatcher
java.lang.Object
tools.refinery.language.ide.contentassist.FuzzyMatcher
- All Implemented Interfaces:
org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher
public class FuzzyMatcher
extends Object
implements org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher
Implements the candidate matching algoritm used by CodeMirror 6.
Using this class ensures that the same candidates will be returned when
filtering content assist proposals on the server as on the client.
The matching is "fuzzy" (
fzf
-like), i.e., the prefix characters
may occur anywhere in the name, but must be in the same order as in the
prefix.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher
org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher.IgnoreCase
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FuzzyMatcher
public FuzzyMatcher()
-
-
Method Details
-
isCandidateMatchingPrefix
- Specified by:
isCandidateMatchingPrefix
in interfaceorg.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher
-