org.eclipse.xsd.provider
Class XSDParticleItemProvider

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.AdapterImpl
      extended byorg.eclipse.emf.edit.provider.ItemProviderAdapter
          extended byorg.eclipse.xsd.provider.XSDItemProviderAdapter
              extended byorg.eclipse.xsd.provider.XSDConcreteComponentItemProvider
                  extended byorg.eclipse.xsd.provider.XSDComponentItemProvider
                      extended byorg.eclipse.xsd.provider.XSDComplexTypeContentItemProvider
                          extended byorg.eclipse.xsd.provider.XSDParticleItemProvider
All Implemented Interfaces:
Adapter, Adapter.Internal, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider, ResourceLocator

public class XSDParticleItemProvider
extends XSDComplexTypeContentItemProvider
implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource

This is the item provider adpater for a XSDParticle object.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.xsd.provider.XSDItemProviderAdapter
XSDItemProviderAdapter.ItemPropertyDescriptorWithDefault
 
Nested classes inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
ItemProviderAdapter.ChildrenStore, ItemProviderAdapter.ModifiableSingletonEList, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
 
Nested classes inherited from class org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.xsd.provider.XSDItemProviderAdapter
itemDelegator, xsdFactory, xsdPackage
 
Fields inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
adapterFactory, changeNotifier, childrenFeatures, childrenReferences, childrenStoreMap, itemPropertyDescriptors, targets, wrappers, wrappingNeeded
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
XSDParticleItemProvider(AdapterFactory adapterFactory)
          This constructs an instance from a factory and a notifier.
 
Method Summary
 Command createCommand(Object object, EditingDomain domain, Class commandClass, CommandParameter commandParameter)
          This returns Remove and CreateChild commands (at least) that are based on the attributeUse content, not the attributeUse itself.
 Collection getChildren(Object object)
           
 Collection getChildrenFeatures(Object object)
          This specifies how to implement getChildren(java.lang.Object) and is used to deduce an appropriate feature for an AddCommand, RemoveCommand or MoveCommand in createCommand(java.lang.Object, org.eclipse.emf.edit.domain.EditingDomain, java.lang.Class, org.eclipse.emf.edit.command.CommandParameter).
protected  XSDParticleContent getDelegate(XSDParticle xsdParticle)
           
 Object getImage(Object object)
          This returns XSDParticle.gif.
 Collection getNewChildDescriptors(Object object, EditingDomain domain, Object sibling)
          This returns a list of child descriptors based on the particle content, not the particle itself.
 List getPropertyDescriptors(Object object)
          This returns the property descriptors for the adapted class.
 String getText(Object object)
           
 boolean hasChildren(Object object)
           
 void notifyChanged(Notification msg)
          This handles notification by calling fireNotifyChanged.
 
Methods inherited from class org.eclipse.xsd.provider.XSDConcreteComponentItemProvider
createElementPropertyDescriptor, createInitializeCopyCommand
 
Methods inherited from class org.eclipse.xsd.provider.XSDItemProviderAdapter
addModelGroupChildParameters, addSimpleTypeDefinitionChildParameters, createAttributeDeclaration, createAttributeGroupDefinition, createAttributeGroupDefinitionReference, createAttributeUse, createChildParameter, createComplexTypeDefinition, createElementDeclaration, createIdentityConstraintDefinition, createModelGroupDefinition, createNotationDeclaration, createParticle, createSimpleTypeDefinition, getAttributeSiblings, getCreateChildDescription, getCreateChildImage, getCreateChildResult, getCreateChildText, getCreateChildToolTipText, getImageNameQualifier, getNewObjectName, getParent, getParticleOrAttributeUseContent, getTopModelGroup, getTypeText, getTypeTextQualifier, isGlobal, isUniqueAttributeDeclarationName, isUniqueElementDeclarationName
 
