Update(EStructuralFeature.Setting setting) { this.setting = setting; InternalEObject owner = (InternalEObject) setting.getEObject(); CDOObject cdoOwner = CDOUtil.getCDOObject(owner); InternalCDOView view = (InternalCDOView) cdoOwner.cdoView(); store = view.getStore(); }
public void cdoInternalSetView(CDOView view) { if (TRACER.isEnabled()) { TRACER.format("Setting view: {0} for {1}", view, instance); // $NON-NLS-1$ } InternalCDOView newView = (InternalCDOView) view; if (newView != null) { viewAndState = newView.getViewAndState(viewAndState.state); } else { viewAndState = ViewAndState.TRANSIENT.getViewAndState(viewAndState.state); } }
@Override public synchronized EList<Adapter> eAdapters() { EList<Adapter> adapters = super.eAdapters(); if (!FSMUtil.isTransient(this)) { InternalCDOView view = cdoView(); for (Adapter adapter : adapters) { if (!(adapter instanceof CDOLegacyWrapper)) { view.handleAddAdapter(this, adapter); } } } return adapters; }