Search in sources :

Example 1 with PrefixMatcherOutlineAdapter

use of org.eclipse.xtext.ui.editor.outline.quickoutline.PrefixMatcherOutlineAdapter in project xtext-eclipse by eclipse.

the class PrefixMatcherOutlineAdapterTest method createStringMatcher.

@Override
protected StringMatcher createStringMatcher(String pattern) {
    FQNPrefixMatcher fqnPrefixMatcher = new FQNPrefixMatcher();
    fqnPrefixMatcher.setLastSegmentFinder(new FQNPrefixMatcher.DefaultLastSegmentFinder());
    fqnPrefixMatcher.setDelegate(new PrefixMatcher.CamelCase());
    return new PrefixMatcherOutlineAdapter(pattern, fqnPrefixMatcher);
}
Also used : FQNPrefixMatcher(org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher) PrefixMatcher(org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher) PrefixMatcherOutlineAdapter(org.eclipse.xtext.ui.editor.outline.quickoutline.PrefixMatcherOutlineAdapter) FQNPrefixMatcher(org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher)

Aggregations

FQNPrefixMatcher (org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher)1 PrefixMatcher (org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher)1 PrefixMatcherOutlineAdapter (org.eclipse.xtext.ui.editor.outline.quickoutline.PrefixMatcherOutlineAdapter)1