001: package net.refractions.udig.project.internal.provider;
002:
003: import java.util.List;
004:
005: import org.eclipse.emf.common.notify.AdapterFactory;
006: import org.eclipse.emf.common.notify.Notification;
007: import org.eclipse.emf.common.util.ResourceLocator;
008: import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
009: import org.eclipse.emf.edit.provider.IItemLabelProvider;
010: import org.eclipse.emf.edit.provider.IItemPropertySource;
011: import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
012: import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
013: import org.eclipse.emf.edit.provider.ItemProviderAdapter;
014:
015: /**
016: * This is the item provider adapter for a
017: * {@link net.refractions.udig.project.internal.AbstractContext} object. <!-- begin-user-doc -->
018: * <!-- end-user-doc -->
019: *
020: * @generated
021: */
022: public class AbstractContextItemProvider extends ItemProviderAdapter
023: implements IEditingDomainItemProvider,
024: IStructuredItemContentProvider, ITreeItemContentProvider,
025: IItemLabelProvider, IItemPropertySource {
026: /**
027: * <!-- begin-user-doc --> <!-- end-user-doc -->
028: *
029: * @generated
030: */
031: public static final String copyright = "uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004, Refractions Research Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details."; //$NON-NLS-1$
032:
033: /**
034: * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
035: * end-user-doc -->
036: *
037: * @generated
038: */
039: public AbstractContextItemProvider(AdapterFactory adapterFactory) {
040: super (adapterFactory);
041: }
042:
043: /**
044: * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
045: * end-user-doc -->
046: *
047: * @generated
048: */
049: public List getPropertyDescriptors(Object object) {
050: if (itemPropertyDescriptors == null) {
051: super .getPropertyDescriptors(object);
052:
053: addRenderManagerInternalPropertyDescriptor(object);
054: addMapInternalPropertyDescriptor(object);
055: }
056: return itemPropertyDescriptors;
057: }
058:
059: /**
060: * This adds a property descriptor for the Render Manager Internal feature. <!-- begin-user-doc
061: * --> <!-- end-user-doc -->
062: *
063: * @generated
064: */
065: protected void addRenderManagerInternalPropertyDescriptor(
066: Object object) {
067:
068: }
069:
070: /**
071: * This adds a property descriptor for the Map Internal feature. <!-- begin-user-doc --> <!--
072: * end-user-doc -->
073: *
074: * @generated
075: */
076: protected void addMapInternalPropertyDescriptor(Object object) {
077:
078: }
079:
080: /**
081: * This returns AbstractContext.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
082: *
083: * @generated
084: */
085: public Object getImage(Object object) {
086: return getResourceLocator().getImage(
087: "full/obj16/AbstractContext"); //$NON-NLS-1$
088: }
089:
090: /**
091: * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
092: * -->
093: *
094: * @generated NOT
095: */
096: public String getText(Object object) {
097: return "AbstractContext";
098: }
099:
100: /**
101: * This handles model notifications by calling {@link #updateChildren} to update any cached
102: * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
103: * <!-- begin-user-doc --> <!-- end-user-doc -->
104: *
105: * @generated
106: */
107: public void notifyChanged(Notification notification) {
108: updateChildren(notification);
109: super .notifyChanged(notification);
110: }
111:
112: /**
113: * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
114: * end-user-doc -->
115: *
116: * @generated
117: */
118: public ResourceLocator getResourceLocator() {
119: return ProjectEditPlugin.INSTANCE;
120: }
121:
122: }
|