org.eclipse.jface.text.templates.SimpleTemplateVariableResolver Java Examples

The following examples show how to use org.eclipse.jface.text.templates.SimpleTemplateVariableResolver. 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: InspectableTemplateVariableResolverRegistry.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
public IInspectableTemplateVariableResolver toInspectableResolver(TemplateVariableResolver resolver) {
	if (resolver instanceof IInspectableTemplateVariableResolver)
		return (IInspectableTemplateVariableResolver) resolver;
	if (resolver instanceof SimpleTemplateVariableResolver) {
		return new InspectableSimpleTemplateVariableResolver((SimpleTemplateVariableResolver) resolver);
	}
	if ("CrossReference".equals(resolver.getType())) {
		return new InspectableCrossReferenceVariableResolver((CrossReferenceTemplateVariableResolver) resolver);
	}
	if ("Enum".equals(resolver.getType())) {
		return new InspectableEnumVariableResolver((EnumTemplateVariableResolver) resolver);
	}
	return null;
}
 
Example #2
Source File: InspectableSimpleTemplateVariableResolver.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public InspectableSimpleTemplateVariableResolver(SimpleTemplateVariableResolver resolver) {
	super(resolver);
}