/** * This returns the root adapter factory that contains this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ComposeableAdapterFactory getRootAdapterFactory() { return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); }
public Adapter adapt(Notifier target, Object type) { return adapt(target, type, false); }
/** * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
new ComposedAdapterFactory(ComposedAdapterFactory. Descriptor.Registry.INSTANCE); factory.adapt(symbol, IContentProposalProvider.class);
adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
AdapterFactory delegateAdapterFactory = getFactoryForTypes(types); if (delegateAdapterFactory != null) if (superclass != null) result = adapt(target, type, failedPackages, javaClass.getSuperclass(), isNew); for (int i = 0; i < interfaces.length; ++i) result = adapt(target, type, failedPackages, interfaces[i], isNew); if (result != null)
/** * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
new ComposedAdapterFactory( ComposedAdapterFactory.Descriptor.Registry.INSTANCE); final IProposalCreationFactory creationInfo = factory.adapt(propSymbol, IContentProposalProvider.class);
public MappingRoot getMappingRoot() { if (mappingRoot == null) { mappingRoot = XSD2EcoreFactory.eINSTANCE.createXSD2EcoreMappingRoot(); AdapterFactory xsdAdapterFactory = new XSDItemProviderAdapterFactory(); AdapterFactory ecoreAdapterFactory = new EcoreItemProviderAdapterFactory(); AdapterFactory composedAdapterFactory = new ComposedAdapterFactory (new AdapterFactory[] { new ResourceItemProviderAdapterFactory(), new MappingItemProviderAdapterFactory(), new XSDItemProviderAdapterFactory(), new EcoreItemProviderAdapterFactory() }); mappingRoot.setDomain (new PluginAdapterFactoryMappingDomain (composedAdapterFactory, xsdAdapterFactory, ecoreAdapterFactory, null, null)); mappingRoot.setTopToBottom(topToBottom); } return mappingRoot; }
AdapterFactory delegateAdapterFactory = getFactoryForTypes(types); if (delegateAdapterFactory != null) delegateAdapterFactory = getFactoryForTypes(superTypes); if (delegateAdapterFactory != null) adapt(target, type, new HashSet<Object>(), target.getClass(), true): adapt(target, type, new HashSet<Object>(), target.getClass());
public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
/** * This returns the root adapter factory that contains this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ComposeableAdapterFactory getRootAdapterFactory () { return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory (); }
public MappingRoot getMappingRoot() { if (mappingRoot == null) { mappingRoot = XSD2EcoreFactory.eINSTANCE.createXSD2EcoreMappingRoot(); AdapterFactory xsdAdapterFactory = new XSDItemProviderAdapterFactory(); AdapterFactory ecoreAdapterFactory = new EcoreItemProviderAdapterFactory(); AdapterFactory composedAdapterFactory = new ComposedAdapterFactory (new AdapterFactory[] { new ResourceItemProviderAdapterFactory(), new MappingItemProviderAdapterFactory(), new XSDItemProviderAdapterFactory(), new EcoreItemProviderAdapterFactory() }); mappingRoot.setDomain (new PluginAdapterFactoryMappingDomain (composedAdapterFactory, xsdAdapterFactory, ecoreAdapterFactory, null, null)); mappingRoot.setTopToBottom(topToBottom); } return mappingRoot; }
public Adapter adaptNew(Notifier target, Object type) { return adapt(target, type, true); }
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
/** * This returns the root adapter factory that contains this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ComposeableAdapterFactory getRootAdapterFactory() { return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); }
protected Adapter adapt(Notifier target, Object type, Collection<Object> failedPackages, Class<?> javaClass) { return adapt(target, type, failedPackages, javaClass, false); }
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. */ public void fireNotifyChanged(Notification msg) { changeNotifier.fireNotifyChanged(msg); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(msg); } }
/** * This returns the root adapter factory that delegates to this factory. */ public ComposeableAdapterFactory getRootAdapterFactory() { return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); }
public Object adapt(Object target, Object type) { Object adapter = target; if (target instanceof Notifier) { adapter = adapt((Notifier)target, type); } if (!(type instanceof Class<?>) || ((Class<?>)type).isInstance(adapter)) { return adapter; } return null; }