geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r354777 [11/13] - in /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src: ./ org/ org/apache/ org/apache/geronimo/ org/apache/geronimo/xml/ org/apache/geronimo/xml/ns/ org/apache/geronimo/xm...
Date Wed, 07 Dec 2005 15:47:48 GMT
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EnterpriseBeansTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EnterpriseBeansTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EnterpriseBeansTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EnterpriseBeansTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,185 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.util.FeatureMapUtil;
+
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.openejb.xml.ns.openejb.jar.EnterpriseBeansType;
+import org.openejb.xml.ns.openejb.jar.JarFactory;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.EnterpriseBeansType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EnterpriseBeansTypeItemProvider
+  extends ItemProviderAdapter
+  implements	
+    IEditingDomainItemProvider,	
+    IStructuredItemContentProvider,	
+    ITreeItemContentProvider,	
+    IItemLabelProvider,	
+    IItemPropertySource		
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This constructs an instance from a factory and a notifier.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public EnterpriseBeansTypeItemProvider(AdapterFactory adapterFactory)
+  {
+    super(adapterFactory);
+  }
+
+  /**
+   * This returns the property descriptors for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getPropertyDescriptors(Object object)
+  {
+    if (itemPropertyDescriptors == null)
+    {
+      super.getPropertyDescriptors(object);
+
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+   * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+   * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Collection getChildrenFeatures(Object object)
+  {
+    if (childrenFeatures == null)
+    {
+      super.getChildrenFeatures(object);
+      childrenFeatures.add(JarPackage.eINSTANCE.getEnterpriseBeansType_Group());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns EnterpriseBeansType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EnterpriseBeansType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    return getString("_UI_EnterpriseBeansType_type");
+  }
+
+  /**
+   * This handles model notifications by calling {@link #updateChildren} to update any cached
+   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void notifyChanged(Notification notification)
+  {
+    updateChildren(notification);
+
+    switch (notification.getFeatureID(EnterpriseBeansType.class))
+    {
+      case JarPackage.ENTERPRISE_BEANS_TYPE__GROUP:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEnterpriseBeansType_Group(),
+         FeatureMapUtil.createEntry
+          (JarPackage.eINSTANCE.getEnterpriseBeansType_Session(),
+           JarFactory.eINSTANCE.createSessionBeanType())));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEnterpriseBeansType_Group(),
+         FeatureMapUtil.createEntry
+          (JarPackage.eINSTANCE.getEnterpriseBeansType_Entity(),
+           JarFactory.eINSTANCE.createEntityBeanType())));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEnterpriseBeansType_Group(),
+         FeatureMapUtil.createEntry
+          (JarPackage.eINSTANCE.getEnterpriseBeansType_MessageDriven(),
+           JarFactory.eINSTANCE.createMessageDrivenBeanType())));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return OpenejbjarEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityBeanTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityBeanTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityBeanTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityBeanTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,454 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.openejb.xml.ns.openejb.jar.EntityBeanType;
+import org.openejb.xml.ns.openejb.jar.JarFactory;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+import org.openejb.xml.ns.pkgen.PkgenFactory;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.EntityBeanType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EntityBeanTypeItemProvider
+  extends ItemProviderAdapter
+  implements	
+    IEditingDomainItemProvider,	
+    IStructuredItemContentProvider,	
+    ITreeItemContentProvider,	
+    IItemLabelProvider,	
+    IItemPropertySource		
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This constructs an instance from a factory and a notifier.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public EntityBeanTypeItemProvider(AdapterFactory adapterFactory)
+  {
+    super(adapterFactory);
+  }
+
+  /**
+   * This returns the property descriptors for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getPropertyDescriptors(Object object)
+  {
+    if (itemPropertyDescriptors == null)
+    {
+      super.getPropertyDescriptors(object);
+
+      addEjbNamePropertyDescriptor(object);
+      addJndiNamePropertyDescriptor(object);
+      addLocalJndiNamePropertyDescriptor(object);
+      addTssTargetNamePropertyDescriptor(object);
+      addTssLinkPropertyDescriptor(object);
+      addTableNamePropertyDescriptor(object);
+      addPrimkeyFieldPropertyDescriptor(object);
+      addIdPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ejb Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addEjbNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_ejbName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_ejbName_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_EjbName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Jndi Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addJndiNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_jndiName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_jndiName_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_JndiName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Local Jndi Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addLocalJndiNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_localJndiName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_localJndiName_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_LocalJndiName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Tss Target Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTssTargetNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_tssTargetName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_tssTargetName_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_TssTargetName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Tss Link feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTssLinkPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_tssLink_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_tssLink_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_TssLink(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Table Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTableNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_tableName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_tableName_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_TableName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Primkey Field feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addPrimkeyFieldPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_primkeyField_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_primkeyField_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_PrimkeyField(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Id feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addIdPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityBeanType_id_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityBeanType_id_feature", "_UI_EntityBeanType_type"),
+         JarPackage.eINSTANCE.getEntityBeanType_Id(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+   * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+   * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Collection getChildrenFeatures(Object object)
+  {
+    if (childrenFeatures == null)
+    {
+      super.getChildrenFeatures(object);
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_Tss());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_CmpFieldMapping());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_KeyGenerator());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_PrefetchGroup());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_Cache());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_GbeanRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_EjbRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_EjbLocalRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_ServiceRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_ResourceRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_ResourceEnvRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEntityBeanType_Query());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EStructuralFeature getChildFeature(Object object, Object child)
+  {
+    // Check the type of the specified child object and return the proper feature to use for
+    // adding (see {@link AddCommand}) it as a child.
+
+    return super.getChildFeature(object, child);
+  }
+
+  /**
+   * This returns EntityBeanType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EntityBeanType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((EntityBeanType)object).getEjbName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_EntityBeanType_type") :
+      getString("_UI_EntityBeanType_type") + " " + label;
+  }
+
+  /**
+   * This handles model notifications by calling {@link #updateChildren} to update any cached
+   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void notifyChanged(Notification notification)
+  {
+    updateChildren(notification);
+
+    switch (notification.getFeatureID(EntityBeanType.class))
+    {
+      case JarPackage.ENTITY_BEAN_TYPE__EJB_NAME:
+      case JarPackage.ENTITY_BEAN_TYPE__JNDI_NAME:
+      case JarPackage.ENTITY_BEAN_TYPE__LOCAL_JNDI_NAME:
+      case JarPackage.ENTITY_BEAN_TYPE__TSS_TARGET_NAME:
+      case JarPackage.ENTITY_BEAN_TYPE__TSS_LINK:
+      case JarPackage.ENTITY_BEAN_TYPE__TABLE_NAME:
+      case JarPackage.ENTITY_BEAN_TYPE__PRIMKEY_FIELD:
+      case JarPackage.ENTITY_BEAN_TYPE__ID:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case JarPackage.ENTITY_BEAN_TYPE__TSS:
+      case JarPackage.ENTITY_BEAN_TYPE__CMP_FIELD_MAPPING:
+      case JarPackage.ENTITY_BEAN_TYPE__KEY_GENERATOR:
+      case JarPackage.ENTITY_BEAN_TYPE__PREFETCH_GROUP:
+      case JarPackage.ENTITY_BEAN_TYPE__CACHE:
+      case JarPackage.ENTITY_BEAN_TYPE__GBEAN_REF:
+      case JarPackage.ENTITY_BEAN_TYPE__EJB_REF:
+      case JarPackage.ENTITY_BEAN_TYPE__EJB_LOCAL_REF:
+      case JarPackage.ENTITY_BEAN_TYPE__SERVICE_REF:
+      case JarPackage.ENTITY_BEAN_TYPE__RESOURCE_REF:
+      case JarPackage.ENTITY_BEAN_TYPE__RESOURCE_ENV_REF:
+      case JarPackage.ENTITY_BEAN_TYPE__QUERY:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_Tss(),
+         JarFactory.eINSTANCE.createTssType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_CmpFieldMapping(),
+         JarFactory.eINSTANCE.createCmpFieldMappingType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_KeyGenerator(),
+         PkgenFactory.eINSTANCE.createKeyGeneratorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_PrefetchGroup(),
+         JarFactory.eINSTANCE.createPrefetchGroupType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_Cache(),
+         JarFactory.eINSTANCE.createCacheType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_GbeanRef(),
+         NamingFactory.eINSTANCE.createGbeanRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_EjbRef(),
+         NamingFactory.eINSTANCE.createEjbRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_EjbLocalRef(),
+         NamingFactory.eINSTANCE.createEjbLocalRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_ServiceRef(),
+         NamingFactory.eINSTANCE.createServiceRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_ResourceRef(),
+         NamingFactory.eINSTANCE.createResourceRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_ResourceEnvRef(),
+         NamingFactory.eINSTANCE.createResourceEnvRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEntityBeanType_Query(),
+         JarFactory.eINSTANCE.createQueryType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return OpenejbjarEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityGroupMappingTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityGroupMappingTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityGroupMappingTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EntityGroupMappingTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,170 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.openejb.xml.ns.openejb.jar.EntityGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.EntityGroupMappingType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EntityGroupMappingTypeItemProvider
+  extends ItemProviderAdapter
+  implements	
+    IEditingDomainItemProvider,	
+    IStructuredItemContentProvider,	
+    ITreeItemContentProvider,	
+    IItemLabelProvider,	
+    IItemPropertySource		
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This constructs an instance from a factory and a notifier.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public EntityGroupMappingTypeItemProvider(AdapterFactory adapterFactory)
+  {
+    super(adapterFactory);
+  }
+
+  /**
+   * This returns the property descriptors for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getPropertyDescriptors(Object object)
+  {
+    if (itemPropertyDescriptors == null)
+    {
+      super.getPropertyDescriptors(object);
+
+      addGroupNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Group Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addGroupNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EntityGroupMappingType_groupName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EntityGroupMappingType_groupName_feature", "_UI_EntityGroupMappingType_type"),
+         JarPackage.eINSTANCE.getEntityGroupMappingType_GroupName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns EntityGroupMappingType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EntityGroupMappingType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((EntityGroupMappingType)object).getGroupName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_EntityGroupMappingType_type") :
+      getString("_UI_EntityGroupMappingType_type") + " " + label;
+  }
+
+  /**
+   * This handles model notifications by calling {@link #updateChildren} to update any cached
+   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void notifyChanged(Notification notification)
+  {
+    updateChildren(notification);
+
+    switch (notification.getFeatureID(EntityGroupMappingType.class))
+    {
+      case JarPackage.ENTITY_GROUP_MAPPING_TYPE__GROUP_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return OpenejbjarEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/GroupTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/GroupTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/GroupTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/GroupTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,220 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.openejb.xml.ns.openejb.jar.GroupType;
+import org.openejb.xml.ns.openejb.jar.JarFactory;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.GroupType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class GroupTypeItemProvider
+  extends ItemProviderAdapter
+  implements	
+    IEditingDomainItemProvider,	
+    IStructuredItemContentProvider,	
+    ITreeItemContentProvider,	
+    IItemLabelProvider,	
+    IItemPropertySource		
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This constructs an instance from a factory and a notifier.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public GroupTypeItemProvider(AdapterFactory adapterFactory)
+  {
+    super(adapterFactory);
+  }
+
+  /**
+   * This returns the property descriptors for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getPropertyDescriptors(Object object)
+  {
+    if (itemPropertyDescriptors == null)
+    {
+      super.getPropertyDescriptors(object);
+
+      addGroupNamePropertyDescriptor(object);
+      addCmpFieldNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Group Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addGroupNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GroupType_groupName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GroupType_groupName_feature", "_UI_GroupType_type"),
+         JarPackage.eINSTANCE.getGroupType_GroupName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Cmp Field Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCmpFieldNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GroupType_cmpFieldName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GroupType_cmpFieldName_feature", "_UI_GroupType_type"),
+         JarPackage.eINSTANCE.getGroupType_CmpFieldName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+   * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+   * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Collection getChildrenFeatures(Object object)
+  {
+    if (childrenFeatures == null)
+    {
+      super.getChildrenFeatures(object);
+      childrenFeatures.add(JarPackage.eINSTANCE.getGroupType_CmrField());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns GroupType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/GroupType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((GroupType)object).getGroupName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_GroupType_type") :
+      getString("_UI_GroupType_type") + " " + label;
+  }
+
+  /**
+   * This handles model notifications by calling {@link #updateChildren} to update any cached
+   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void notifyChanged(Notification notification)
+  {
+    updateChildren(notification);
+
+    switch (notification.getFeatureID(GroupType.class))
+    {
+      case JarPackage.GROUP_TYPE__GROUP_NAME:
+      case JarPackage.GROUP_TYPE__CMP_FIELD_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case JarPackage.GROUP_TYPE__CMR_FIELD:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getGroupType_CmrField(),
+         JarFactory.eINSTANCE.createCmrFieldType1()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return OpenejbjarEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/JarItemProviderAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/JarItemProviderAdapterFactory.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/JarItemProviderAdapterFactory.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/JarItemProviderAdapterFactory.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,922 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+
+import org.openejb.xml.ns.openejb.jar.util.JarAdapterFactory;
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JarItemProviderAdapterFactory extends JarAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This keeps track of the root adapter factory that delegates to this adapter factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ComposedAdapterFactory parentAdapterFactory;
+
+  /**
+   * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+  /**
+   * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected Collection supportedTypes = new ArrayList();
+
+  /**
+   * This constructs an instance.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public JarItemProviderAdapterFactory()
+  {
+    supportedTypes.add(IEditingDomainItemProvider.class);
+    supportedTypes.add(IStructuredItemContentProvider.class);
+    supportedTypes.add(ITreeItemContentProvider.class);
+    supportedTypes.add(IItemLabelProvider.class);
+    supportedTypes.add(IItemPropertySource.class);		
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.ActivationConfigPropertyType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ActivationConfigPropertyTypeItemProvider activationConfigPropertyTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.ActivationConfigPropertyType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createActivationConfigPropertyTypeAdapter()
+  {
+    if (activationConfigPropertyTypeItemProvider == null)
+    {
+      activationConfigPropertyTypeItemProvider = new ActivationConfigPropertyTypeItemProvider(this);
+    }
+
+    return activationConfigPropertyTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.ActivationConfigType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ActivationConfigTypeItemProvider activationConfigTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.ActivationConfigType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createActivationConfigTypeAdapter()
+  {
+    if (activationConfigTypeItemProvider == null)
+    {
+      activationConfigTypeItemProvider = new ActivationConfigTypeItemProvider(this);
+    }
+
+    return activationConfigTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CacheType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CacheTypeItemProvider cacheTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CacheType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCacheTypeAdapter()
+  {
+    if (cacheTypeItemProvider == null)
+    {
+      cacheTypeItemProvider = new CacheTypeItemProvider(this);
+    }
+
+    return cacheTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CmpFieldGroupMappingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CmpFieldGroupMappingTypeItemProvider cmpFieldGroupMappingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CmpFieldGroupMappingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCmpFieldGroupMappingTypeAdapter()
+  {
+    if (cmpFieldGroupMappingTypeItemProvider == null)
+    {
+      cmpFieldGroupMappingTypeItemProvider = new CmpFieldGroupMappingTypeItemProvider(this);
+    }
+
+    return cmpFieldGroupMappingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CmpFieldMappingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CmpFieldMappingTypeItemProvider cmpFieldMappingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CmpFieldMappingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCmpFieldMappingTypeAdapter()
+  {
+    if (cmpFieldMappingTypeItemProvider == null)
+    {
+      cmpFieldMappingTypeItemProvider = new CmpFieldMappingTypeItemProvider(this);
+    }
+
+    return cmpFieldMappingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CmrFieldGroupMappingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CmrFieldGroupMappingTypeItemProvider cmrFieldGroupMappingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldGroupMappingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCmrFieldGroupMappingTypeAdapter()
+  {
+    if (cmrFieldGroupMappingTypeItemProvider == null)
+    {
+      cmrFieldGroupMappingTypeItemProvider = new CmrFieldGroupMappingTypeItemProvider(this);
+    }
+
+    return cmrFieldGroupMappingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CmrFieldMappingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CmrFieldMappingTypeItemProvider cmrFieldMappingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldMappingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCmrFieldMappingTypeAdapter()
+  {
+    if (cmrFieldMappingTypeItemProvider == null)
+    {
+      cmrFieldMappingTypeItemProvider = new CmrFieldMappingTypeItemProvider(this);
+    }
+
+    return cmrFieldMappingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CmrFieldType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CmrFieldTypeItemProvider cmrFieldTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCmrFieldTypeAdapter()
+  {
+    if (cmrFieldTypeItemProvider == null)
+    {
+      cmrFieldTypeItemProvider = new CmrFieldTypeItemProvider(this);
+    }
+
+    return cmrFieldTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.CmrFieldType1} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CmrFieldType1ItemProvider cmrFieldType1ItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldType1}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createCmrFieldType1Adapter()
+  {
+    if (cmrFieldType1ItemProvider == null)
+    {
+      cmrFieldType1ItemProvider = new CmrFieldType1ItemProvider(this);
+    }
+
+    return cmrFieldType1ItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.DocumentRoot} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected DocumentRootItemProvider documentRootItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.DocumentRoot}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createDocumentRootAdapter()
+  {
+    if (documentRootItemProvider == null)
+    {
+      documentRootItemProvider = new DocumentRootItemProvider(this);
+    }
+
+    return documentRootItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.EjbRelationshipRoleType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EjbRelationshipRoleTypeItemProvider ejbRelationshipRoleTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.EjbRelationshipRoleType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createEjbRelationshipRoleTypeAdapter()
+  {
+    if (ejbRelationshipRoleTypeItemProvider == null)
+    {
+      ejbRelationshipRoleTypeItemProvider = new EjbRelationshipRoleTypeItemProvider(this);
+    }
+
+    return ejbRelationshipRoleTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.EjbRelationType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EjbRelationTypeItemProvider ejbRelationTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.EjbRelationType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createEjbRelationTypeAdapter()
+  {
+    if (ejbRelationTypeItemProvider == null)
+    {
+      ejbRelationTypeItemProvider = new EjbRelationTypeItemProvider(this);
+    }
+
+    return ejbRelationTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.EmptyType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EmptyTypeItemProvider emptyTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.EmptyType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createEmptyTypeAdapter()
+  {
+    if (emptyTypeItemProvider == null)
+    {
+      emptyTypeItemProvider = new EmptyTypeItemProvider(this);
+    }
+
+    return emptyTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.EnterpriseBeansType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EnterpriseBeansTypeItemProvider enterpriseBeansTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.EnterpriseBeansType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createEnterpriseBeansTypeAdapter()
+  {
+    if (enterpriseBeansTypeItemProvider == null)
+    {
+      enterpriseBeansTypeItemProvider = new EnterpriseBeansTypeItemProvider(this);
+    }
+
+    return enterpriseBeansTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.EntityBeanType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EntityBeanTypeItemProvider entityBeanTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.EntityBeanType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createEntityBeanTypeAdapter()
+  {
+    if (entityBeanTypeItemProvider == null)
+    {
+      entityBeanTypeItemProvider = new EntityBeanTypeItemProvider(this);
+    }
+
+    return entityBeanTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.EntityGroupMappingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EntityGroupMappingTypeItemProvider entityGroupMappingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.EntityGroupMappingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createEntityGroupMappingTypeAdapter()
+  {
+    if (entityGroupMappingTypeItemProvider == null)
+    {
+      entityGroupMappingTypeItemProvider = new EntityGroupMappingTypeItemProvider(this);
+    }
+
+    return entityGroupMappingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.GroupType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected GroupTypeItemProvider groupTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.GroupType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createGroupTypeAdapter()
+  {
+    if (groupTypeItemProvider == null)
+    {
+      groupTypeItemProvider = new GroupTypeItemProvider(this);
+    }
+
+    return groupTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.MessageDrivenBeanType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected MessageDrivenBeanTypeItemProvider messageDrivenBeanTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.MessageDrivenBeanType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createMessageDrivenBeanTypeAdapter()
+  {
+    if (messageDrivenBeanTypeItemProvider == null)
+    {
+      messageDrivenBeanTypeItemProvider = new MessageDrivenBeanTypeItemProvider(this);
+    }
+
+    return messageDrivenBeanTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.MethodParamsType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected MethodParamsTypeItemProvider methodParamsTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.MethodParamsType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createMethodParamsTypeAdapter()
+  {
+    if (methodParamsTypeItemProvider == null)
+    {
+      methodParamsTypeItemProvider = new MethodParamsTypeItemProvider(this);
+    }
+
+    return methodParamsTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.OpenejbJarType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected OpenejbJarTypeItemProvider openejbJarTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.OpenejbJarType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createOpenejbJarTypeAdapter()
+  {
+    if (openejbJarTypeItemProvider == null)
+    {
+      openejbJarTypeItemProvider = new OpenejbJarTypeItemProvider(this);
+    }
+
+    return openejbJarTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.PrefetchGroupType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected PrefetchGroupTypeItemProvider prefetchGroupTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.PrefetchGroupType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createPrefetchGroupTypeAdapter()
+  {
+    if (prefetchGroupTypeItemProvider == null)
+    {
+      prefetchGroupTypeItemProvider = new PrefetchGroupTypeItemProvider(this);
+    }
+
+    return prefetchGroupTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.QueryMethodType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected QueryMethodTypeItemProvider queryMethodTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.QueryMethodType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createQueryMethodTypeAdapter()
+  {
+    if (queryMethodTypeItemProvider == null)
+    {
+      queryMethodTypeItemProvider = new QueryMethodTypeItemProvider(this);
+    }
+
+    return queryMethodTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.QueryType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected QueryTypeItemProvider queryTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.QueryType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createQueryTypeAdapter()
+  {
+    if (queryTypeItemProvider == null)
+    {
+      queryTypeItemProvider = new QueryTypeItemProvider(this);
+    }
+
+    return queryTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.RelationshipRoleSourceType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected RelationshipRoleSourceTypeItemProvider relationshipRoleSourceTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.RelationshipRoleSourceType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createRelationshipRoleSourceTypeAdapter()
+  {
+    if (relationshipRoleSourceTypeItemProvider == null)
+    {
+      relationshipRoleSourceTypeItemProvider = new RelationshipRoleSourceTypeItemProvider(this);
+    }
+
+    return relationshipRoleSourceTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.RelationshipsType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected RelationshipsTypeItemProvider relationshipsTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.RelationshipsType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createRelationshipsTypeAdapter()
+  {
+    if (relationshipsTypeItemProvider == null)
+    {
+      relationshipsTypeItemProvider = new RelationshipsTypeItemProvider(this);
+    }
+
+    return relationshipsTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.RoleMappingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected RoleMappingTypeItemProvider roleMappingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.RoleMappingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createRoleMappingTypeAdapter()
+  {
+    if (roleMappingTypeItemProvider == null)
+    {
+      roleMappingTypeItemProvider = new RoleMappingTypeItemProvider(this);
+    }
+
+    return roleMappingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.SessionBeanType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected SessionBeanTypeItemProvider sessionBeanTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.SessionBeanType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createSessionBeanTypeAdapter()
+  {
+    if (sessionBeanTypeItemProvider == null)
+    {
+      sessionBeanTypeItemProvider = new SessionBeanTypeItemProvider(this);
+    }
+
+    return sessionBeanTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.TssType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected TssTypeItemProvider tssTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.TssType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createTssTypeAdapter()
+  {
+    if (tssTypeItemProvider == null)
+    {
+      tssTypeItemProvider = new TssTypeItemProvider(this);
+    }
+
+    return tssTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.openejb.xml.ns.openejb.jar.WebServiceSecurityType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected WebServiceSecurityTypeItemProvider webServiceSecurityTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.openejb.xml.ns.openejb.jar.WebServiceSecurityType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createWebServiceSecurityTypeAdapter()
+  {
+    if (webServiceSecurityTypeItemProvider == null)
+    {
+      webServiceSecurityTypeItemProvider = new WebServiceSecurityTypeItemProvider(this);
+    }
+
+    return webServiceSecurityTypeItemProvider;
+  }
+
+  /**
+   * 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();
+  }
+
+  /**
+   * This sets the composed adapter factory that contains this factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
+  {
+    this.parentAdapterFactory = parentAdapterFactory;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isFactoryForType(Object type)
+  {
+    return supportedTypes.contains(type) || super.isFactoryForType(type);
+  }
+
+  /**
+   * This implementation substitutes the factory itself as the key for the adapter.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter adapt(Notifier notifier, Object type)
+  {
+    return super.adapt(notifier, this);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object adapt(Object object, Object type)
+  {
+    if (isFactoryForType(type))
+    {
+      Object adapter = super.adapt(object, type);
+      if (!(type instanceof Class) || (((Class)type).isInstance(adapter)))
+      {
+        return adapter;
+      }
+    }
+
+    return null;
+  }
+
+  /**
+   * This adds a listener.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void addListener(INotifyChangedListener notifyChangedListener)
+  {
+    changeNotifier.addListener(notifyChangedListener);
+  }
+
+  /**
+   * This removes a listener.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void removeListener(INotifyChangedListener notifyChangedListener)
+  {
+    changeNotifier.removeListener(notifyChangedListener);
+  }
+
+  /**
+   * 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);
+    }
+  }
+
+  /**
+   * This disposes all of the item providers created by this factory. 
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void dispose()
+  {
+    if (activationConfigPropertyTypeItemProvider != null) activationConfigPropertyTypeItemProvider.dispose();
+    if (activationConfigTypeItemProvider != null) activationConfigTypeItemProvider.dispose();
+    if (cacheTypeItemProvider != null) cacheTypeItemProvider.dispose();
+    if (cmpFieldGroupMappingTypeItemProvider != null) cmpFieldGroupMappingTypeItemProvider.dispose();
+    if (cmpFieldMappingTypeItemProvider != null) cmpFieldMappingTypeItemProvider.dispose();
+    if (cmrFieldGroupMappingTypeItemProvider != null) cmrFieldGroupMappingTypeItemProvider.dispose();
+    if (cmrFieldMappingTypeItemProvider != null) cmrFieldMappingTypeItemProvider.dispose();
+    if (cmrFieldTypeItemProvider != null) cmrFieldTypeItemProvider.dispose();
+    if (cmrFieldType1ItemProvider != null) cmrFieldType1ItemProvider.dispose();
+    if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+    if (ejbRelationshipRoleTypeItemProvider != null) ejbRelationshipRoleTypeItemProvider.dispose();
+    if (ejbRelationTypeItemProvider != null) ejbRelationTypeItemProvider.dispose();
+    if (emptyTypeItemProvider != null) emptyTypeItemProvider.dispose();
+    if (enterpriseBeansTypeItemProvider != null) enterpriseBeansTypeItemProvider.dispose();
+    if (entityBeanTypeItemProvider != null) entityBeanTypeItemProvider.dispose();
+    if (entityGroupMappingTypeItemProvider != null) entityGroupMappingTypeItemProvider.dispose();
+    if (groupTypeItemProvider != null) groupTypeItemProvider.dispose();
+    if (messageDrivenBeanTypeItemProvider != null) messageDrivenBeanTypeItemProvider.dispose();
+    if (methodParamsTypeItemProvider != null) methodParamsTypeItemProvider.dispose();
+    if (openejbJarTypeItemProvider != null) openejbJarTypeItemProvider.dispose();
+    if (prefetchGroupTypeItemProvider != null) prefetchGroupTypeItemProvider.dispose();
+    if (queryMethodTypeItemProvider != null) queryMethodTypeItemProvider.dispose();
+    if (queryTypeItemProvider != null) queryTypeItemProvider.dispose();
+    if (relationshipRoleSourceTypeItemProvider != null) relationshipRoleSourceTypeItemProvider.dispose();
+    if (relationshipsTypeItemProvider != null) relationshipsTypeItemProvider.dispose();
+    if (roleMappingTypeItemProvider != null) roleMappingTypeItemProvider.dispose();
+    if (sessionBeanTypeItemProvider != null) sessionBeanTypeItemProvider.dispose();
+    if (tssTypeItemProvider != null) tssTypeItemProvider.dispose();
+    if (webServiceSecurityTypeItemProvider != null) webServiceSecurityTypeItemProvider.dispose();
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MessageDrivenBeanTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MessageDrivenBeanTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MessageDrivenBeanTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MessageDrivenBeanTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.openejb.xml.ns.openejb.jar.JarFactory;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.MessageDrivenBeanType;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.MessageDrivenBeanType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MessageDrivenBeanTypeItemProvider
+  extends ItemProviderAdapter
+  implements	
+    IEditingDomainItemProvider,	
+    IStructuredItemContentProvider,	
+    ITreeItemContentProvider,	
+    IItemLabelProvider,	
+    IItemPropertySource		
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This constructs an instance from a factory and a notifier.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public MessageDrivenBeanTypeItemProvider(AdapterFactory adapterFactory)
+  {
+    super(adapterFactory);
+  }
+
+  /**
+   * This returns the property descriptors for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getPropertyDescriptors(Object object)
+  {
+    if (itemPropertyDescriptors == null)
+    {
+      super.getPropertyDescriptors(object);
+
+      addEjbNamePropertyDescriptor(object);
+      addIdPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ejb Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addEjbNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDrivenBeanType_ejbName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDrivenBeanType_ejbName_feature", "_UI_MessageDrivenBeanType_type"),
+         JarPackage.eINSTANCE.getMessageDrivenBeanType_EjbName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Id feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addIdPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDrivenBeanType_id_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDrivenBeanType_id_feature", "_UI_MessageDrivenBeanType_type"),
+         JarPackage.eINSTANCE.getMessageDrivenBeanType_Id(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+   * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+   * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Collection getChildrenFeatures(Object object)
+  {
+    if (childrenFeatures == null)
+    {
+      super.getChildrenFeatures(object);
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_ResourceAdapter());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_ActivationConfig());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_GbeanRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_EjbRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_EjbLocalRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_ServiceRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_ResourceRef());
+      childrenFeatures.add(JarPackage.eINSTANCE.getMessageDrivenBeanType_ResourceEnvRef());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EStructuralFeature getChildFeature(Object object, Object child)
+  {
+    // Check the type of the specified child object and return the proper feature to use for
+    // adding (see {@link AddCommand}) it as a child.
+
+    return super.getChildFeature(object, child);
+  }
+
+  /**
+   * This returns MessageDrivenBeanType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/MessageDrivenBeanType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((MessageDrivenBeanType)object).getEjbName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_MessageDrivenBeanType_type") :
+      getString("_UI_MessageDrivenBeanType_type") + " " + label;
+  }
+
+  /**
+   * This handles model notifications by calling {@link #updateChildren} to update any cached
+   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void notifyChanged(Notification notification)
+  {
+    updateChildren(notification);
+
+    switch (notification.getFeatureID(MessageDrivenBeanType.class))
+    {
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_NAME:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ID:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__GBEAN_REF:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF:
+      case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_ResourceAdapter(),
+         NamingFactory.eINSTANCE.createResourceLocatorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_ActivationConfig(),
+         JarFactory.eINSTANCE.createActivationConfigType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_GbeanRef(),
+         NamingFactory.eINSTANCE.createGbeanRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_EjbRef(),
+         NamingFactory.eINSTANCE.createEjbRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_EjbLocalRef(),
+         NamingFactory.eINSTANCE.createEjbLocalRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_ServiceRef(),
+         NamingFactory.eINSTANCE.createServiceRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_ResourceRef(),
+         NamingFactory.eINSTANCE.createResourceRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getMessageDrivenBeanType_ResourceEnvRef(),
+         NamingFactory.eINSTANCE.createResourceEnvRefType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return OpenejbjarEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MethodParamsTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MethodParamsTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MethodParamsTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/MethodParamsTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,167 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.openejb.xml.ns.openejb.jar.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.MethodParamsType;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.MethodParamsType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MethodParamsTypeItemProvider
+  extends ItemProviderAdapter
+  implements	
+    IEditingDomainItemProvider,	
+    IStructuredItemContentProvider,	
+    ITreeItemContentProvider,	
+    IItemLabelProvider,	
+    IItemPropertySource		
+{
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final String copyright = "";
+
+  /**
+   * This constructs an instance from a factory and a notifier.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public MethodParamsTypeItemProvider(AdapterFactory adapterFactory)
+  {
+    super(adapterFactory);
+  }
+
+  /**
+   * This returns the property descriptors for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getPropertyDescriptors(Object object)
+  {
+    if (itemPropertyDescriptors == null)
+    {
+      super.getPropertyDescriptors(object);
+
+      addMethodParamPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Method Param feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addMethodParamPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MethodParamsType_methodParam_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MethodParamsType_methodParam_feature", "_UI_MethodParamsType_type"),
+         JarPackage.eINSTANCE.getMethodParamsType_MethodParam(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns MethodParamsType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/MethodParamsType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    return getString("_UI_MethodParamsType_type");
+  }
+
+  /**
+   * This handles model notifications by calling {@link #updateChildren} to update any cached
+   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void notifyChanged(Notification notification)
+  {
+    updateChildren(notification);
+
+    switch (notification.getFeatureID(MethodParamsType.class))
+    {
+      case JarPackage.METHOD_PARAMS_TYPE__METHOD_PARAM:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return OpenejbjarEditPlugin.INSTANCE;
+  }
+
+}



Mime
View raw message