Java 类org.eclipse.xtext.xbase.imports.RewritableImportSection 实例源码

项目:dsl-devkit    文件:CheckRewritableImportSectionFactory.java   
/**
 * Override of parse(), to create {@link RewritableImportSection}s which automatically sort import lines.
 */
@Override
public RewritableImportSection parse(final XtextResource resource) {
  RewritableImportSection rewritableImportSection = super.parse(resource);
  rewritableImportSection.setSort(true);
  return rewritableImportSection;
}
项目:xtext-extras    文件:AbstractXbaseRuntimeModule.java   
public void configureRewritableImportSectionEnablement(Binder binder) {
    binder.bind(Boolean.TYPE)
        .annotatedWith(Names.named(RewritableImportSection.Factory.REWRITABLEIMPORTSECTION_ENABLEMENT))
        .toInstance(Boolean.FALSE);
}
项目:xtext-extras    文件:AbstractXbaseWithAnnotationsRuntimeModule.java   
public void configureRewritableImportSectionEnablement(Binder binder) {
    binder.bind(Boolean.TYPE)
        .annotatedWith(Names.named(RewritableImportSection.Factory.REWRITABLEIMPORTSECTION_ENABLEMENT))
        .toInstance(Boolean.FALSE);
}
项目:xtext-extras    文件:AbstractBug462047LangRuntimeModule.java   
public void configureRewritableImportSectionEnablement(Binder binder) {
    binder.bind(Boolean.TYPE)
        .annotatedWith(Names.named(RewritableImportSection.Factory.REWRITABLEIMPORTSECTION_ENABLEMENT))
        .toInstance(Boolean.FALSE);
}
项目:xtext-extras    文件:AbstractContentAssistFragmentTestLangRuntimeModule.java   
public void configureRewritableImportSectionEnablement(Binder binder) {
    binder.bind(Boolean.TYPE)
        .annotatedWith(Names.named(RewritableImportSection.Factory.REWRITABLEIMPORTSECTION_ENABLEMENT))
        .toInstance(Boolean.FALSE);
}
项目:txtUML    文件:XtxtUMLRuntimeModule.java   
public Class<? extends RewritableImportSection.Factory> bindRewritableImportSectionFactory() {
    return XtxtUMLRewritableImportSection.Factory.class;
}
项目:dsl-devkit    文件:CheckRuntimeModule.java   
/**
 * Use our own override of {@link RewritableImportSection.Factory}, to create {@link RewritableImportSection}s which automatically sort import lines.
 *
 * @return {@link CheckRewritableImportSectionFactory}
 */
public Class<? extends RewritableImportSection.Factory> bindRewritableImportSectionFactory() {
  return CheckRewritableImportSectionFactory.class;
}