org.eclipse.xsd.provider
Class XSDAttributeUseItemProvider

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.XSDAttributeUseItemProvider
All Implemented Interfaces:
Adapter, Adapter.Internal, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider, ResourceLocator

public class XSDAttributeUseItemProvider
extends XSDComponentItemProvider
implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource

This is the item provider adpater for a XSDAttributeUse 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
XSDAttributeUseItemProvider(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)
           
protected  XSDAttributeDeclaration getDelegate(XSDAttributeUse xsdAttributeUse)
           
 Object getImage(Object object)
          This returns XSDAttributeUse.gif.
 Collection getNewChildDescriptors(Object object, EditingDomain domain, Object sibling)
          This returns a list of child descriptors based on the attributeUse content, not the attributeUse itself.
 List getPropertyDescriptors(Object object)
          This returns the property descriptors for the adapted class.
 String getText(Object object)
           
 String getText(Object object, boolean showType)
           
 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

XSDAttributeUseItemProvider

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

Method Detail

getDelegate

protected XSDAttributeDeclaration getDelegate(XSDAttributeUse xsdAttributeUse)

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 XSDComponentItemProvider

getChildrenFeatures

public Collection getChildrenFeatures(Object object)

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 XSDAttributeUse.gif.

Specified by:
getImage in interface IItemLabelProvider

getText

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

getText

public String getText(Object object,
                      boolean showType)

notifyChanged

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

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

getNewChildDescriptors

public Collection getNewChildDescriptors(Object object,
                                         EditingDomain domain,
                                         Object sibling)
This returns a list of child descriptors based on the attributeUse content, not the attributeUse 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.