/** * 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; }
public void configureRewritableImportSectionEnablement(Binder binder) { binder.bind(Boolean.TYPE) .annotatedWith(Names.named(RewritableImportSection.Factory.REWRITABLEIMPORTSECTION_ENABLEMENT)) .toInstance(Boolean.FALSE); }
public Class<? extends RewritableImportSection.Factory> bindRewritableImportSectionFactory() { return XtxtUMLRewritableImportSection.Factory.class; }
/** * 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; }