org.eclipse.emf.ecore.change.edit_2.5.0.v20120130-0943

16:43:29.503 INFO  jd.cli.Main - Decompiling org.eclipse.emf.ecore.change.edit_2.5.0.v20120130-0943.jar
package org.eclipse.emf.ecore.change.provider;

import java.util.Collection;
import java.util.List;
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.ecore.change.ChangeDescription;
import org.eclipse.emf.ecore.change.ChangePackage.Literals;
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.IItemPropertyDescriptor;
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;

public class ChangeDescriptionItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public ChangeDescriptionItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addObjectsToDetachPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addObjectsToDetachPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ChangeDescription_objectsToDetach_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ChangeDescription_objectsToDetach_feature", "_UI_ChangeDescription_type"), 
      ChangePackage.Literals.CHANGE_DESCRIPTION__OBJECTS_TO_DETACH, 
      true, 
      false, 
      false, 
      null, 
      null, 
      null));
  }
  
  public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(ChangePackage.Literals.CHANGE_DESCRIPTION__OBJECT_CHANGES);
      childrenFeatures.add(ChangePackage.Literals.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH);
      childrenFeatures.add(ChangePackage.Literals.CHANGE_DESCRIPTION__RESOURCE_CHANGES);
    }
    return childrenFeatures;
  }
  
  protected EStructuralFeature getChildFeature(Object object, Object child)
  {
    return super.getChildFeature(object, child);
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/ChangeDescription"));
  }
  
  public String getText(Object object)
  {
    return getString("_UI_ChangeDescription_type");
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(ChangeDescription.class))
    {
    case 0: 
    case 2: 
    case 3: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return ChangeEditPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.ChangeDescriptionItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;

public class ChangeEditPlugin$Implementation
  extends EMFPlugin.EclipsePlugin
{
  public ChangeEditPlugin$Implementation()
  {
    ChangeEditPlugin.access$0(this);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.ChangeEditPlugin.Implementation
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.provider.EcoreEditPlugin;

public final class ChangeEditPlugin
  extends EMFPlugin
{
  public static final ChangeEditPlugin INSTANCE = new ChangeEditPlugin();
  private static Implementation plugin;
  
  public ChangeEditPlugin()
  {
    super(new ResourceLocator[] {EcoreEditPlugin.INSTANCE });
  }
  
  public ResourceLocator getPluginResourceLocator()
  {
    return plugin;
  }
  
  public static Implementation getPlugin()
  {
    return plugin;
  }
  
  public static class Implementation
    extends EMFPlugin.EclipsePlugin
  {
    public Implementation()
    {
      ChangeEditPlugin.plugin = this;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.ChangeEditPlugin
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import java.util.ArrayList;
import java.util.Collection;
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.ecore.change.util.ChangeAdapterFactory;
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;

public class ChangeItemProviderAdapterFactory
  extends ChangeAdapterFactory
  implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
{
  protected ComposedAdapterFactory parentAdapterFactory;
  protected IChangeNotifier changeNotifier = new ChangeNotifier();
  protected Collection<Object> supportedTypes = new ArrayList();
  protected ChangeDescriptionItemProvider changeDescriptionItemProvider;
  protected EObjectToChangesMapEntryItemProvider eObjectToChangesMapEntryItemProvider;
  protected FeatureChangeItemProvider featureChangeItemProvider;
  protected ListChangeItemProvider listChangeItemProvider;
  protected ResourceChangeItemProvider resourceChangeItemProvider;
  protected FeatureMapEntryItemProvider featureMapEntryItemProvider;
  
  public ChangeItemProviderAdapterFactory()
  {
    supportedTypes.add(IEditingDomainItemProvider.class);
    supportedTypes.add(IStructuredItemContentProvider.class);
    supportedTypes.add(ITreeItemContentProvider.class);
    supportedTypes.add(IItemLabelProvider.class);
    supportedTypes.add(IItemPropertySource.class);
  }
  
  public Adapter createChangeDescriptionAdapter()
  {
    if (changeDescriptionItemProvider == null) {
      changeDescriptionItemProvider = new ChangeDescriptionItemProvider(this);
    }
    return changeDescriptionItemProvider;
  }
  
  public Adapter createEObjectToChangesMapEntryAdapter()
  {
    if (eObjectToChangesMapEntryItemProvider == null) {
      eObjectToChangesMapEntryItemProvider = new EObjectToChangesMapEntryItemProvider(this);
    }
    return eObjectToChangesMapEntryItemProvider;
  }
  
  public Adapter createFeatureChangeAdapter()
  {
    if (featureChangeItemProvider == null) {
      featureChangeItemProvider = new FeatureChangeItemProvider(this);
    }
    return featureChangeItemProvider;
  }
  
  public Adapter createListChangeAdapter()
  {
    if (listChangeItemProvider == null) {
      listChangeItemProvider = new ListChangeItemProvider(this);
    }
    return listChangeItemProvider;
  }
  
  public Adapter createResourceChangeAdapter()
  {
    if (resourceChangeItemProvider == null) {
      resourceChangeItemProvider = new ResourceChangeItemProvider(this);
    }
    return resourceChangeItemProvider;
  }
  
  public Adapter createFeatureMapEntryAdapter()
  {
    if (featureMapEntryItemProvider == null) {
      featureMapEntryItemProvider = new FeatureMapEntryItemProvider(this);
    }
    return featureMapEntryItemProvider;
  }
  
  public ComposeableAdapterFactory getRootAdapterFactory()
  {
    return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
  }
  
  public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
  {
    this.parentAdapterFactory = parentAdapterFactory;
  }
  
  public boolean isFactoryForType(Object type)
  {
    return (supportedTypes.contains(type)) || (super.isFactoryForType(type));
  }
  
  public Adapter adapt(Notifier notifier, Object type)
  {
    return super.adapt(notifier, this);
  }
  
  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;
  }
  
  public void addListener(INotifyChangedListener notifyChangedListener)
  {
    changeNotifier.addListener(notifyChangedListener);
  }
  
  public void removeListener(INotifyChangedListener notifyChangedListener)
  {
    changeNotifier.removeListener(notifyChangedListener);
  }
  
  public void fireNotifyChanged(Notification notification)
  {
    changeNotifier.fireNotifyChanged(notification);
    if (parentAdapterFactory != null) {
      parentAdapterFactory.fireNotifyChanged(notification);
    }
  }
  
  public void dispose()
  {
    if (changeDescriptionItemProvider != null) {
      changeDescriptionItemProvider.dispose();
    }
    if (eObjectToChangesMapEntryItemProvider != null) {
      eObjectToChangesMapEntryItemProvider.dispose();
    }
    if (featureChangeItemProvider != null) {
      featureChangeItemProvider.dispose();
    }
    if (listChangeItemProvider != null) {
      listChangeItemProvider.dispose();
    }
    if (resourceChangeItemProvider != null) {
      resourceChangeItemProvider.dispose();
    }
    if (featureMapEntryItemProvider != null) {
      featureMapEntryItemProvider.dispose();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.ChangeItemProviderAdapterFactory
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import java.util.Collection;
import java.util.List;
import java.util.Map.Entry;
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.ecore.change.ChangePackage.Literals;
import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator;
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.IItemPropertyDescriptor;
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;

public class EObjectToChangesMapEntryItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  protected AdapterFactoryItemDelegator itemDelegator;
  
  public EObjectToChangesMapEntryItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
    itemDelegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addKeyPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addKeyPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_EObjectToChangesMapEntry_key_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_EObjectToChangesMapEntry_key_feature", "_UI_EObjectToChangesMapEntry_type"), 
      ChangePackage.Literals.EOBJECT_TO_CHANGES_MAP_ENTRY__KEY, 
      true, 
      false, 
      false, 
      null, 
      null, 
      null));
  }
  
  public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(ChangePackage.Literals.EOBJECT_TO_CHANGES_MAP_ENTRY__VALUE);
    }
    return childrenFeatures;
  }
  
  protected EStructuralFeature getChildFeature(Object object, Object child)
  {
    return super.getChildFeature(object, child);
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/EObjectToChangesMapEntry"));
  }
  
  public String getText(Object object)
  {
    Map.Entry<?, ?> eObjectToChangesMapEntry = (Map.Entry)object;
    return itemDelegator.getText(eObjectToChangesMapEntry.getKey());
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(Map.Entry.class))
    {
    case 1: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return ChangeEditPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.EObjectToChangesMapEntryItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import java.util.Collection;
import java.util.List;
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.ecore.change.ChangePackage.Literals;
import org.eclipse.emf.ecore.change.FeatureChange;
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.IItemPropertyDescriptor;
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;

public class FeatureChangeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public FeatureChangeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addSetPropertyDescriptor(object);
      addValuePropertyDescriptor(object);
      addFeaturePropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addSetPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureChange_set_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureChange_set_feature", "_UI_FeatureChange_type"), 
      ChangePackage.Literals.FEATURE_CHANGE__SET, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addValuePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureChange_value_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureChange_value_feature", "_UI_FeatureChange_type"), 
      ChangePackage.Literals.FEATURE_CHANGE__VALUE, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addFeaturePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureChange_feature_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureChange_feature_feature", "_UI_FeatureChange_type"), 
      ChangePackage.Literals.FEATURE_CHANGE__FEATURE, 
      true, 
      false, 
      false, 
      null, 
      null, 
      null));
  }
  
  public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(ChangePackage.Literals.FEATURE_CHANGE__LIST_CHANGES);
    }
    return childrenFeatures;
  }
  
  protected EStructuralFeature getChildFeature(Object object, Object child)
  {
    return super.getChildFeature(object, child);
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureChange"));
  }
  
  public String getText(Object object)
  {
    String label = ((FeatureChange)object).getFeatureName();
    return 
    
      getString("_UI_FeatureChange_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(FeatureChange.class))
    {
    case 2: 
    case 3: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    case 6: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return ChangeEditPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.FeatureChangeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import java.util.List;
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.change.ChangePackage.Literals;
import org.eclipse.emf.ecore.change.FeatureMapEntry;
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.IItemPropertyDescriptor;
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;

public class FeatureMapEntryItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public FeatureMapEntryItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addFeatureNamePropertyDescriptor(object);
      addDataValuePropertyDescriptor(object);
      addValuePropertyDescriptor(object);
      addFeaturePropertyDescriptor(object);
      addReferenceValuePropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addFeatureNamePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureMapEntry_featureName_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureMapEntry_featureName_feature", "_UI_FeatureMapEntry_type"), 
      ChangePackage.Literals.FEATURE_MAP_ENTRY__FEATURE_NAME, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addDataValuePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureMapEntry_dataValue_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureMapEntry_dataValue_feature", "_UI_FeatureMapEntry_type"), 
      ChangePackage.Literals.FEATURE_MAP_ENTRY__DATA_VALUE, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addValuePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureMapEntry_value_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureMapEntry_value_feature", "_UI_FeatureMapEntry_type"), 
      ChangePackage.Literals.FEATURE_MAP_ENTRY__VALUE, 
      false, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addFeaturePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureMapEntry_feature_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureMapEntry_feature_feature", "_UI_FeatureMapEntry_type"), 
      ChangePackage.Literals.FEATURE_MAP_ENTRY__FEATURE, 
      true, 
      false, 
      false, 
      null, 
      null, 
      null));
  }
  
  protected void addReferenceValuePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_FeatureMapEntry_referenceValue_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_FeatureMapEntry_referenceValue_feature", "_UI_FeatureMapEntry_type"), 
      ChangePackage.Literals.FEATURE_MAP_ENTRY__REFERENCE_VALUE, 
      true, 
      false, 
      false, 
      null, 
      null, 
      null));
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureMapEntry"));
  }
  
  public String getText(Object object)
  {
    String label = ((FeatureMapEntry)object).getFeatureName();
    return 
    
      getString("_UI_FeatureMapEntry_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(FeatureMapEntry.class))
    {
    case 0: 
    case 1: 
    case 2: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    }
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return ChangeEditPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.FeatureMapEntryItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import java.util.Collection;
import java.util.List;
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.ecore.change.ChangeKind;
import org.eclipse.emf.ecore.change.ChangePackage.Literals;
import org.eclipse.emf.ecore.change.ListChange;
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.IItemPropertyDescriptor;
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;

public class ListChangeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public ListChangeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addKindPropertyDescriptor(object);
      addIndexPropertyDescriptor(object);
      addMoveToIndexPropertyDescriptor(object);
      addValuesPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addKindPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ListChange_kind_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ListChange_kind_feature", "_UI_ListChange_type"), 
      ChangePackage.Literals.LIST_CHANGE__KIND, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addIndexPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ListChange_index_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ListChange_index_feature", "_UI_ListChange_type"), 
      ChangePackage.Literals.LIST_CHANGE__INDEX, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addMoveToIndexPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ListChange_moveToIndex_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ListChange_moveToIndex_feature", "_UI_ListChange_type"), 
      ChangePackage.Literals.LIST_CHANGE__MOVE_TO_INDEX, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addValuesPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ListChange_values_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ListChange_values_feature", "_UI_ListChange_type"), 
      ChangePackage.Literals.LIST_CHANGE__VALUES, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(ChangePackage.Literals.LIST_CHANGE__FEATURE_MAP_ENTRY_VALUES);
    }
    return childrenFeatures;
  }
  
  protected EStructuralFeature getChildFeature(Object object, Object child)
  {
    return super.getChildFeature(object, child);
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/ListChange"));
  }
  
  public String getText(Object object)
  {
    ChangeKind labelValue = ((ListChange)object).getKind();
    String label = labelValue == null ? null : labelValue.toString();
    return 
    
      getString("_UI_ListChange_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(ListChange.class))
    {
    case 0: 
    case 2: 
    case 3: 
    case 4: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    case 7: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return ChangeEditPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.ListChangeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.change.provider;

import java.util.Collection;
import java.util.List;
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.ecore.change.ChangePackage.Literals;
import org.eclipse.emf.ecore.change.ResourceChange;
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.IItemPropertyDescriptor;
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;

public class ResourceChangeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public ResourceChangeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addResourceURIPropertyDescriptor(object);
      addResourcePropertyDescriptor(object);
      addValuePropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addResourceURIPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ResourceChange_resourceURI_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ResourceChange_resourceURI_feature", "_UI_ResourceChange_type"), 
      ChangePackage.Literals.RESOURCE_CHANGE__RESOURCE_URI, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addResourcePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ResourceChange_resource_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ResourceChange_resource_feature", "_UI_ResourceChange_type"), 
      ChangePackage.Literals.RESOURCE_CHANGE__RESOURCE, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addValuePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ResourceChange_value_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ResourceChange_value_feature", "_UI_ResourceChange_type"), 
      ChangePackage.Literals.RESOURCE_CHANGE__VALUE, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(ChangePackage.Literals.RESOURCE_CHANGE__LIST_CHANGES);
    }
    return childrenFeatures;
  }
  
  protected EStructuralFeature getChildFeature(Object object, Object child)
  {
    return super.getChildFeature(object, child);
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/ResourceChange"));
  }
  
  public String getText(Object object)
  {
    String label = ((ResourceChange)object).getResourceURI();
    return 
    
      getString("_UI_ResourceChange_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(ResourceChange.class))
    {
    case 0: 
    case 1: 
    case 2: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    case 3: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return ChangeEditPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.change.provider.ResourceChangeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd