geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r354777 [10/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/CacheTypeItemProvider.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/CacheTypeItemProvider.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/CacheTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CacheTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,193 @@
+/**
+ * <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.CacheType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CacheType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CacheTypeItemProvider
+  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 CacheTypeItemProvider(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);
+
+      addIsolationLevelPropertyDescriptor(object);
+      addSizePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Isolation Level feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addIsolationLevelPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CacheType_isolationLevel_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CacheType_isolationLevel_feature", "_UI_CacheType_type"),
+         JarPackage.eINSTANCE.getCacheType_IsolationLevel(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Size feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addSizePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CacheType_size_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CacheType_size_feature", "_UI_CacheType_type"),
+         JarPackage.eINSTANCE.getCacheType_Size(),
+         true,
+         ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CacheType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CacheType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CacheType)object).getIsolationLevel();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CacheType_type") :
+      getString("_UI_CacheType_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(CacheType.class))
+    {
+      case JarPackage.CACHE_TYPE__ISOLATION_LEVEL:
+      case JarPackage.CACHE_TYPE__SIZE:
+        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/CmpFieldGroupMappingTypeItemProvider.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/CmpFieldGroupMappingTypeItemProvider.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/CmpFieldGroupMappingTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CmpFieldGroupMappingTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,193 @@
+/**
+ * <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.CmpFieldGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CmpFieldGroupMappingType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CmpFieldGroupMappingTypeItemProvider
+  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 CmpFieldGroupMappingTypeItemProvider(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_CmpFieldGroupMappingType_groupName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldGroupMappingType_groupName_feature", "_UI_CmpFieldGroupMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldGroupMappingType_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_CmpFieldGroupMappingType_cmpFieldName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldGroupMappingType_cmpFieldName_feature", "_UI_CmpFieldGroupMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldGroupMappingType_CmpFieldName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CmpFieldGroupMappingType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CmpFieldGroupMappingType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CmpFieldGroupMappingType)object).getGroupName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CmpFieldGroupMappingType_type") :
+      getString("_UI_CmpFieldGroupMappingType_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(CmpFieldGroupMappingType.class))
+    {
+      case JarPackage.CMP_FIELD_GROUP_MAPPING_TYPE__GROUP_NAME:
+      case JarPackage.CMP_FIELD_GROUP_MAPPING_TYPE__CMP_FIELD_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/CmpFieldMappingTypeItemProvider.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/CmpFieldMappingTypeItemProvider.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/CmpFieldMappingTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CmpFieldMappingTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,262 @@
+/**
+ * <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.CmpFieldMappingType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CmpFieldMappingType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CmpFieldMappingTypeItemProvider
+  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 CmpFieldMappingTypeItemProvider(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);
+
+      addCmpFieldNamePropertyDescriptor(object);
+      addCmpFieldClassPropertyDescriptor(object);
+      addTableColumnPropertyDescriptor(object);
+      addSqlTypePropertyDescriptor(object);
+      addTypeConverterPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * 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_CmpFieldMappingType_cmpFieldName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldMappingType_cmpFieldName_feature", "_UI_CmpFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldMappingType_CmpFieldName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Cmp Field Class feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCmpFieldClassPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmpFieldMappingType_cmpFieldClass_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldMappingType_cmpFieldClass_feature", "_UI_CmpFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldMappingType_CmpFieldClass(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Table Column feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTableColumnPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmpFieldMappingType_tableColumn_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldMappingType_tableColumn_feature", "_UI_CmpFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldMappingType_TableColumn(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Sql Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addSqlTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmpFieldMappingType_sqlType_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldMappingType_sqlType_feature", "_UI_CmpFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldMappingType_SqlType(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Type Converter feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTypeConverterPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmpFieldMappingType_typeConverter_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmpFieldMappingType_typeConverter_feature", "_UI_CmpFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmpFieldMappingType_TypeConverter(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CmpFieldMappingType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CmpFieldMappingType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CmpFieldMappingType)object).getCmpFieldName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CmpFieldMappingType_type") :
+      getString("_UI_CmpFieldMappingType_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(CmpFieldMappingType.class))
+    {
+      case JarPackage.CMP_FIELD_MAPPING_TYPE__CMP_FIELD_NAME:
+      case JarPackage.CMP_FIELD_MAPPING_TYPE__CMP_FIELD_CLASS:
+      case JarPackage.CMP_FIELD_MAPPING_TYPE__TABLE_COLUMN:
+      case JarPackage.CMP_FIELD_MAPPING_TYPE__SQL_TYPE:
+      case JarPackage.CMP_FIELD_MAPPING_TYPE__TYPE_CONVERTER:
+        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/CmrFieldGroupMappingTypeItemProvider.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/CmrFieldGroupMappingTypeItemProvider.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/CmrFieldGroupMappingTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CmrFieldGroupMappingTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,193 @@
+/**
+ * <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.CmrFieldGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldGroupMappingType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CmrFieldGroupMappingTypeItemProvider
+  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 CmrFieldGroupMappingTypeItemProvider(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);
+      addCmrFieldNamePropertyDescriptor(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_CmrFieldGroupMappingType_groupName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldGroupMappingType_groupName_feature", "_UI_CmrFieldGroupMappingType_type"),
+         JarPackage.eINSTANCE.getCmrFieldGroupMappingType_GroupName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Cmr Field Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCmrFieldNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmrFieldGroupMappingType_cmrFieldName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldGroupMappingType_cmrFieldName_feature", "_UI_CmrFieldGroupMappingType_type"),
+         JarPackage.eINSTANCE.getCmrFieldGroupMappingType_CmrFieldName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CmrFieldGroupMappingType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CmrFieldGroupMappingType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CmrFieldGroupMappingType)object).getGroupName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CmrFieldGroupMappingType_type") :
+      getString("_UI_CmrFieldGroupMappingType_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(CmrFieldGroupMappingType.class))
+    {
+      case JarPackage.CMR_FIELD_GROUP_MAPPING_TYPE__GROUP_NAME:
+      case JarPackage.CMR_FIELD_GROUP_MAPPING_TYPE__CMR_FIELD_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/CmrFieldMappingTypeItemProvider.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/CmrFieldMappingTypeItemProvider.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/CmrFieldMappingTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CmrFieldMappingTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,193 @@
+/**
+ * <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.CmrFieldMappingType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldMappingType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CmrFieldMappingTypeItemProvider
+  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 CmrFieldMappingTypeItemProvider(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);
+
+      addKeyColumnPropertyDescriptor(object);
+      addForeignKeyColumnPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Key Column feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addKeyColumnPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmrFieldMappingType_keyColumn_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldMappingType_keyColumn_feature", "_UI_CmrFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmrFieldMappingType_KeyColumn(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Foreign Key Column feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addForeignKeyColumnPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmrFieldMappingType_foreignKeyColumn_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldMappingType_foreignKeyColumn_feature", "_UI_CmrFieldMappingType_type"),
+         JarPackage.eINSTANCE.getCmrFieldMappingType_ForeignKeyColumn(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CmrFieldMappingType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CmrFieldMappingType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CmrFieldMappingType)object).getKeyColumn();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CmrFieldMappingType_type") :
+      getString("_UI_CmrFieldMappingType_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(CmrFieldMappingType.class))
+    {
+      case JarPackage.CMR_FIELD_MAPPING_TYPE__KEY_COLUMN:
+      case JarPackage.CMR_FIELD_MAPPING_TYPE__FOREIGN_KEY_COLUMN:
+        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/CmrFieldType1ItemProvider.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/CmrFieldType1ItemProvider.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/CmrFieldType1ItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CmrFieldType1ItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,193 @@
+/**
+ * <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.CmrFieldType1;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldType1} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CmrFieldType1ItemProvider
+  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 CmrFieldType1ItemProvider(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);
+
+      addCmrFieldNamePropertyDescriptor(object);
+      addGroupNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Cmr Field Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCmrFieldNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmrFieldType1_cmrFieldName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldType1_cmrFieldName_feature", "_UI_CmrFieldType1_type"),
+         JarPackage.eINSTANCE.getCmrFieldType1_CmrFieldName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * 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_CmrFieldType1_groupName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldType1_groupName_feature", "_UI_CmrFieldType1_type"),
+         JarPackage.eINSTANCE.getCmrFieldType1_GroupName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CmrFieldType1.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CmrFieldType1");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CmrFieldType1)object).getCmrFieldName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CmrFieldType1_type") :
+      getString("_UI_CmrFieldType1_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(CmrFieldType1.class))
+    {
+      case JarPackage.CMR_FIELD_TYPE1__CMR_FIELD_NAME:
+      case JarPackage.CMR_FIELD_TYPE1__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/CmrFieldTypeItemProvider.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/CmrFieldTypeItemProvider.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/CmrFieldTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/CmrFieldTypeItemProvider.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.CmrFieldType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.CmrFieldType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CmrFieldTypeItemProvider
+  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 CmrFieldTypeItemProvider(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);
+
+      addCmrFieldNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Cmr Field Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCmrFieldNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_CmrFieldType_cmrFieldName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_CmrFieldType_cmrFieldName_feature", "_UI_CmrFieldType_type"),
+         JarPackage.eINSTANCE.getCmrFieldType_CmrFieldName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns CmrFieldType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/CmrFieldType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((CmrFieldType)object).getCmrFieldName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_CmrFieldType_type") :
+      getString("_UI_CmrFieldType_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(CmrFieldType.class))
+    {
+      case JarPackage.CMR_FIELD_TYPE__CMR_FIELD_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/DocumentRootItemProvider.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/DocumentRootItemProvider.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/DocumentRootItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/DocumentRootItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,187 @@
+/**
+ * <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.ecore.xml.type.XMLTypePackage;
+
+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.DocumentRoot;
+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.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+  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 DocumentRootItemProvider(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.getDocumentRoot_Mixed());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns DocumentRoot.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/DocumentRoot");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    return getString("_UI_DocumentRoot_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(DocumentRoot.class))
+    {
+      case JarPackage.DOCUMENT_ROOT__MIXED:
+        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.getDocumentRoot_Mixed(),
+         FeatureMapUtil.createEntry
+          (XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_Comment(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getDocumentRoot_Mixed(),
+         FeatureMapUtil.createEntry
+          (XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_Text(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getDocumentRoot_Mixed(),
+         FeatureMapUtil.createEntry
+          (JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(),
+           JarFactory.eINSTANCE.createOpenejbJarType())));
+  }
+
+  /**
+   * 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/EjbRelationTypeItemProvider.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/EjbRelationTypeItemProvider.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/EjbRelationTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EjbRelationTypeItemProvider.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.EjbRelationType;
+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.EjbRelationType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EjbRelationTypeItemProvider
+  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 EjbRelationTypeItemProvider(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);
+
+      addEjbRelationNamePropertyDescriptor(object);
+      addManyToManyTableNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ejb Relation Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addEjbRelationNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRelationType_ejbRelationName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRelationType_ejbRelationName_feature", "_UI_EjbRelationType_type"),
+         JarPackage.eINSTANCE.getEjbRelationType_EjbRelationName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Many To Many Table Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addManyToManyTableNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRelationType_manyToManyTableName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRelationType_manyToManyTableName_feature", "_UI_EjbRelationType_type"),
+         JarPackage.eINSTANCE.getEjbRelationType_ManyToManyTableName(),
+         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.getEjbRelationType_EjbRelationshipRole());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns EjbRelationType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EjbRelationType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((EjbRelationType)object).getEjbRelationName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_EjbRelationType_type") :
+      getString("_UI_EjbRelationType_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(EjbRelationType.class))
+    {
+      case JarPackage.EJB_RELATION_TYPE__EJB_RELATION_NAME:
+      case JarPackage.EJB_RELATION_TYPE__MANY_TO_MANY_TABLE_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE:
+        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.getEjbRelationType_EjbRelationshipRole(),
+         JarFactory.eINSTANCE.createEjbRelationshipRoleType()));
+  }
+
+  /**
+   * 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/EjbRelationshipRoleTypeItemProvider.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/EjbRelationshipRoleTypeItemProvider.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/EjbRelationshipRoleTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EjbRelationshipRoleTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,516 @@
+/**
+ * <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.deployment.DeploymentFactory;
+
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+
+import org.apache.geronimo.xml.ns.security.SecurityFactory;
+
+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.EjbRelationshipRoleType;
+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.EjbRelationshipRoleType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EjbRelationshipRoleTypeItemProvider
+  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 EjbRelationshipRoleTypeItemProvider(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);
+
+      addEjbRelationshipRoleNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ejb Relationship Role Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addEjbRelationshipRoleNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRelationshipRoleType_ejbRelationshipRoleName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRelationshipRoleType_ejbRelationshipRoleName_feature", "_UI_EjbRelationshipRoleType_type"),
+         JarPackage.eINSTANCE.getEjbRelationshipRoleType_EjbRelationshipRoleName(),
+         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.getEjbRelationshipRoleType_RelationshipRoleSource());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEjbRelationshipRoleType_CmrField());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource());
+      childrenFeatures.add(JarPackage.eINSTANCE.getEjbRelationshipRoleType_RoleMapping());
+    }
+    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 EjbRelationshipRoleType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EjbRelationshipRoleType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((EjbRelationshipRoleType)object).getEjbRelationshipRoleName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_EjbRelationshipRoleType_type") :
+      getString("_UI_EjbRelationshipRoleType_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(EjbRelationshipRoleType.class))
+    {
+      case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__EJB_RELATIONSHIP_ROLE_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE:
+      case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD:
+      case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE:
+      case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING:
+        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.getEjbRelationshipRoleType_RelationshipRoleSource(),
+         JarFactory.eINSTANCE.createRelationshipRoleSourceType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_CmrField(),
+         JarFactory.eINSTANCE.createCmrFieldType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createActivationConfigPropertyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createActivationConfigType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createCmpFieldGroupMappingType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createCmrFieldGroupMappingType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createEjbRelationshipRoleType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createEjbRelationType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createEmptyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createEntityBeanType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createEntityGroupMappingType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createGroupType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createMessageDrivenBeanType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createOpenejbJarType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createQueryType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createRelationshipsType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createSessionBeanType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createTssType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         JarFactory.eINSTANCE.createWebServiceSecurityType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         PkgenFactory.eINSTANCE.createAutoIncrementTableType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         PkgenFactory.eINSTANCE.createCustomGeneratorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         PkgenFactory.eINSTANCE.createDatabaseGeneratedType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         PkgenFactory.eINSTANCE.createKeyGeneratorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         PkgenFactory.eINSTANCE.createSequenceTableType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         PkgenFactory.eINSTANCE.createSqlGeneratorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createCssType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createEjbLocalRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createEjbRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createGbeanLocatorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createGbeanRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createMessageDestinationType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createPortCompletionType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createPortType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createResourceEnvRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createResourceLocatorType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createResourceRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createServiceCompletionType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         NamingFactory.eINSTANCE.createServiceRefType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createDefaultPrincipalType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createDescriptionType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createDistinguishedNameType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createPrincipalType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createLoginDomainPrincipalType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createNamedUsernamePasswordCredentialType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createRealmPrincipalType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createRoleMappingsType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createRoleType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         SecurityFactory.eINSTANCE.createSecurityType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createAttributeType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createClassFilterType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createConfigurationType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createDependencyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createGbeanType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createPatternType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createReferencesType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createReferenceType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createServiceType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_ForeignKeyColumnOnSource(),
+         DeploymentFactory.eINSTANCE.createXmlAttributeType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (JarPackage.eINSTANCE.getEjbRelationshipRoleType_RoleMapping(),
+         JarFactory.eINSTANCE.createRoleMappingType()));
+  }
+
+  /**
+   * 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/EmptyTypeItemProvider.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/EmptyTypeItemProvider.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/EmptyTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/openejb/xml/ns/openejb/jar/provider/EmptyTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,132 @@
+/**
+ * <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.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;
+
+/**
+ * This is the item provider adapter for a {@link org.openejb.xml.ns.openejb.jar.EmptyType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EmptyTypeItemProvider
+  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 EmptyTypeItemProvider(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 returns EmptyType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EmptyType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    return getString("_UI_EmptyType_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);
+    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