001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: LayerFactoryItemProvider.java 24145 2007-02-01 18:03:34Z jeichar $
006: */package net.refractions.udig.project.internal.provider;
007:
008: import java.util.List;
009:
010: import org.eclipse.emf.common.notify.AdapterFactory;
011: import org.eclipse.emf.common.notify.Notification;
012: import org.eclipse.emf.common.util.ResourceLocator;
013: import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
014: import org.eclipse.emf.edit.provider.IItemLabelProvider;
015: import org.eclipse.emf.edit.provider.IItemPropertySource;
016: import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
017: import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
018: import org.eclipse.emf.edit.provider.ItemProviderAdapter;
019:
020: /**
021: * This is the item provider adapter for a
022: * {@link net.refractions.udig.project.internal.LayerFactory} object. <!-- begin-user-doc --> <!--
023: * end-user-doc -->
024: *
025: * @generated
026: */
027: public class LayerFactoryItemProvider extends ItemProviderAdapter
028: implements IEditingDomainItemProvider,
029: IStructuredItemContentProvider, ITreeItemContentProvider,
030: IItemLabelProvider, IItemPropertySource {
031: /**
032: * <!-- begin-user-doc --> <!-- end-user-doc -->
033: *
034: * @generated
035: */
036: 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$
037:
038: /**
039: * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
040: * end-user-doc -->
041: *
042: * @generated
043: */
044: public LayerFactoryItemProvider(AdapterFactory adapterFactory) {
045: super (adapterFactory);
046: }
047:
048: /**
049: * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
050: * end-user-doc -->
051: *
052: * @generated
053: */
054: public List getPropertyDescriptors(Object object) {
055: if (itemPropertyDescriptors == null) {
056: super .getPropertyDescriptors(object);
057:
058: }
059: return itemPropertyDescriptors;
060: }
061:
062: /**
063: * This returns LayerFactory.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
064: *
065: * @generated
066: */
067: public Object getImage(Object object) {
068: return getResourceLocator().getImage("full/obj16/LayerFactory"); //$NON-NLS-1$
069: }
070:
071: /**
072: * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
073: * -->
074: *
075: * @generated NOT
076: */
077: public String getText(Object object) {
078: return "Layer Factory";
079: }
080:
081: /**
082: * This handles model notifications by calling {@link #updateChildren} to update any cached
083: * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
084: * <!-- begin-user-doc --> <!-- end-user-doc -->
085: *
086: * @generated
087: */
088: public void notifyChanged(Notification notification) {
089: updateChildren(notification);
090: super .notifyChanged(notification);
091: }
092:
093: /**
094: * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
095: * end-user-doc -->
096: *
097: * @generated
098: */
099: public ResourceLocator getResourceLocator() {
100: return ProjectEditPlugin.INSTANCE;
101: }
102:
103: }
|