private void registerGuiceBindingsUi() { new GuiceModuleAccess.BindingFactory() .addTypeToType(typeRef(OutlineFilterAndSorter.class), typeRef(OutlineFlattenFilterAndSorter.class)) .addConfiguredBinding("ToggleOutlineViewContribution", new StringConcatenationClient() { @Override protected void appendTo(TargetStringConcatenation target) { target.append("binder.bind("); target.append(typeRef(IOutlineContribution.class)); target.append(".class).annotatedWith("); target.append(typeRef(Names.class)); target.append(".named(\"ToogleOutlineView\")).to("); target.append(typeRef(FlatOutlineViewContribution.class)); target.append(".class);"); } }).contributeTo(getLanguage().getEclipsePluginGenModule()); getProjectConfig().getEclipsePlugin().getManifest().getRequiredBundles() .add("de.cooperateproject.modeling.textual.common"); }
public Class<? extends OutlineFilterAndSorter> bindOutlineFilterAndSorter() { return OutlineFlattenFilterAndSorter.class; }