Methods inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
addListener, adjustWrapperIndex, adjustWrapperIndices, adjustWrapperIndices, collectNewChildDescriptors, createAddCommand, createAddCommand, createChildParameter, createChildrenStore, createCopyCommand, createCreateChildCommand, createCreateChildCommand, createCreateCopyCommand, createDragAndDropCommand, createItemPropertyDescriptor, createItemPropertyDescriptor, createMoveCommand, createMoveCommand, createRemoveCommand, createRemoveCommand, createReplaceCommand, createReplaceCommand, createSetCommand, createSetCommand, createWrapper, crop, dispose, disposeWrapper, disposeWrappers, factorAddCommand, factorMoveCommand, factorRemoveCommand, fireNotifyChanged, getAdapterFactory, getBaseURL, getChildFeature, getChildReference, getChildrenReferences, getChildrenStore, getEditableValue, getElements, getFeatureText, getFeatureValue, getImage, getPropertyDescriptor, getPropertyValue, getReferenceValue, getResourceLocator, getResourceLocator, getRootAdapterFactory, getSetFeature, getSetFeatures, getString, getString, getString, getString, getString, getString, getString, getString, getTypeText, getTypeText, getUpdateableText, getWrappedValues, isAdapterForType, isEquivalentValue, isPropertySet, isWrappingNeeded, overlayImage, removeListener, resetPropertyValue, setPropertyValue, setTarget, shouldTranslate, unsetTarget, unwrap, unwrapCommandValues, updateChildren, wrap, wrapCommand
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.edit.provider.IEditingDomainItemProvider
getParent
 
Methods inherited from interface org.eclipse.emf.edit.provider.IStructuredItemContentProvider
getElements
 
Methods inherited from interface org.eclipse.emf.edit.provider.ITreeItemContentProvider
getParent
 
Methods inherited from interface org.eclipse.emf.edit.provider.IItemPropertySource
getEditableValue, getPropertyDescriptor
 

Constructor Detail

XSDParticleItemProvider

public XSDParticleItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier.

Method Detail

getDelegate

protected XSDParticleContent getDelegate(XSDParticle xsdParticle)

getPropertyDescriptors

public List getPropertyDescriptors(Object object)
This returns the property descriptors for the adapted class.

Specified by:
getPropertyDescriptors in interface IItemPropertySource
Overrides:
getPropertyDescriptors in class XSDComplexTypeContentItemProvider

getChildrenFeatures

public Collection getChildrenFeatures(Object object)
This specifies how to implement getChildren(java.lang.Object) and is used to deduce an appropriate feature for an AddCommand, RemoveCommand or MoveCommand in createCommand(java.lang.Object, org.eclipse.emf.edit.domain.EditingDomain, java.lang.Class, org.eclipse.emf.edit.command.CommandParameter).


getChildren

public Collection getChildren(Object object)
Specified by:
getChildren in interface IEditingDomainItemProvider

hasChildren

public boolean hasChildren(Object object)
Specified by:
hasChildren in interface ITreeItemContentProvider

getImage

public Object getImage(Object object)
This returns XSDParticle.gif.

Specified by:
getImage in interface IItemLabelProvider

getText

public String getText(Object object)
Specified by:
getText in interface IItemLabelProvider

notifyChanged

public void notifyChanged(Notification msg)
This handles notification by calling fireNotifyChanged.

Specified by:
notifyChanged in interface Adapter
Overrides:
notifyChanged in class XSDComplexTypeContentItemProvider

getNewChildDescriptors

public Collection getNewChildDescriptors(Object object,
                                         EditingDomain domain,
                                         Object sibling)
This returns a list of child descriptors based on the particle content, not the particle itself.

Specified by:
getNewChildDescriptors in interface IEditingDomainItemProvider

createCommand

public Command createCommand(Object object,
                             EditingDomain domain,
                             Class commandClass,
                             CommandParameter commandParameter)
This returns Remove and CreateChild commands (at least) that are based on the attributeUse content, not the attributeUse itself.

Specified by:
createCommand in interface IEditingDomainItemProvider

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.