public EObjectConsumer(ITransientValueService transientValueService, EObject described) { this.described = described; this.transientValueService = transientValueService; EList<EStructuralFeature> features = described.eClass().getEAllStructuralFeatures(); nextFeatureId = new int[features.size()]; for (int featureId = 0; featureId < features.size(); featureId++) { EStructuralFeature feature = features.get(featureId); if (feature.isMany() && transientValueService.isCheckElementsIndividually(described, feature)) { if (multiFeatures == null) multiFeatures = new BitSet(); multiFeatures.set(featureId); nextFeatureId[featureId] = firstID(feature); } else if (!transientValueService.isTransient(described, feature, -1)) { nextFeatureId[featureId] = firstID(feature); } else nextFeatureId[featureId] = -1; // System.out.println(id + ":" + f.getName() + " -> " + next[id]); } // System.out.println("x"); }
private EObjectConsumer(ITransientValueService tv, EObject described, int[] next, BitSet multi) { super(); this.transientValueService = tv; this.described = described; this.nextFeatureId = next; this.multiFeatures = multi; }
private void registerGuiceBindingsRt() { new GuiceModuleAccess.BindingFactory() .addTypeToType(typeRef(IAtomicDerivedStateProcessorRegistry.class), typeRef(AtomicDerivedStateProcessorRegistry.class)) .addTypeToType(typeRef(IDerivedStateProcessor.class), typeRef(DerivedStateProcessor.class)) .addTypeToType(typeRef(ICDOResourceStateHandler.class), typeRef(DerivedStateProcessor.class)) .addTypeToType(typeRef(IDerivedStateComputer.class), typeRef(DefaultDerivedStateComputer.class)) .addTypeToType(typeRef(IDerivedStateComputerSorter.class), getDerivedStateElementComparatorName()) .addTypeToType(typeRef(ITransientStatusProvider.class), typeRef(DelegatingTransientStatusProvider.class)) .addTypeToType(typeRef(ITransientValueService.class), typeRef(BasicCooperateTransientValueService.class)) .addConfiguredBinding(ITransientValueService.class.getSimpleName(), new StringConcatenationClient() { @Override protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) { builder.append("binder.bind("); builder.append(org.eclipse.xtext.serializer.sequencer.ITransientValueService.class.getName()); builder.append(".class).to("); builder.append(BasicCooperateTransientValueService.class.getName()); builder.append(".class);"); } }) .addTypeToType(typeRef(XtextResource.class), typeRef(InitializingStateAwareResource.class)) .addTypeToType(typeRef(IResourceDescription.Manager.class), typeRef(DerivedStateAwareResourceDescriptionManager.class)) .contributeTo(getLanguage().getRuntimeGenModule()); Set<String> requiredBundles = getProjectConfig().getRuntime().getManifest().getRequiredBundles(); requiredBundles.add("de.cooperateproject.modeling.textual.xtext.runtime;visibility:=reexport"); requiredBundles.add("de.cooperateproject.modeling.textual.common;visibility:=reexport"); }
@Override public Class<? extends ITransientValueService> bindITransientValueService() { return OCCITransientValueService.class; }
public Class<? extends org.eclipse.xtext.serializer.sequencer.ITransientValueService> bindITransientValueServiceOld() { return OCCICustomLegacyTransientValueService.class; }
public Class<? extends ITransientValueService> bindITransientValueService() { return DefaultTransientValueService.class; }
@Override public Class<? extends ITransientValueService> bindITransientValueService() { return XtextTransientValueService.class; }
public Class<? extends org.eclipse.xtext.serializer.sequencer.ITransientValueService> bindITransientValueService2() { return XtextTransientValueService2.class; }
@Override public Class<? extends ITransientValueService> bindITransientValueService() { return TransientHandlerPTC.class; }
public Class<? extends org.eclipse.xtext.serializer.sequencer.ITransientValueService> bindTransientHandlerSerializer() { return TransientHandlerSerializer.class; }
protected ITransientValueService getTransientValueService() { return transientValueService; }
@Override public Class<? extends ITransientValueService> bindITransientValueService() { return STextTransientValueService.class; }
public Class<? extends ITransientValueService> bindITransientValueService() { return BasicCooperateTransientValueService.class; }
public void configureITransientValueService(Binder binder) { binder.bind(org.eclipse.xtext.serializer.sequencer.ITransientValueService.class).to(de.cooperateproject.modeling.textual.common.services.BasicCooperateTransientValueService.class); }
public Class<? extends ITransientValueService> bindITransientValueService() { return EclecticTransientValueService.class; }
@Override public Class<? extends ITransientValueService> bindITransientValueService() { return TextRAMTransientValueService.class; }