org.eclipse.jst.jsf.facesconfig_1.2.2.v201105031140

16:45:55.149 INFO  jd.cli.Main - Decompiling org.eclipse.jst.jsf.facesconfig_1.2.2.v201105031140.jar
package org.eclipse.jst.jsf.facesconfig;

import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigFactory;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage;
import org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigPackageImpl;
import org.eclipse.jst.jsf.facesconfig.util.FacesConfigResourceFactory;
import org.osgi.framework.BundleContext;

public final class FacesConfigPlugin$Implementation
  extends EMFPlugin.EclipsePlugin
{
  public FacesConfigPlugin$Implementation()
  {
    FacesConfigPlugin.access$0(this);
  }
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    
    FacesConfigPackageImpl.init();
    
    getFacesconfigPackage();
    
    FacesConfigResourceFactory.registerDtds();
    
    FacesConfigResourceFactory.register();
  }
  
  public FacesConfigPackage getFacesconfigPackage()
  {
    return FacesConfigPackage.eINSTANCE;
  }
  
  public FacesConfigFactory getFacesconfigFactory()
  {
    return (FacesConfigFactory)getFacesconfigPackage().getEFactoryInstance();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin.Implementation
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig;

import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigFactory;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage;
import org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigPackageImpl;
import org.eclipse.jst.jsf.facesconfig.util.FacesConfigResourceFactory;
import org.osgi.framework.BundleContext;

public final class FacesConfigPlugin
  extends EMFPlugin
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  public static final String FACES_CONFIG_EDITOR_ID = "org.eclipse.jst.jsf.facesconfig.internal.presentation.FacesConfigEditor";
  public static final FacesConfigPlugin INSTANCE = new FacesConfigPlugin();
  private static Implementation plugin;
  
  private FacesConfigPlugin()
  {
    super(new ResourceLocator[0]);
  }
  
  public ResourceLocator getPluginResourceLocator()
  {
    return plugin;
  }
  
  public static Implementation getPlugin()
  {
    return plugin;
  }
  
  public static void write(Exception exception)
  {
    INSTANCE.log(exception);
  }
  
  public static final class Implementation
    extends EMFPlugin.EclipsePlugin
  {
    public Implementation()
    {
      FacesConfigPlugin.plugin = this;
    }
    
    public void start(BundleContext context)
      throws Exception
    {
      super.start(context);
      
      FacesConfigPackageImpl.init();
      
      getFacesconfigPackage();
      
      FacesConfigResourceFactory.registerDtds();
      
      FacesConfigResourceFactory.register();
    }
    
    public FacesConfigPackage getFacesconfigPackage()
    {
      return FacesConfigPackage.eINSTANCE;
    }
    
    public FacesConfigFactory getFacesconfigFactory()
    {
      return (FacesConfigFactory)getFacesconfigPackage().getEFactoryInstance();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst.jsf.facesconfig.emf.AbsoluteOrderingType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigFactory;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage.Literals;

public class AbsoluteOrderingTypeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public AbsoluteOrderingTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);
    }
    return itemPropertyDescriptors;
  }
  
  public Collection getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(FacesConfigPackage.Literals.ABSOLUTE_ORDERING_TYPE__NAME);
      childrenFeatures.add(FacesConfigPackage.Literals.ABSOLUTE_ORDERING_TYPE__OTHERS);
    }
    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/AbsoluteOrderingType"));
  }
  
  public String getText(Object object)
  {
    return getString("_UI_AbsoluteOrderingType_type");
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(AbsoluteOrderingType.class))
    {
    case 0: 
    case 1: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.ABSOLUTE_ORDERING_TYPE__NAME, 
      FacesConfigFactory.eINSTANCE.createNameType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.ABSOLUTE_ORDERING_TYPE__OTHERS, 
      FacesConfigFactory.eINSTANCE.createOrderingOthersType()));
  }
  
  public ResourceLocator getResourceLocator()
  {
    return FacesConfigPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.AbsoluteOrderingTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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.ITableItemLabelProvider;
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;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst.jsf.facesconfig.emf.ActionListenerType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage.Literals;

public class ActionListenerTypeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, ITableItemLabelProvider
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public ActionListenerTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addTextContentPropertyDescriptor(object);
      addIdPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addTextContentPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ActionListenerType_textContent_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ActionListenerType_textContent_feature", "_UI_ActionListenerType_type"), 
      FacesConfigPackage.Literals.ACTION_LISTENER_TYPE__TEXT_CONTENT, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addIdPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ActionListenerType_id_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ActionListenerType_id_feature", "_UI_ActionListenerType_type"), 
      FacesConfigPackage.Literals.ACTION_LISTENER_TYPE__ID, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/ActionListenerType"));
  }
  
  public String getText(Object object)
  {
    String label = ((ActionListenerType)object).getTextContent();
    return (label == null) || (label.length() == 0) ? getString("_UI_ActionListenerType_type") : 
      label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(ActionListenerType.class))
    {
    case 0: 
    case 1: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    }
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return FacesConfigPlugin.INSTANCE;
  }
  
  public Object getColumnImage(Object object, int columnIndex)
  {
    if (columnIndex == 0) {
      return getImage(object);
    }
    return null;
  }
  
  public String getColumnText(Object object, int columnIndex)
  {
    switch (columnIndex)
    {
    case 0: 
      return getText(object);
    case 1: 
      return getString("_UI_ActionListenerType_type");
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.ActionListenerTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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.jst.jsf.facesconfig.emf.ApplicationExtensionType;

public class ApplicationExtensionTypeItemProvider
  extends ExtensionTypeItemProvider
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public ApplicationExtensionTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);
    }
    return itemPropertyDescriptors;
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/ApplicationExtensionType"));
  }
  
  public String getText(Object object)
  {
    String label = ((ApplicationExtensionType)object).getId();
    return 
    
      getString("_UI_ApplicationExtensionType_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.ApplicationExtensionTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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.ITableItemLabelProvider;
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;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst.jsf.facesconfig.emf.ApplicationFactoryType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage.Literals;

public class ApplicationFactoryTypeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, ITableItemLabelProvider
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public ApplicationFactoryTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addTextContentPropertyDescriptor(object);
      addIdPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addTextContentPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationFactoryType_textContent_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationFactoryType_textContent_feature", "_UI_ApplicationFactoryType_type"), 
      FacesConfigPackage.Literals.APPLICATION_FACTORY_TYPE__TEXT_CONTENT, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addIdPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationFactoryType_id_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationFactoryType_id_feature", "_UI_ApplicationFactoryType_type"), 
      FacesConfigPackage.Literals.APPLICATION_FACTORY_TYPE__ID, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/ApplicationFactoryType"));
  }
  
  public String getText(Object object)
  {
    String label = ((ApplicationFactoryType)object).getTextContent();
    return (label == null) || (label.length() == 0) ? getString("_UI_ApplicationFactoryType_type") : 
      label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(ApplicationFactoryType.class))
    {
    case 0: 
    case 1: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    }
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return FacesConfigPlugin.INSTANCE;
  }
  
  public Object getColumnImage(Object object, int columnIndex)
  {
    if (columnIndex == 0) {
      return getImage(object);
    }
    return null;
  }
  
  public String getColumnText(Object object, int columnIndex)
  {
    switch (columnIndex)
    {
    case 0: 
      return getText(object);
    case 1: 
      return getString("_UI_ApplicationFactoryType_type");
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.ApplicationFactoryTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst.jsf.facesconfig.emf.ApplicationType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigFactory;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage.Literals;

public class ApplicationTypeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public ApplicationTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addELResolverPropertyDescriptor(object);
      addSystemEventListenerPropertyDescriptor(object);
      addResourceBundlePropertyDescriptor(object);
      addApplicationExtensionPropertyDescriptor(object);
      addDefaultValidatorsPropertyDescriptor(object);
      addIdPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addIdPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationType_id_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationType_id_feature", "_UI_ApplicationType_type"), 
      FacesConfigPackage.Literals.APPLICATION_TYPE__ID, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addELResolverPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationType_eLResolver_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationType_eLResolver_feature", "_UI_ApplicationType_type"), 
      FacesConfigPackage.Literals.APPLICATION_TYPE__EL_RESOLVER, 
      true, 
      false, 
      true, 
      null, 
      null, 
      null));
  }
  
  protected void addSystemEventListenerPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationType_systemEventListener_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationType_systemEventListener_feature", "_UI_ApplicationType_type"), 
      FacesConfigPackage.Literals.APPLICATION_TYPE__SYSTEM_EVENT_LISTENER, 
      true, 
      false, 
      true, 
      null, 
      null, 
      null));
  }
  
  protected void addResourceBundlePropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationType_resourceBundle_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationType_resourceBundle_feature", "_UI_ApplicationType_type"), 
      FacesConfigPackage.Literals.APPLICATION_TYPE__RESOURCE_BUNDLE, 
      true, 
      false, 
      true, 
      null, 
      null, 
      null));
  }
  
  protected void addApplicationExtensionPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationType_applicationExtension_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationType_applicationExtension_feature", "_UI_ApplicationType_type"), 
      FacesConfigPackage.Literals.APPLICATION_TYPE__APPLICATION_EXTENSION, 
      true, 
      false, 
      true, 
      null, 
      null, 
      null));
  }
  
  protected void addDefaultValidatorsPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_ApplicationType_defaultValidators_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_ApplicationType_defaultValidators_feature", "_UI_ApplicationType_type"), 
      FacesConfigPackage.Literals.APPLICATION_TYPE__DEFAULT_VALIDATORS, 
      true, 
      false, 
      true, 
      null, 
      null, 
      null));
  }
  
  public Collection getChildrenFeatures(Object object)
  {
    if (childrenFeatures == null)
    {
      super.getChildrenFeatures(object);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__ACTION_LISTENER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__DEFAULT_RENDER_KIT_ID);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__MESSAGE_BUNDLE);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__NAVIGATION_HANDLER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__VIEW_HANDLER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__STATE_MANAGER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__PROPERTY_RESOLVER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__VARIABLE_RESOLVER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__RESOURCE_HANDLER);
      childrenFeatures.add(FacesConfigPackage.Literals.APPLICATION_TYPE__LOCALE_CONFIG);
    }
    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/ApplicationType"));
  }
  
  public String getText(Object object)
  {
    String label = ((ApplicationType)object).getId();
    return 
    
      getString("_UI_ApplicationType_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(ApplicationType.class))
    {
    case 15: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    case 0: 
    case 1: 
    case 2: 
    case 3: 
    case 4: 
    case 5: 
    case 7: 
    case 8: 
    case 9: 
    case 11: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
      return;
    }
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__ACTION_LISTENER, 
      FacesConfigFactory.eINSTANCE.createActionListenerType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__DEFAULT_RENDER_KIT_ID, 
      FacesConfigFactory.eINSTANCE.createDefaultRenderKitIdType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__MESSAGE_BUNDLE, 
      FacesConfigFactory.eINSTANCE.createMessageBundleType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__NAVIGATION_HANDLER, 
      FacesConfigFactory.eINSTANCE.createNavigationHandlerType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__VIEW_HANDLER, 
      FacesConfigFactory.eINSTANCE.createViewHandlerType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__STATE_MANAGER, 
      FacesConfigFactory.eINSTANCE.createStateManagerType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__PROPERTY_RESOLVER, 
      FacesConfigFactory.eINSTANCE.createPropertyResolverType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__VARIABLE_RESOLVER, 
      FacesConfigFactory.eINSTANCE.createVariableResolverType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__RESOURCE_HANDLER, 
      FacesConfigFactory.eINSTANCE.createResourceHandlerType()));
    
    newChildDescriptors.add(
      createChildParameter(
      FacesConfigPackage.Literals.APPLICATION_TYPE__LOCALE_CONFIG, 
      FacesConfigFactory.eINSTANCE.createLocaleConfigType()));
  }
  
  public ResourceLocator getResourceLocator()
  {
    return FacesConfigPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.ApplicationTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst.jsf.facesconfig.emf.AttributeClassType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage.Literals;

public class AttributeClassTypeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public AttributeClassTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addTextContentPropertyDescriptor(object);
      addIdPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addTextContentPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_AttributeClassType_textContent_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_AttributeClassType_textContent_feature", "_UI_AttributeClassType_type"), 
      FacesConfigPackage.Literals.ATTRIBUTE_CLASS_TYPE__TEXT_CONTENT, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addIdPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_AttributeClassType_id_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_AttributeClassType_id_feature", "_UI_AttributeClassType_type"), 
      FacesConfigPackage.Literals.ATTRIBUTE_CLASS_TYPE__ID, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/AttributeClassType"));
  }
  
  public String getText(Object object)
  {
    String label = ((AttributeClassType)object).getId();
    return 
    
      getString("_UI_AttributeClassType_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(AttributeClassType.class))
    {
    case 0: 
    case 1: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    }
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return FacesConfigPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.AttributeClassTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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.jst.jsf.facesconfig.emf.AttributeExtensionType;

public class AttributeExtensionTypeItemProvider
  extends ExtensionTypeItemProvider
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public AttributeExtensionTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);
    }
    return itemPropertyDescriptors;
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/AttributeExtensionType"));
  }
  
  public String getText(Object object)
  {
    String label = ((AttributeExtensionType)object).getId();
    return 
    
      getString("_UI_AttributeExtensionType_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.AttributeExtensionTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst.jsf.facesconfig.emf.AttributeNameType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage.Literals;

public class AttributeNameTypeItemProvider
  extends ItemProviderAdapter
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";
  
  public AttributeNameTypeItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null)
    {
      super.getPropertyDescriptors(object);
      
      addTextContentPropertyDescriptor(object);
      addIdPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  
  protected void addTextContentPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_AttributeNameType_textContent_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_AttributeNameType_textContent_feature", "_UI_AttributeNameType_type"), 
      FacesConfigPackage.Literals.ATTRIBUTE_NAME_TYPE__TEXT_CONTENT, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  protected void addIdPropertyDescriptor(Object object)
  {
    itemPropertyDescriptors.add(
      createItemPropertyDescriptor(
      ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), 
      getResourceLocator(), 
      getString("_UI_AttributeNameType_id_feature"), 
      getString("_UI_PropertyDescriptor_description", "_UI_AttributeNameType_id_feature", "_UI_AttributeNameType_type"), 
      FacesConfigPackage.Literals.ATTRIBUTE_NAME_TYPE__ID, 
      true, 
      false, 
      false, 
      ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 
      null, 
      null));
  }
  
  public Object getImage(Object object)
  {
    return overlayImage(object, getResourceLocator().getImage("full/obj16/AttributeNameType"));
  }
  
  public String getText(Object object)
  {
    String label = ((AttributeNameType)object).getId();
    return 
    
      getString("_UI_AttributeNameType_type") + " " + label;
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    switch (notification.getFeatureID(AttributeNameType.class))
    {
    case 0: 
    case 1: 
      fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
      return;
    }
    super.notifyChanged(notification);
  }
  
  protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
  {
    super.collectNewChildDescriptors(newChildDescriptors, object);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return FacesConfigPlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.edit.provider.AttributeNameTypeItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.edit.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.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.ITableItemLabelProvider;
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;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
import org.eclipse.jst
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

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