org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher Java Examples

The following examples show how to use org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FQNPrefixMatcherTest.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected FQNPrefixMatcher createMatcher() {
	IgnoreCase ignoreCase = new PrefixMatcher.IgnoreCase();
	FQNPrefixMatcher result = new FQNPrefixMatcher();
	result.setDelegate(ignoreCase);
	result.setLastSegmentFinder(new FQNPrefixMatcher.LastSegmentFinder() {
		@Override
		public String getLastSegment(String fqn, char delimiter) {
			int i = fqn.lastIndexOf(delimiter);
			if (i >= 0) {
				if (i != fqn.length() - 1)
					return fqn.substring(i + 1);
				return "";
			}
			return fqn;
		}
	});
	return result;
}
 
Example #2
Source File: Bug349773Test.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected FQNPrefixMatcher createMatcher() {
	IgnoreCase ignoreCase = new PrefixMatcher.IgnoreCase();
	FQNPrefixMatcher result = new FQNPrefixMatcher();
	result.setDelegate(ignoreCase);
	result.setLastSegmentFinder(new FQNPrefixMatcher.DefaultLastSegmentFinder());
	return result;
}
 
Example #3
Source File: PrefixMatcherOutlineAdapterTest.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@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);
}
 
Example #4
Source File: AbstractBuilderTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #5
Source File: AbstractRefactoringTestLanguage2UiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #6
Source File: AbstractRefactoringTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #7
Source File: AbstractContentAssistTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #8
Source File: AbstractRefactoringTestLanguage1UiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #9
Source File: AbstractDomainmodelUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #10
Source File: AbstractStatemachineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #11
Source File: AbstractRuleEngineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #12
Source File: AbstractArithmeticsUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #13
Source File: AbstractSingleCodetemplateUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #14
Source File: AbstractXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #15
Source File: AbstractXbaseWithAnnotationsUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #16
Source File: AbstractPureXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #17
Source File: AbstractBug462047LangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #18
Source File: AbstractXImportSectionTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #19
Source File: AbstractContentAssistFragmentTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #20
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #21
Source File: AbstractHelloWorldUiModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #22
Source File: AbstractGamlUiModule.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #23
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #24
Source File: AbstractNoJdtTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #25
Source File: AbstractRegularExpressionUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #26
Source File: AbstractJSONUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #27
Source File: AbstractBromiumUiModule.java    From bromium with MIT License 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #28
Source File: AbstractMyDslUiModule.java    From M2Doc with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #29
Source File: AbstractFileAwareTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}
 
Example #30
Source File: AbstractExBeeLangTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
	return FQNPrefixMatcher.class;
}