geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r354777 [6/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/naming/provider/EjbLocalRefTypeItemProvider.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/naming/provider/EjbLocalRefTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/EjbLocalRefTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/EjbLocalRefTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,356 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.naming.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.EjbLocalRefType;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+import org.apache.geronimo.xml.ns.web.provider.GeronimowebEditPlugin;
+
+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.naming.EjbLocalRefType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EjbLocalRefTypeItemProvider
+  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 EjbLocalRefTypeItemProvider(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);
+
+      addRefNamePropertyDescriptor(object);
+      addDomainPropertyDescriptor(object);
+      addServerPropertyDescriptor(object);
+      addApplicationPropertyDescriptor(object);
+      addModulePropertyDescriptor(object);
+      addTypePropertyDescriptor(object);
+      addNamePropertyDescriptor(object);
+      addEjbLinkPropertyDescriptor(object);
+      addTargetNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ref Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addRefNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_refName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_refName_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_RefName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Domain feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addDomainPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_domain_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_domain_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_Domain(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Server feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addServerPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_server_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_server_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_Server(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Application feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addApplicationPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_application_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_application_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_Application(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Module feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addModulePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_module_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_module_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_Module(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_type_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_type_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_Type(),
+         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_EjbLocalRefType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_name_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Ejb Link feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addEjbLinkPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_ejbLink_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_ejbLink_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_EjbLink(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Target Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTargetNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbLocalRefType_targetName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbLocalRefType_targetName_feature", "_UI_EjbLocalRefType_type"),
+         NamingPackage.eINSTANCE.getEjbLocalRefType_TargetName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns EjbLocalRefType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EjbLocalRefType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((EjbLocalRefType)object).getName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_EjbLocalRefType_type") :
+      getString("_UI_EjbLocalRefType_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(EjbLocalRefType.class))
+    {
+      case NamingPackage.EJB_LOCAL_REF_TYPE__REF_NAME:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__DOMAIN:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__SERVER:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__APPLICATION:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__MODULE:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__TYPE:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__NAME:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__EJB_LINK:
+      case NamingPackage.EJB_LOCAL_REF_TYPE__TARGET_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 GeronimowebEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/EjbRefTypeItemProvider.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/naming/provider/EjbRefTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/EjbRefTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/EjbRefTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,475 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.naming.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.EjbRefType;
+import org.apache.geronimo.xml.ns.naming.NamingFactory;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+import org.apache.geronimo.xml.ns.web.provider.GeronimowebEditPlugin;
+
+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.naming.EjbRefType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EjbRefTypeItemProvider
+  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 EjbRefTypeItemProvider(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);
+
+      addRefNamePropertyDescriptor(object);
+      addDomainPropertyDescriptor(object);
+      addServerPropertyDescriptor(object);
+      addApplicationPropertyDescriptor(object);
+      addModulePropertyDescriptor(object);
+      addTypePropertyDescriptor(object);
+      addNamePropertyDescriptor(object);
+      addNsCorbalocPropertyDescriptor(object);
+      addName1PropertyDescriptor(object);
+      addCssLinkPropertyDescriptor(object);
+      addCssNamePropertyDescriptor(object);
+      addEjbLinkPropertyDescriptor(object);
+      addTargetNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ref Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addRefNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_refName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_refName_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_RefName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Domain feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addDomainPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_domain_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_domain_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Domain(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Server feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addServerPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_server_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_server_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Server(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Application feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addApplicationPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_application_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_application_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Application(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Module feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addModulePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_module_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_module_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Module(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_type_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_type_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Type(),
+         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_EjbRefType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_name_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Ns Corbaloc feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addNsCorbalocPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_nsCorbaloc_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_nsCorbaloc_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_NsCorbaloc(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Name1 feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addName1PropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_name1_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_name1_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_Name1(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Css Link feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCssLinkPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_cssLink_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_cssLink_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_CssLink(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Css Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addCssNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_cssName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_cssName_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_CssName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Ejb Link feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addEjbLinkPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_ejbLink_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_ejbLink_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_EjbLink(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Target Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTargetNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_EjbRefType_targetName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_EjbRefType_targetName_feature", "_UI_EjbRefType_type"),
+         NamingPackage.eINSTANCE.getEjbRefType_TargetName(),
+         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(NamingPackage.eINSTANCE.getEjbRefType_Css());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns EjbRefType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/EjbRefType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((EjbRefType)object).getName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_EjbRefType_type") :
+      getString("_UI_EjbRefType_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(EjbRefType.class))
+    {
+      case NamingPackage.EJB_REF_TYPE__REF_NAME:
+      case NamingPackage.EJB_REF_TYPE__DOMAIN:
+      case NamingPackage.EJB_REF_TYPE__SERVER:
+      case NamingPackage.EJB_REF_TYPE__APPLICATION:
+      case NamingPackage.EJB_REF_TYPE__MODULE:
+      case NamingPackage.EJB_REF_TYPE__TYPE:
+      case NamingPackage.EJB_REF_TYPE__NAME:
+      case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
+      case NamingPackage.EJB_REF_TYPE__NAME1:
+      case NamingPackage.EJB_REF_TYPE__CSS_LINK:
+      case NamingPackage.EJB_REF_TYPE__CSS_NAME:
+      case NamingPackage.EJB_REF_TYPE__EJB_LINK:
+      case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case NamingPackage.EJB_REF_TYPE__CSS:
+        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
+        (NamingPackage.eINSTANCE.getEjbRefType_Css(),
+         NamingFactory.eINSTANCE.createCssType()));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimowebEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/GbeanLocatorTypeItemProvider.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/naming/provider/GbeanLocatorTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/GbeanLocatorTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/GbeanLocatorTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,333 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.naming.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.GbeanLocatorType;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+import org.apache.geronimo.xml.ns.web.provider.GeronimowebEditPlugin;
+
+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.naming.GbeanLocatorType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class GbeanLocatorTypeItemProvider
+  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 GbeanLocatorTypeItemProvider(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);
+
+      addDomainPropertyDescriptor(object);
+      addServerPropertyDescriptor(object);
+      addApplicationPropertyDescriptor(object);
+      addModulePropertyDescriptor(object);
+      addTypePropertyDescriptor(object);
+      addNamePropertyDescriptor(object);
+      addGbeanLinkPropertyDescriptor(object);
+      addTargetNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Domain feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addDomainPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_domain_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_domain_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_Domain(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Server feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addServerPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_server_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_server_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_Server(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Application feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addApplicationPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_application_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_application_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_Application(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Module feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addModulePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_module_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_module_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_Module(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_type_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_type_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_Type(),
+         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_GbeanLocatorType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_name_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Gbean Link feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addGbeanLinkPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_gbeanLink_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_gbeanLink_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_GbeanLink(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Target Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTargetNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanLocatorType_targetName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanLocatorType_targetName_feature", "_UI_GbeanLocatorType_type"),
+         NamingPackage.eINSTANCE.getGbeanLocatorType_TargetName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns GbeanLocatorType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/GbeanLocatorType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((GbeanLocatorType)object).getName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_GbeanLocatorType_type") :
+      getString("_UI_GbeanLocatorType_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(GbeanLocatorType.class))
+    {
+      case NamingPackage.GBEAN_LOCATOR_TYPE__DOMAIN:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__SERVER:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__APPLICATION:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__MODULE:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__TYPE:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__NAME:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__GBEAN_LINK:
+      case NamingPackage.GBEAN_LOCATOR_TYPE__TARGET_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 GeronimowebEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/GbeanRefTypeItemProvider.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/naming/provider/GbeanRefTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/GbeanRefTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/GbeanRefTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,451 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.naming.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.GbeanRefType;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+import org.apache.geronimo.xml.ns.web.provider.GeronimowebEditPlugin;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.util.FeatureMapUtil;
+
+import org.eclipse.emf.edit.provider.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.naming.GbeanRefType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class GbeanRefTypeItemProvider
+  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 GbeanRefTypeItemProvider(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);
+
+      addRefNamePropertyDescriptor(object);
+      addRefTypePropertyDescriptor(object);
+      addProxyTypePropertyDescriptor(object);
+      addDomainPropertyDescriptor(object);
+      addServerPropertyDescriptor(object);
+      addApplicationPropertyDescriptor(object);
+      addModulePropertyDescriptor(object);
+      addTypePropertyDescriptor(object);
+      addNamePropertyDescriptor(object);
+      addTargetNamePropertyDescriptor(object);
+    }
+    return itemPropertyDescriptors;
+  }
+
+  /**
+   * This adds a property descriptor for the Ref Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addRefNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_refName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_refName_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_RefName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Ref Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addRefTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_refType_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_refType_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_RefType(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Proxy Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addProxyTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_proxyType_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_proxyType_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_ProxyType(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Domain feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addDomainPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_domain_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_domain_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_Domain(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Server feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addServerPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_server_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_server_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_Server(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Application feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addApplicationPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_application_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_application_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_Application(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Module feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addModulePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_module_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_module_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_Module(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_type_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_type_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_Type(),
+         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_GbeanRefType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_name_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Target Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTargetNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_GbeanRefType_targetName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_GbeanRefType_targetName_feature", "_UI_GbeanRefType_type"),
+         NamingPackage.eINSTANCE.getGbeanRefType_TargetName(),
+         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(NamingPackage.eINSTANCE.getGbeanRefType_Group());
+    }
+    return childrenFeatures;
+  }
+
+  /**
+   * This returns GbeanRefType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/GbeanRefType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((GbeanRefType)object).getRefName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_GbeanRefType_type") :
+      getString("_UI_GbeanRefType_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(GbeanRefType.class))
+    {
+      case NamingPackage.GBEAN_REF_TYPE__REF_NAME:
+      case NamingPackage.GBEAN_REF_TYPE__REF_TYPE:
+      case NamingPackage.GBEAN_REF_TYPE__PROXY_TYPE:
+      case NamingPackage.GBEAN_REF_TYPE__DOMAIN:
+      case NamingPackage.GBEAN_REF_TYPE__SERVER:
+      case NamingPackage.GBEAN_REF_TYPE__APPLICATION:
+      case NamingPackage.GBEAN_REF_TYPE__MODULE:
+      case NamingPackage.GBEAN_REF_TYPE__TYPE:
+      case NamingPackage.GBEAN_REF_TYPE__NAME:
+      case NamingPackage.GBEAN_REF_TYPE__TARGET_NAME:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+        return;
+      case NamingPackage.GBEAN_REF_TYPE__GROUP:
+        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+        return;
+    }
+    super.notifyChanged(notification);
+  }
+
+  /**
+   * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
+   * describing all of the children that can be created under this object.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
+  {
+    super.collectNewChildDescriptors(newChildDescriptors, object);
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_Domain(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_Server(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_Application(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_Module(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_Type(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_Name(),
+           "")));
+
+    newChildDescriptors.add
+      (createChildParameter
+        (NamingPackage.eINSTANCE.getGbeanRefType_Group(),
+         FeatureMapUtil.createEntry
+          (NamingPackage.eINSTANCE.getGbeanRefType_TargetName(),
+           "")));
+  }
+
+  /**
+   * Return the resource locator for this item provider's resources.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResourceLocator getResourceLocator()
+  {
+    return GeronimowebEditPlugin.INSTANCE;
+  }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/MessageDestinationTypeItemProvider.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/naming/provider/MessageDestinationTypeItemProvider.java?rev=354777&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/MessageDestinationTypeItemProvider.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/MessageDestinationTypeItemProvider.java Wed Dec  7 07:47:05 2005
@@ -0,0 +1,379 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.geronimo.xml.ns.naming.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.MessageDestinationType;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+import org.apache.geronimo.xml.ns.web.provider.GeronimowebEditPlugin;
+
+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.naming.MessageDestinationType} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MessageDestinationTypeItemProvider
+  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 MessageDestinationTypeItemProvider(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);
+      addDomainPropertyDescriptor(object);
+      addServerPropertyDescriptor(object);
+      addApplicationPropertyDescriptor(object);
+      addModulePropertyDescriptor(object);
+      addTypePropertyDescriptor(object);
+      addNamePropertyDescriptor(object);
+      addAdminObjectModulePropertyDescriptor(object);
+      addAdminObjectLinkPropertyDescriptor(object);
+      addTargetNamePropertyDescriptor(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_MessageDestinationType_messageDestinationName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_messageDestinationName_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_MessageDestinationName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Domain feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addDomainPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_domain_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_domain_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_Domain(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Server feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addServerPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_server_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_server_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_Server(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Application feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addApplicationPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_application_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_application_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_Application(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Module feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addModulePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_module_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_module_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_Module(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Type feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTypePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_type_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_type_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_Type(),
+         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_MessageDestinationType_name_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_name_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_Name(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Admin Object Module feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addAdminObjectModulePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_adminObjectModule_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_adminObjectModule_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_AdminObjectModule(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Admin Object Link feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addAdminObjectLinkPropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_adminObjectLink_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_adminObjectLink_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_AdminObjectLink(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This adds a property descriptor for the Target Name feature.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected void addTargetNamePropertyDescriptor(Object object)
+  {
+    itemPropertyDescriptors.add
+      (createItemPropertyDescriptor
+        (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+         getResourceLocator(),
+         getString("_UI_MessageDestinationType_targetName_feature"),
+         getString("_UI_PropertyDescriptor_description", "_UI_MessageDestinationType_targetName_feature", "_UI_MessageDestinationType_type"),
+         NamingPackage.eINSTANCE.getMessageDestinationType_TargetName(),
+         true,
+         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+         null,
+         null));
+  }
+
+  /**
+   * This returns MessageDestinationType.gif.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object getImage(Object object)
+  {
+    return getResourceLocator().getImage("full/obj16/MessageDestinationType");
+  }
+
+  /**
+   * This returns the label text for the adapted class.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getText(Object object)
+  {
+    String label = ((MessageDestinationType)object).getName();
+    return label == null || label.length() == 0 ?
+      getString("_UI_MessageDestinationType_type") :
+      getString("_UI_MessageDestinationType_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(MessageDestinationType.class))
+    {
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__MESSAGE_DESTINATION_NAME:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__DOMAIN:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__SERVER:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__APPLICATION:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__MODULE:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__TYPE:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__NAME:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__ADMIN_OBJECT_MODULE:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__ADMIN_OBJECT_LINK:
+      case NamingPackage.MESSAGE_DESTINATION_TYPE__TARGET_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 GeronimowebEditPlugin.INSTANCE;
+  }
+
+}



Mime
View raw message