本文整理汇总了Java中org.eclipse.xtext.formatting.IFormatter类的典型用法代码示例。如果您正苦于以下问题:Java IFormatter类的具体用法?Java IFormatter怎么用?Java IFormatter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFormatter类属于org.eclipse.xtext.formatting包,在下文中一共展示了IFormatter类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGuiceBindingsRt
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
if(isGenerateStub())
return new BindFactory().addTypeToType(IFormatter.class.getName(), getFormatterName(grammar, getNaming()))
.getBindings();
else
return emptySet();
}
示例2: getGuiceBindingsRt
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public Set<Binding> getGuiceBindingsRt(final Grammar grammar) {
final BindFactory bindFactory = new BindFactory();
bindFactory.addTypeToType(IFormatter.class.getName(), FormatGeneratorUtil.getFormatterName(grammar, ""));
bindFactory.addTypeToType(INodeModelFormatter.class.getName(), RegionNodeModelFormatter.class.getName());
bindFactory.addTypeToType(INodeModelStreamer.class.getName(), DirectNodeModelStreamer.class.getName());
return bindFactory.getBindings();
}
示例3: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
public Class<? extends IFormatter> bindIFormatter() {
return org.eclipse.cmf.occi.core.xtext.formatting.OCCIFormatter.class;
}
示例4: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
@Deprecated
@Override
public Class<? extends IFormatter> bindIFormatter() {
return XbaseFormatter.class;
}
示例5: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
public Class<? extends IFormatter> bindIFormatter() {
return MinitlFormatter.class;
}
示例6: Serializer
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
@Inject
public Serializer(IParseTreeConstructor ptc, IFormatter fmt, IConcreteSyntaxValidator val) {
this.parseTreeReconstructor = ptc;
this.formatter = fmt;
this.validator = val;
}
示例7: getFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
protected IFormatter getFormatter() {
return formatter;
}
示例8: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
public Class<? extends IFormatter> bindIFormatter() {
return OneWhitespaceFormatter.class;
}
示例9: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
@Override
public Class<? extends IFormatter> bindIFormatter() {
return XtextFormatter.class;
}
示例10: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
@Override
public Class<? extends IFormatter> bindIFormatter() {
return FormatterTestConfig.class;
}
示例11: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public Class<? extends IFormatter> bindIFormatter() {
return FormatterTestConfig.class;
}
示例12: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
@Override
public Class<? extends IFormatter> bindIFormatter() {
return DialogScriptFormatter.class;
}
示例13: bindIFormatter
import org.eclipse.xtext.formatting.IFormatter; //导入依赖的package包/类
public Class<? extends IFormatter> bindIFormatter() {
return InputConstraintFormatter.class;
}