geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r354777 [4/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/xml...
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/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectInstanceTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectInstanceTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectInstanceTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectInstanceTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,197 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectInstanceType;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorFactory;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectInstanceType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class AdminobjectInstanceTypeItemProvider
+  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 AdminobjectInstanceTypeItemProvider(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);
+
+      addMessageDestinationNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Message Destination Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addMessageDestinationNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_AdminobjectInstanceType_messageDestinationName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_AdminobjectInstanceType_messageDestinationName_feature", "_UI_AdminobjectInstanceType_type"),
+         ConnectorPackage.eINSTANCE.getAdminobjectInstanceType_MessageDestinationName(),
+         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(ConnectorPackage.eINSTANCE.getAdminobjectInstanceType_ConfigPropertySetting());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns AdminobjectInstanceType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/AdminobjectInstanceType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((AdminobjectInstanceType)object).getMessageDestinationName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_AdminobjectInstanceType_type") :
+      getString("_UI_AdminobjectInstanceType_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(AdminobjectInstanceType.class))
+    {
+      case ConnectorPackage.ADMINOBJECT_INSTANCE_TYPE__MESSAGE_DESTINATION_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case ConnectorPackage.ADMINOBJECT_INSTANCE_TYPE__CONFIG_PROPERTY_SETTING:
+        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
+        (ConnectorPackage.eINSTANCE.getAdminobjectInstanceType_ConfigPropertySetting(),
+         ConnectorFactory.eINSTANCE.createConfigPropertySettingType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/AdminobjectTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,220 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectType;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorFactory;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class AdminobjectTypeItemProvider
+  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 AdminobjectTypeItemProvider(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);
+
+      addAdminobjectInterfacePropertyDescriptor(object);
+      addAdminobjectClassPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Adminobject Interface feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addAdminobjectInterfacePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_AdminobjectType_adminobjectInterface_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_AdminobjectType_adminobjectInterface_feature", "_UI_AdminobjectType_type"),
+         ConnectorPackage.eINSTANCE.getAdminobjectType_AdminobjectInterface(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Adminobject Class feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addAdminobjectClassPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_AdminobjectType_adminobjectClass_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_AdminobjectType_adminobjectClass_feature", "_UI_AdminobjectType_type"),
+         ConnectorPackage.eINSTANCE.getAdminobjectType_AdminobjectClass(),
+         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(ConnectorPackage.eINSTANCE.getAdminobjectType_AdminobjectInstance());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns AdminobjectType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/AdminobjectType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((AdminobjectType)object).getAdminobjectInterface();
+    return label == null || label.length() == 0 ?
+      getString("_UI_AdminobjectType_type") :
+      getString("_UI_AdminobjectType_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(AdminobjectType.class))
+    {
+      case ConnectorPackage.ADMINOBJECT_TYPE__ADMINOBJECT_INTERFACE:
+      case ConnectorPackage.ADMINOBJECT_TYPE__ADMINOBJECT_CLASS:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case ConnectorPackage.ADMINOBJECT_TYPE__ADMINOBJECT_INSTANCE:
+        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
+        (ConnectorPackage.eINSTANCE.getAdminobjectType_AdminobjectInstance(),
+         ConnectorFactory.eINSTANCE.createAdminobjectInstanceType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConfigPropertySettingTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConfigPropertySettingTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConfigPropertySettingTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConfigPropertySettingTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,193 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.ConfigPropertySettingType;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConfigPropertySettingType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConfigPropertySettingTypeItemProvider
+  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 ConfigPropertySettingTypeItemProvider(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);
+
+      addValuePropertyDescriptor(object);
+      addNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Value feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addValuePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConfigPropertySettingType_value_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConfigPropertySettingType_value_feature", "_UI_ConfigPropertySettingType_type"),
+         ConnectorPackage.eINSTANCE.getConfigPropertySettingType_Value(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConfigPropertySettingType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConfigPropertySettingType_name_feature", "_UI_ConfigPropertySettingType_type"),
+         ConnectorPackage.eINSTANCE.getConfigPropertySettingType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns ConfigPropertySettingType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/ConfigPropertySettingType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((ConfigPropertySettingType)object).getName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_ConfigPropertySettingType_type") :
+      getString("_UI_ConfigPropertySettingType_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(ConfigPropertySettingType.class))
+    {
+      case ConnectorPackage.CONFIG_PROPERTY_SETTING_TYPE__VALUE:
+      case ConnectorPackage.CONFIG_PROPERTY_SETTING_TYPE__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 GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionDefinitionTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionDefinitionTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionDefinitionTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionDefinitionTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,197 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectionDefinitionType;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorFactory;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectionDefinitionType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConnectionDefinitionTypeItemProvider
+  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 ConnectionDefinitionTypeItemProvider(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);
+
+      addConnectionfactoryInterfacePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Connectionfactory Interface feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addConnectionfactoryInterfacePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectionDefinitionType_connectionfactoryInterface_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectionDefinitionType_connectionfactoryInterface_feature", "_UI_ConnectionDefinitionType_type"),
+         ConnectorPackage.eINSTANCE.getConnectionDefinitionType_ConnectionfactoryInterface(),
+         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(ConnectorPackage.eINSTANCE.getConnectionDefinitionType_ConnectiondefinitionInstance());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns ConnectionDefinitionType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/ConnectionDefinitionType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((ConnectionDefinitionType)object).getConnectionfactoryInterface();
+    return label == null || label.length() == 0 ?
+      getString("_UI_ConnectionDefinitionType_type") :
+      getString("_UI_ConnectionDefinitionType_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(ConnectionDefinitionType.class))
+    {
+      case ConnectorPackage.CONNECTION_DEFINITION_TYPE__CONNECTIONFACTORY_INTERFACE:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case ConnectorPackage.CONNECTION_DEFINITION_TYPE__CONNECTIONDEFINITION_INSTANCE:
+        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
+        (ConnectorPackage.eINSTANCE.getConnectionDefinitionType_ConnectiondefinitionInstance(),
+         ConnectorFactory.eINSTANCE.createConnectiondefinitionInstanceType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectiondefinitionInstanceTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectiondefinitionInstanceTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectiondefinitionInstanceTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectiondefinitionInstanceTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,242 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectiondefinitionInstanceType;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorFactory;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectiondefinitionInstanceType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConnectiondefinitionInstanceTypeItemProvider
+  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 ConnectiondefinitionInstanceTypeItemProvider(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);
+
+      addNamePropertyDescriptor(object);
+      addImplementedInterfacePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectiondefinitionInstanceType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectiondefinitionInstanceType_name_feature", "_UI_ConnectiondefinitionInstanceType_type"),
+         ConnectorPackage.eINSTANCE.getConnectiondefinitionInstanceType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Implemented Interface feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addImplementedInterfacePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectiondefinitionInstanceType_implementedInterface_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectiondefinitionInstanceType_implementedInterface_feature", "_UI_ConnectiondefinitionInstanceType_type"),
+         ConnectorPackage.eINSTANCE.getConnectiondefinitionInstanceType_ImplementedInterface(),
+         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(ConnectorPackage.eINSTANCE.getConnectiondefinitionInstanceType_ConfigPropertySetting());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectiondefinitionInstanceType_Connectionmanager());
+    }
+    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 ConnectiondefinitionInstanceType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/ConnectiondefinitionInstanceType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((ConnectiondefinitionInstanceType)object).getName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_ConnectiondefinitionInstanceType_type") :
+      getString("_UI_ConnectiondefinitionInstanceType_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(ConnectiondefinitionInstanceType.class))
+    {
+      case ConnectorPackage.CONNECTIONDEFINITION_INSTANCE_TYPE__NAME:
+      case ConnectorPackage.CONNECTIONDEFINITION_INSTANCE_TYPE__IMPLEMENTED_INTERFACE:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case ConnectorPackage.CONNECTIONDEFINITION_INSTANCE_TYPE__CONFIG_PROPERTY_SETTING:
+      case ConnectorPackage.CONNECTIONDEFINITION_INSTANCE_TYPE__CONNECTIONMANAGER:
+        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
+        (ConnectorPackage.eINSTANCE.getConnectiondefinitionInstanceType_ConfigPropertySetting(),
+         ConnectorFactory.eINSTANCE.createConfigPropertySettingType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectiondefinitionInstanceType_Connectionmanager(),
+         ConnectorFactory.eINSTANCE.createConnectionmanagerType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionmanagerTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionmanagerTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionmanagerTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectionmanagerTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,265 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectionmanagerType;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorFactory;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+
+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.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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectionmanagerType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConnectionmanagerTypeItemProvider
+  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 ConnectionmanagerTypeItemProvider(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(ConnectorPackage.eINSTANCE.getConnectionmanagerType_ContainerManagedSecurity());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_NoTransaction());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_LocalTransaction());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_XaTransaction());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_TransactionLog());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_NoPool());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_SinglePool());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectionmanagerType_PartitionedPool());
+    }
+    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 ConnectionmanagerType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/ConnectionmanagerType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    return getString("_UI_ConnectionmanagerType_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(ConnectionmanagerType.class))
+    {
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__CONTAINER_MANAGED_SECURITY:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__NO_TRANSACTION:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__LOCAL_TRANSACTION:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__XA_TRANSACTION:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__TRANSACTION_LOG:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__NO_POOL:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__SINGLE_POOL:
+      case ConnectorPackage.CONNECTIONMANAGER_TYPE__PARTITIONED_POOL:
+        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
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_ContainerManagedSecurity(),
+         ConnectorFactory.eINSTANCE.createEmptyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_NoTransaction(),
+         ConnectorFactory.eINSTANCE.createEmptyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_LocalTransaction(),
+         ConnectorFactory.eINSTANCE.createEmptyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_XaTransaction(),
+         ConnectorFactory.eINSTANCE.createXatransactionType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_TransactionLog(),
+         ConnectorFactory.eINSTANCE.createEmptyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_NoPool(),
+         ConnectorFactory.eINSTANCE.createEmptyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_SinglePool(),
+         ConnectorFactory.eINSTANCE.createSinglepoolType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_SinglePool(),
+         ConnectorFactory.eINSTANCE.createPartitionedpoolType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectionmanagerType_PartitionedPool(),
+         ConnectorFactory.eINSTANCE.createPartitionedpoolType()));
+  }
+
+  /**
+   * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getCreateChildText(Object owner, Object feature, Object child, Collection selection)
+  {
+    Object childFeature = feature;
+    Object childObject = child;
+
+    boolean qualify =
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_ContainerManagedSecurity() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_NoTransaction() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_LocalTransaction() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_TransactionLog() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_NoPool() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_SinglePool() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectionmanagerType_PartitionedPool();
+
+    if (qualify)
+    {
+      return getString
+        ("_UI_CreateChild_text2",
+         new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
+    }
+    return super.getCreateChildText(owner, feature, child, selection);
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorItemProviderAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorItemProviderAdapterFactory.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorItemProviderAdapterFactory.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorItemProviderAdapterFactory.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,597 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.util.ConnectorAdapterFactory;
+
+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;
+
+/**
+ * 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 ConnectorItemProviderAdapterFactory extends ConnectorAdapterFactory 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 ConnectorItemProviderAdapterFactory()
+  {
+    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.apache.geronimo.xml.ns.j2ee.connector.AdminobjectInstanceType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected AdminobjectInstanceTypeItemProvider adminobjectInstanceTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectInstanceType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createAdminobjectInstanceTypeAdapter()
+  {
+    if (adminobjectInstanceTypeItemProvider == null)
+    {
+      adminobjectInstanceTypeItemProvider = new AdminobjectInstanceTypeItemProvider(this);
+    }
+
+    return adminobjectInstanceTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected AdminobjectTypeItemProvider adminobjectTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.AdminobjectType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createAdminobjectTypeAdapter()
+  {
+    if (adminobjectTypeItemProvider == null)
+    {
+      adminobjectTypeItemProvider = new AdminobjectTypeItemProvider(this);
+    }
+
+    return adminobjectTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ConfigPropertySettingType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConfigPropertySettingTypeItemProvider configPropertySettingTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConfigPropertySettingType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createConfigPropertySettingTypeAdapter()
+  {
+    if (configPropertySettingTypeItemProvider == null)
+    {
+      configPropertySettingTypeItemProvider = new ConfigPropertySettingTypeItemProvider(this);
+    }
+
+    return configPropertySettingTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectiondefinitionInstanceType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConnectiondefinitionInstanceTypeItemProvider connectiondefinitionInstanceTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectiondefinitionInstanceType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createConnectiondefinitionInstanceTypeAdapter()
+  {
+    if (connectiondefinitionInstanceTypeItemProvider == null)
+    {
+      connectiondefinitionInstanceTypeItemProvider = new ConnectiondefinitionInstanceTypeItemProvider(this);
+    }
+
+    return connectiondefinitionInstanceTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectionDefinitionType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConnectionDefinitionTypeItemProvider connectionDefinitionTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectionDefinitionType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createConnectionDefinitionTypeAdapter()
+  {
+    if (connectionDefinitionTypeItemProvider == null)
+    {
+      connectionDefinitionTypeItemProvider = new ConnectionDefinitionTypeItemProvider(this);
+    }
+
+    return connectionDefinitionTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectionmanagerType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConnectionmanagerTypeItemProvider connectionmanagerTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectionmanagerType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createConnectionmanagerTypeAdapter()
+  {
+    if (connectionmanagerTypeItemProvider == null)
+    {
+      connectionmanagerTypeItemProvider = new ConnectionmanagerTypeItemProvider(this);
+    }
+
+    return connectionmanagerTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectorType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConnectorTypeItemProvider connectorTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectorType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createConnectorTypeAdapter()
+  {
+    if (connectorTypeItemProvider == null)
+    {
+      connectorTypeItemProvider = new ConnectorTypeItemProvider(this);
+    }
+
+    return connectorTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.DescriptionType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected DescriptionTypeItemProvider descriptionTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.DescriptionType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createDescriptionTypeAdapter()
+  {
+    if (descriptionTypeItemProvider == null)
+    {
+      descriptionTypeItemProvider = new DescriptionTypeItemProvider(this);
+    }
+
+    return descriptionTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.DocumentRoot} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected DocumentRootItemProvider documentRootItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.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.apache.geronimo.xml.ns.j2ee.connector.EmptyType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EmptyTypeItemProvider emptyTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.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.apache.geronimo.xml.ns.j2ee.connector.OutboundResourceadapterType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected OutboundResourceadapterTypeItemProvider outboundResourceadapterTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.OutboundResourceadapterType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createOutboundResourceadapterTypeAdapter()
+  {
+    if (outboundResourceadapterTypeItemProvider == null)
+    {
+      outboundResourceadapterTypeItemProvider = new OutboundResourceadapterTypeItemProvider(this);
+    }
+
+    return outboundResourceadapterTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.PartitionedpoolType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected PartitionedpoolTypeItemProvider partitionedpoolTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.PartitionedpoolType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createPartitionedpoolTypeAdapter()
+  {
+    if (partitionedpoolTypeItemProvider == null)
+    {
+      partitionedpoolTypeItemProvider = new PartitionedpoolTypeItemProvider(this);
+    }
+
+    return partitionedpoolTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ResourceadapterInstanceType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ResourceadapterInstanceTypeItemProvider resourceadapterInstanceTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ResourceadapterInstanceType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createResourceadapterInstanceTypeAdapter()
+  {
+    if (resourceadapterInstanceTypeItemProvider == null)
+    {
+      resourceadapterInstanceTypeItemProvider = new ResourceadapterInstanceTypeItemProvider(this);
+    }
+
+    return resourceadapterInstanceTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.ResourceadapterType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ResourceadapterTypeItemProvider resourceadapterTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ResourceadapterType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createResourceadapterTypeAdapter()
+  {
+    if (resourceadapterTypeItemProvider == null)
+    {
+      resourceadapterTypeItemProvider = new ResourceadapterTypeItemProvider(this);
+    }
+
+    return resourceadapterTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.SinglepoolType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected SinglepoolTypeItemProvider singlepoolTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.SinglepoolType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createSinglepoolTypeAdapter()
+  {
+    if (singlepoolTypeItemProvider == null)
+    {
+      singlepoolTypeItemProvider = new SinglepoolTypeItemProvider(this);
+    }
+
+    return singlepoolTypeItemProvider;
+  }
+
+  /**
+   * This keeps track of the one adapter used for all {@link org.apache.geronimo.xml.ns.j2ee.connector.XatransactionType} instances.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected XatransactionTypeItemProvider xatransactionTypeItemProvider;
+
+  /**
+   * This creates an adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.XatransactionType}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Adapter createXatransactionTypeAdapter()
+  {
+    if (xatransactionTypeItemProvider == null)
+    {
+      xatransactionTypeItemProvider = new XatransactionTypeItemProvider(this);
+    }
+
+    return xatransactionTypeItemProvider;
+  }
+
+  /**
+   * 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 (adminobjectInstanceTypeItemProvider != null) adminobjectInstanceTypeItemProvider.dispose();
+    if (adminobjectTypeItemProvider != null) adminobjectTypeItemProvider.dispose();
+    if (configPropertySettingTypeItemProvider != null) configPropertySettingTypeItemProvider.dispose();
+    if (connectiondefinitionInstanceTypeItemProvider != null) connectiondefinitionInstanceTypeItemProvider.dispose();
+    if (connectionDefinitionTypeItemProvider != null) connectionDefinitionTypeItemProvider.dispose();
+    if (connectionmanagerTypeItemProvider != null) connectionmanagerTypeItemProvider.dispose();
+    if (connectorTypeItemProvider != null) connectorTypeItemProvider.dispose();
+    if (descriptionTypeItemProvider != null) descriptionTypeItemProvider.dispose();
+    if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+    if (emptyTypeItemProvider != null) emptyTypeItemProvider.dispose();
+    if (outboundResourceadapterTypeItemProvider != null) outboundResourceadapterTypeItemProvider.dispose();
+    if (partitionedpoolTypeItemProvider != null) partitionedpoolTypeItemProvider.dispose();
+    if (resourceadapterInstanceTypeItemProvider != null) resourceadapterInstanceTypeItemProvider.dispose();
+    if (resourceadapterTypeItemProvider != null) resourceadapterTypeItemProvider.dispose();
+    if (singlepoolTypeItemProvider != null) singlepoolTypeItemProvider.dispose();
+    if (xatransactionTypeItemProvider != null) xatransactionTypeItemProvider.dispose();
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorTypeItemProvider.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/j2ee/connector/provider/ConnectorTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,351 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.j2ee.connector.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.deployment.DeploymentFactory;
+
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorFactory;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorPackage;
+import org.apache.geronimo.xml.ns.j2ee.connector.ConnectorType;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.apache.geronimo.xml.ns.j2ee.connector.ConnectorType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConnectorTypeItemProvider
+  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 ConnectorTypeItemProvider(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);
+
+      addConfigIdPropertyDescriptor(object);
+      addInverseClassloadingPropertyDescriptor(object);
+      addParentIdPropertyDescriptor(object);
+      addSuppressDefaultParentIdPropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Config Id feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addConfigIdPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectorType_configId_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectorType_configId_feature", "_UI_ConnectorType_type"),
+         ConnectorPackage.eINSTANCE.getConnectorType_ConfigId(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Inverse Classloading feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addInverseClassloadingPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectorType_inverseClassloading_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectorType_inverseClassloading_feature", "_UI_ConnectorType_type"),
+         ConnectorPackage.eINSTANCE.getConnectorType_InverseClassloading(),
+         true,
+         ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Parent Id feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addParentIdPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectorType_parentId_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectorType_parentId_feature", "_UI_ConnectorType_type"),
+         ConnectorPackage.eINSTANCE.getConnectorType_ParentId(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Suppress Default Parent Id feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addSuppressDefaultParentIdPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_ConnectorType_suppressDefaultParentId_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_ConnectorType_suppressDefaultParentId_feature", "_UI_ConnectorType_type"),
+         ConnectorPackage.eINSTANCE.getConnectorType_SuppressDefaultParentId(),
+         true,
+         ItemPropertyDescriptor.BOOLEAN_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(ConnectorPackage.eINSTANCE.getConnectorType_Import());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectorType_Dependency());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectorType_HiddenClasses());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectorType_NonOverridableClasses());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectorType_Resourceadapter());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectorType_Adminobject());
+      childrenFeatures.add(ConnectorPackage.eINSTANCE.getConnectorType_Gbean());
+    }
+    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 ConnectorType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/ConnectorType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((ConnectorType)object).getConfigId();
+    return label == null || label.length() == 0 ?
+      getString("_UI_ConnectorType_type") :
+      getString("_UI_ConnectorType_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(ConnectorType.class))
+    {
+      case ConnectorPackage.CONNECTOR_TYPE__CONFIG_ID:
+      case ConnectorPackage.CONNECTOR_TYPE__INVERSE_CLASSLOADING:
+      case ConnectorPackage.CONNECTOR_TYPE__PARENT_ID:
+      case ConnectorPackage.CONNECTOR_TYPE__SUPPRESS_DEFAULT_PARENT_ID:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case ConnectorPackage.CONNECTOR_TYPE__IMPORT:
+      case ConnectorPackage.CONNECTOR_TYPE__DEPENDENCY:
+      case ConnectorPackage.CONNECTOR_TYPE__HIDDEN_CLASSES:
+      case ConnectorPackage.CONNECTOR_TYPE__NON_OVERRIDABLE_CLASSES:
+      case ConnectorPackage.CONNECTOR_TYPE__RESOURCEADAPTER:
+      case ConnectorPackage.CONNECTOR_TYPE__ADMINOBJECT:
+      case ConnectorPackage.CONNECTOR_TYPE__GBEAN:
+        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
+        (ConnectorPackage.eINSTANCE.getConnectorType_Import(),
+         DeploymentFactory.eINSTANCE.createDependencyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectorType_Dependency(),
+         DeploymentFactory.eINSTANCE.createDependencyType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectorType_HiddenClasses(),
+         DeploymentFactory.eINSTANCE.createClassFilterType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectorType_NonOverridableClasses(),
+         DeploymentFactory.eINSTANCE.createClassFilterType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectorType_Resourceadapter(),
+         ConnectorFactory.eINSTANCE.createResourceadapterType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectorType_Adminobject(),
+         ConnectorFactory.eINSTANCE.createAdminobjectType()));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (ConnectorPackage.eINSTANCE.getConnectorType_Gbean(),
+         DeploymentFactory.eINSTANCE.createGbeanType()));
+  }
+
+  /**
+   * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getCreateChildText(Object owner, Object feature, Object child, Collection selection)
+  {
+    Object childFeature = feature;
+    Object childObject = child;
+
+    boolean qualify =
+      childFeature == ConnectorPackage.eINSTANCE.getConnectorType_Import() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectorType_Dependency() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectorType_HiddenClasses() ||
+      childFeature == ConnectorPackage.eINSTANCE.getConnectorType_NonOverridableClasses();
+
+    if (qualify)
+    {
+      return getString
+        ("_UI_CreateChild_text2",
+         new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
+    }
+    return super.getCreateChildText(owner, feature, child, selection);
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimoconnectorEditPlugin.INSTANCE;
+  }
+
+}



Mime
View raw message