KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > sdo > provider > EDataObjectItemProvider


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2003-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: EDataObjectItemProvider.java,v 1.5 2005/06/08 06:17:15 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.sdo.provider;
18
19
20 import java.util.List JavaDoc;
21
22 import org.eclipse.emf.common.notify.AdapterFactory;
23 import org.eclipse.emf.common.notify.Notification;
24 import org.eclipse.emf.common.util.ResourceLocator;
25 import org.eclipse.emf.ecore.provider.EObjectItemProvider;
26 import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
27 import org.eclipse.emf.edit.provider.IItemLabelProvider;
28 import org.eclipse.emf.edit.provider.IItemPropertySource;
29 import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
30 import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
31
32
33 /**
34  * This is the item provider adapter for a {@link org.eclipse.emf.ecore.sdo.EDataObject} object.
35  * <!-- begin-user-doc -->
36  * <!-- end-user-doc -->
37  * @generated
38  */

39 public class EDataObjectItemProvider
40   extends EObjectItemProvider
41   implements
42     IEditingDomainItemProvider,
43     IStructuredItemContentProvider,
44     ITreeItemContentProvider,
45     IItemLabelProvider,
46     IItemPropertySource
47 {
48   /**
49    * This constructs an instance from a factory and a notifier.
50    * <!-- begin-user-doc -->
51    * <!-- end-user-doc -->
52    * @generated
53    */

54   public EDataObjectItemProvider(AdapterFactory adapterFactory)
55   {
56     super(adapterFactory);
57   }
58
59   /**
60    * This returns the property descriptors for the adapted class.
61    * <!-- begin-user-doc -->
62    * <!-- end-user-doc -->
63    * @generated
64    */

65   public List JavaDoc getPropertyDescriptors(Object JavaDoc object)
66   {
67     if (itemPropertyDescriptors == null)
68     {
69       super.getPropertyDescriptors(object);
70
71     }
72     return itemPropertyDescriptors;
73   }
74
75   /**
76    * This returns the label text for the adapted class.
77    * <!-- begin-user-doc -->
78    * <!-- end-user-doc -->
79    * @generated
80    */

81   public String JavaDoc getText(Object JavaDoc object)
82   {
83     return getString("_UI_EDataObject_type");
84   }
85
86   /**
87    * This handles model notifications by calling {@link #updateChildren} to update any cached
88    * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
89    * <!-- begin-user-doc -->
90    * <!-- end-user-doc -->
91    * @generated
92    */

93   public void notifyChanged(Notification notification)
94   {
95     updateChildren(notification);
96     super.notifyChanged(notification);
97   }
98
99   /**
100    * Return the resource locator for this item provider's resources.
101    * <!-- begin-user-doc -->
102    * <!-- end-user-doc -->
103    * @generated
104    */

105   public ResourceLocator getResourceLocator()
106   {
107     return SDOEditPlugin.INSTANCE;
108   }
109
110 }
111
Popular Tags