Java 类org.eclipse.xtext.formatting.IFormatter 实例源码

项目:xtext-extras    文件:FormatterFragment.java   
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
    if(isGenerateStub())
        return new BindFactory().addTypeToType(IFormatter.class.getName(), getFormatterName(grammar, getNaming()))
            .getBindings();
    else
        return emptySet();
}
项目:dsl-devkit    文件:FormatFragment.java   
/** {@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();
}
项目:OCCI-Studio    文件:AbstractOCCIRuntimeModule.java   
public Class<? extends IFormatter> bindIFormatter() {
    return org.eclipse.cmf.occi.core.xtext.formatting.OCCIFormatter.class;
}
项目:xtext-extras    文件:XbaseRuntimeModule.java   
@Deprecated
@Override
public Class<? extends IFormatter> bindIFormatter() {
  return XbaseFormatter.class;
}
项目:minitl    文件:AbstractMinitlRuntimeModule.java   
public Class<? extends IFormatter> bindIFormatter() {
    return MinitlFormatter.class;
}
项目:xtext-core    文件:Serializer.java   
@Inject
public Serializer(IParseTreeConstructor ptc, IFormatter fmt, IConcreteSyntaxValidator val) {
    this.parseTreeReconstructor = ptc;
    this.formatter = fmt;
    this.validator = val;
}
项目:xtext-core    文件:Serializer.java   
protected IFormatter getFormatter() {
    return formatter;
}
项目:xtext-core    文件:DefaultRuntimeModule.java   
public Class<? extends IFormatter> bindIFormatter() {
    return OneWhitespaceFormatter.class;
}
项目:xtext-core    文件:XtextRuntimeModule.java   
@Override
public Class<? extends IFormatter> bindIFormatter() {
    return XtextFormatter.class;
}
项目:xtext-core    文件:FormatterTestLanguageRuntimeModule.java   
@Override
public Class<? extends IFormatter> bindIFormatter() {
    return FormatterTestConfig.class;
}
项目:dsl-devkit    文件:FormatterTestLanguageRuntimeModule.java   
/** {@inheritDoc} */
@Override
public Class<? extends IFormatter> bindIFormatter() {
  return FormatterTestConfig.class;
}
项目:DialogScriptDSL    文件:DialogScriptRuntimeModule.java   
@Override
public Class<? extends IFormatter> bindIFormatter() {
    return DialogScriptFormatter.class;
}
项目:smaccm    文件:AbstractInputConstraintRuntimeModule.java   
public Class<? extends IFormatter> bindIFormatter() {
    return InputConstraintFormatter.class;
}