Author: DartPeng
Date: 2008-09-17 03:05:28 -0400 (Wed, 17 Sep 2008)
New Revision: 10289
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/AbstractResourceConfigItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ConditionTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ImportTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ParamTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfileTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfilesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceConfigTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksResourceListTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/Smooks_1_0EditPlugin.java
Log:
change the package name and the file name
but when I commit there will occur a SVN error.I don't know how to fix the error , so
I use the very foolish way:delete and add
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/AbstractResourceConfigItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/AbstractResourceConfigItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/AbstractResourceConfigItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,112 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-/**
- * This is the item provider adapter for a {@link
org.milyn.xsd.smooks.AbstractResourceConfig} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class AbstractResourceConfigItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AbstractResourceConfigItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_AbstractResourceConfig_type");
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ConditionTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ConditionTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ConditionTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,185 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-import org.milyn.xsd.smooks.ConditionType;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.ConditionType}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ConditionTypeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ConditionTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addValuePropertyDescriptor(object);
- addEvaluatorPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Value feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ConditionType_value_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ConditionType_value_feature", "_UI_ConditionType_type"),
- SmooksPackage.Literals.CONDITION_TYPE__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Evaluator feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addEvaluatorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ConditionType_evaluator_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ConditionType_evaluator_feature", "_UI_ConditionType_type"),
- SmooksPackage.Literals.CONDITION_TYPE__EVALUATOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ConditionType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ConditionType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ConditionType)object).getValue();
- return label == null || label.length() == 0 ?
- getString("_UI_ConditionType_type") :
- getString("_UI_ConditionType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ConditionType.class)) {
- case SmooksPackage.CONDITION_TYPE__VALUE:
- case SmooksPackage.CONDITION_TYPE__EVALUATOR:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/DocumentRootItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/DocumentRootItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,222 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-import org.milyn.xsd.smooks.DocumentRoot;
-import org.milyn.xsd.smooks.SmooksFactory;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.DocumentRoot}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class DocumentRootItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DocumentRootItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__ABSTRACT_RESOURCE_CONFIG);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PARAM);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use
for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns DocumentRoot.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_DocumentRoot_type");
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(DocumentRoot.class)) {
- case SmooksPackage.DOCUMENT_ROOT__ABSTRACT_RESOURCE_CONFIG:
- case SmooksPackage.DOCUMENT_ROOT__CONDITION:
- case SmooksPackage.DOCUMENT_ROOT__IMPORT:
- case SmooksPackage.DOCUMENT_ROOT__PARAM:
- case SmooksPackage.DOCUMENT_ROOT__PROFILE:
- case SmooksPackage.DOCUMENT_ROOT__PROFILES:
- case SmooksPackage.DOCUMENT_ROOT__RESOURCE:
- case SmooksPackage.DOCUMENT_ROOT__RESOURCE_CONFIG:
- case SmooksPackage.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
- SmooksFactory.eINSTANCE.createImportType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE,
- SmooksFactory.eINSTANCE.createProfileType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES,
- SmooksFactory.eINSTANCE.createProfilesType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE,
- SmooksFactory.eINSTANCE.createResourceType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST,
- SmooksFactory.eINSTANCE.createSmooksResourceListType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ImportTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ImportTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ImportTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,147 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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.ViewerNotification;
-
-import org.milyn.xsd.smooks.ImportType;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.ImportType}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ImportTypeItemProvider
- extends AbstractResourceConfigItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ImportTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addFilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the File feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addFilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ImportType_file_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ImportType_file_feature", "_UI_ImportType_type"),
- SmooksPackage.Literals.IMPORT_TYPE__FILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ImportType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ImportType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ImportType)object).getFile();
- return label == null || label.length() == 0 ?
- getString("_UI_ImportType_type") :
- getString("_UI_ImportType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ImportType.class)) {
- case SmooksPackage.IMPORT_TYPE__FILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ParamTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ParamTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ParamTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,312 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.util.FeatureMapUtil;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypeFactory;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-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;
-
-import org.milyn.xsd.smooks.ParamType;
-import org.milyn.xsd.smooks.SmooksFactory;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.ParamType}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ParamTypeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ParamTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addTypePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ParamType_name_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ParamType_name_feature", "_UI_ParamType_type"),
- SmooksPackage.Literals.PARAM_TYPE__NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Type feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ParamType_type_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ParamType_type_feature", "_UI_ParamType_type"),
- SmooksPackage.Literals.PARAM_TYPE__TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(XMLTypePackage.Literals.ANY_TYPE__MIXED);
- childrenFeatures.add(XMLTypePackage.Literals.ANY_TYPE__ANY_ATTRIBUTE);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use
for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns ParamType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ParamType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ParamType)object).getName();
- return label == null || label.length() == 0 ?
- getString("_UI_ParamType_type") :
- getString("_UI_ParamType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ParamType.class)) {
- case SmooksPackage.PARAM_TYPE__NAME:
- case SmooksPackage.PARAM_TYPE__TYPE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- case SmooksPackage.PARAM_TYPE__MIXED:
- case SmooksPackage.PARAM_TYPE__ANY_ATTRIBUTE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
- "")));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
- "")));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
- XMLTypeFactory.eINSTANCE.createProcessingInstruction())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
- "")));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
- SmooksFactory.eINSTANCE.createImportType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__PARAM,
- SmooksFactory.eINSTANCE.createParamType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE,
- SmooksFactory.eINSTANCE.createProfileType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES,
- SmooksFactory.eINSTANCE.createProfilesType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE,
- SmooksFactory.eINSTANCE.createResourceType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType())));
-
- newChildDescriptors.add
- (createChildParameter
- (XMLTypePackage.Literals.ANY_TYPE__MIXED,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST,
- SmooksFactory.eINSTANCE.createSmooksResourceListType())));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfileTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfileTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfileTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,209 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-import org.milyn.xsd.smooks.ProfileType;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.ProfileType}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ProfileTypeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ProfileTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addValuePropertyDescriptor(object);
- addBaseProfilePropertyDescriptor(object);
- addSubProfilesPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Value feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ProfileType_value_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ProfileType_value_feature", "_UI_ProfileType_type"),
- SmooksPackage.Literals.PROFILE_TYPE__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Base Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addBaseProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ProfileType_baseProfile_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ProfileType_baseProfile_feature", "_UI_ProfileType_type"),
- SmooksPackage.Literals.PROFILE_TYPE__BASE_PROFILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Sub Profiles feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addSubProfilesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ProfileType_subProfiles_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ProfileType_subProfiles_feature", "_UI_ProfileType_type"),
- SmooksPackage.Literals.PROFILE_TYPE__SUB_PROFILES,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ProfileType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ProfileType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ProfileType)object).getValue();
- return label == null || label.length() == 0 ?
- getString("_UI_ProfileType_type") :
- getString("_UI_ProfileType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ProfileType.class)) {
- case SmooksPackage.PROFILE_TYPE__VALUE:
- case SmooksPackage.PROFILE_TYPE__BASE_PROFILE:
- case SmooksPackage.PROFILE_TYPE__SUB_PROFILES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfilesTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfilesTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ProfilesTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,171 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-import org.milyn.xsd.smooks.ProfilesType;
-import org.milyn.xsd.smooks.SmooksFactory;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.ProfilesType}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ProfilesTypeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ProfilesTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(SmooksPackage.Literals.PROFILES_TYPE__PROFILE);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use
for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns ProfilesType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ProfilesType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_ProfilesType_type");
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ProfilesType.class)) {
- case SmooksPackage.PROFILES_TYPE__PROFILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.PROFILES_TYPE__PROFILE,
- SmooksFactory.eINSTANCE.createProfileType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceConfigTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceConfigTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceConfigTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,250 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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.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.ViewerNotification;
-
-import org.milyn.xsd.smooks.ResourceConfigType;
-import org.milyn.xsd.smooks.SmooksFactory;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link
org.milyn.xsd.smooks.ResourceConfigType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ResourceConfigTypeItemProvider
- extends AbstractResourceConfigItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceConfigTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addSelectorPropertyDescriptor(object);
- addSelectorNamespacePropertyDescriptor(object);
- addTargetProfilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Selector feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addSelectorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceConfigType_selector_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ResourceConfigType_selector_feature",
"_UI_ResourceConfigType_type"),
- SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Selector Namespace feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addSelectorNamespacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceConfigType_selectorNamespace_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ResourceConfigType_selectorNamespace_feature",
"_UI_ResourceConfigType_type"),
- SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR_NAMESPACE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Target Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceConfigType_targetProfile_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ResourceConfigType_targetProfile_feature",
"_UI_ResourceConfigType_type"),
- SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__TARGET_PROFILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__RESOURCE);
- childrenFeatures.add(SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__CONDITION);
- childrenFeatures.add(SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__PARAM);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use
for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns ResourceConfigType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ResourceConfigType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ResourceConfigType)object).getSelectorNamespace();
- return label == null || label.length() == 0 ?
- getString("_UI_ResourceConfigType_type") :
- getString("_UI_ResourceConfigType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ResourceConfigType.class)) {
- case SmooksPackage.RESOURCE_CONFIG_TYPE__SELECTOR:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__SELECTOR_NAMESPACE:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__TARGET_PROFILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- case SmooksPackage.RESOURCE_CONFIG_TYPE__RESOURCE:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__CONDITION:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__PARAM:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__RESOURCE,
- SmooksFactory.eINSTANCE.createResourceType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,185 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-import org.milyn.xsd.smooks.ResourceType;
-import org.milyn.xsd.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link org.milyn.xsd.smooks.ResourceType}
object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ResourceTypeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addValuePropertyDescriptor(object);
- addTypePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Value feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceType_value_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ResourceType_value_feature", "_UI_ResourceType_type"),
- SmooksPackage.Literals.RESOURCE_TYPE__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Type feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceType_type_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_ResourceType_type_feature", "_UI_ResourceType_type"),
- SmooksPackage.Literals.RESOURCE_TYPE__TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ResourceType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/ResourceType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ResourceType)object).getValue();
- return label == null || label.length() == 0 ?
- getString("_UI_ResourceType_type") :
- getString("_UI_ResourceType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ResourceType.class)) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
- case SmooksPackage.RESOURCE_TYPE__TYPE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksItemProviderAdapterFactory.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksItemProviderAdapterFactory.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,395 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.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;
-
-import org.milyn.xsd.smooks.util.SmooksAdapterFactory;
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers.
- * The adapters generated by this factory convert EMF adapter notifications into calls to
{@link #fireNotifyChanged fireNotifyChanged}.
- * The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class SmooksItemProviderAdapterFactory extends SmooksAdapterFactory implements
ComposeableAdapterFactory, IChangeNotifier, IDisposable {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by {@link #isFactoryForType
isFactoryForType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Collection<Object> supportedTypes = new ArrayList<Object>();
-
- /**
- * This constructs an instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SmooksItemProviderAdapterFactory() {
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ConditionType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ConditionTypeItemProvider conditionTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ConditionType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createConditionTypeAdapter() {
- if (conditionTypeItemProvider == null) {
- conditionTypeItemProvider = new ConditionTypeItemProvider(this);
- }
-
- return conditionTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.DocumentRoot} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DocumentRootItemProvider documentRootItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.DocumentRoot}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createDocumentRootAdapter() {
- if (documentRootItemProvider == null) {
- documentRootItemProvider = new DocumentRootItemProvider(this);
- }
-
- return documentRootItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ImportType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ImportTypeItemProvider importTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ImportType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createImportTypeAdapter() {
- if (importTypeItemProvider == null) {
- importTypeItemProvider = new ImportTypeItemProvider(this);
- }
-
- return importTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ParamType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ParamTypeItemProvider paramTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ParamType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createParamTypeAdapter() {
- if (paramTypeItemProvider == null) {
- paramTypeItemProvider = new ParamTypeItemProvider(this);
- }
-
- return paramTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ProfilesType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ProfilesTypeItemProvider profilesTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ProfilesType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createProfilesTypeAdapter() {
- if (profilesTypeItemProvider == null) {
- profilesTypeItemProvider = new ProfilesTypeItemProvider(this);
- }
-
- return profilesTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ProfileType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ProfileTypeItemProvider profileTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ProfileType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createProfileTypeAdapter() {
- if (profileTypeItemProvider == null) {
- profileTypeItemProvider = new ProfileTypeItemProvider(this);
- }
-
- return profileTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ResourceConfigType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ResourceConfigTypeItemProvider resourceConfigTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ResourceConfigType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createResourceConfigTypeAdapter() {
- if (resourceConfigTypeItemProvider == null) {
- resourceConfigTypeItemProvider = new ResourceConfigTypeItemProvider(this);
- }
-
- return resourceConfigTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.ResourceType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ResourceTypeItemProvider resourceTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.ResourceType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createResourceTypeAdapter() {
- if (resourceTypeItemProvider == null) {
- resourceTypeItemProvider = new ResourceTypeItemProvider(this);
- }
-
- return resourceTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link
org.milyn.xsd.smooks.SmooksResourceListType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SmooksResourceListTypeItemProvider smooksResourceListTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.milyn.xsd.smooks.SmooksResourceListType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSmooksResourceListTypeAdapter() {
- if (smooksResourceListTypeItemProvider == null) {
- smooksResourceListTypeItemProvider = new SmooksResourceListTypeItemProvider(this);
- }
-
- return smooksResourceListTypeItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- 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;
- }
-
- /**
- * This adds a listener.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
- /**
- * This disposes all of the item providers created by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void dispose() {
- if (conditionTypeItemProvider != null) conditionTypeItemProvider.dispose();
- if (documentRootItemProvider != null) documentRootItemProvider.dispose();
- if (importTypeItemProvider != null) importTypeItemProvider.dispose();
- if (paramTypeItemProvider != null) paramTypeItemProvider.dispose();
- if (profilesTypeItemProvider != null) profilesTypeItemProvider.dispose();
- if (profileTypeItemProvider != null) profileTypeItemProvider.dispose();
- if (resourceConfigTypeItemProvider != null) resourceConfigTypeItemProvider.dispose();
- if (resourceTypeItemProvider != null) resourceTypeItemProvider.dispose();
- if (smooksResourceListTypeItemProvider != null)
smooksResourceListTypeItemProvider.dispose();
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksResourceListTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksResourceListTypeItemProvider.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/SmooksResourceListTypeItemProvider.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,268 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.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.util.FeatureMapUtil;
-
-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;
-
-import org.milyn.xsd.smooks.SmooksFactory;
-import org.milyn.xsd.smooks.SmooksPackage;
-import org.milyn.xsd.smooks.SmooksResourceListType;
-
-/**
- * This is the item provider adapter for a {@link
org.milyn.xsd.smooks.SmooksResourceListType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class SmooksResourceListTypeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SmooksResourceListTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addDefaultSelectorPropertyDescriptor(object);
- addDefaultSelectorNamespacePropertyDescriptor(object);
- addDefaultTargetProfilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Default Selector feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addDefaultSelectorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultSelector_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultSelector_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Default Selector Namespace feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addDefaultSelectorNamespacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Default Target Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addDefaultTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultTargetProfile_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES);
- childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use
for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns SmooksResourceListType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object,
getResourceLocator().getImage("full/obj16/SmooksResourceListType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((SmooksResourceListType)object).getDefaultSelectorNamespace();
- return label == null || label.length() == 0 ?
- getString("_UI_SmooksResourceListType_type") :
- getString("_UI_SmooksResourceListType_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any
cached
- * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(SmooksResourceListType.class)) {
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__PROFILES:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES,
- SmooksFactory.eINSTANCE.createProfilesType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
- SmooksFactory.eINSTANCE.createImportType())));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType())));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
- }
-
-}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/Smooks_1_0EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/Smooks_1_0EditPlugin.java 2008-09-17
07:04:54 UTC (rev 10288)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.model.edit/src/org/jboss/tools/smooks/model/provider/Smooks_1_0EditPlugin.java 2008-09-17
07:05:28 UTC (rev 10289)
@@ -1,93 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.milyn.xsd.smooks.provider;
-
-import org.eclipse.emf.common.EMFPlugin;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-/**
- * This is the central singleton for the Smooks_1_0 edit plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public final class Smooks_1_0EditPlugin extends EMFPlugin {
- /**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final Smooks_1_0EditPlugin INSTANCE = new Smooks_1_0EditPlugin();
-
- /**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static Implementation plugin;
-
- /**
- * Create the instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Smooks_1_0EditPlugin() {
- super
- (new ResourceLocator [] {
- });
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the singleton instance.
- * @generated
- */
- @Override
- public ResourceLocator getPluginResourceLocator() {
- return plugin;
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the singleton instance.
- * @generated
- */
- public static Implementation getPlugin() {
- return plugin;
- }
-
- /**
- * The actual implementation of the Eclipse <b>Plugin</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static class Implementation extends EclipsePlugin {
- /**
- * Creates an instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Implementation() {
- super();
-
- // Remember the static instance.
- //
- plugin = this;
- }
- }
-
-}