org.eclipse.uml2.provider
Class WriteStructuralFeatureActionItemProvider
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.edit.provider.ItemProviderAdapter
org.eclipse.emf.ecore.provider.EObjectItemProvider
org.eclipse.emf.ecore.provider.EModelElementItemProvider
org.eclipse.uml2.provider.ElementItemProvider
org.eclipse.uml2.provider.TemplateableElementItemProvider
org.eclipse.uml2.provider.NamedElementItemProvider
org.eclipse.uml2.provider.RedefinableElementItemProvider
org.eclipse.uml2.provider.ActivityNodeItemProvider
org.eclipse.uml2.provider.ExecutableNodeItemProvider
org.eclipse.uml2.provider.ActionItemProvider
org.eclipse.uml2.provider.StructuralFeatureActionItemProvider
org.eclipse.uml2.provider.WriteStructuralFeatureActionItemProvider
- All Implemented Interfaces:
- Adapter, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IItemQualifiedTextProvider, IStructuredItemContentProvider, ITreeItemContentProvider, ResourceLocator
- Direct Known Subclasses:
- AddStructuralFeatureValueActionItemProvider, DurationObservationActionItemProvider, RemoveStructuralFeatureValueActionItemProvider, TimeObservationActionItemProvider
- public class WriteStructuralFeatureActionItemProvider
- extends StructuralFeatureActionItemProvider
- implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
This is the item provider adapter for a WriteStructuralFeatureAction
object.
Methods inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter |
addListener, adjustWrapperIndex, adjustWrapperIndices, adjustWrapperIndices, createAddCommand, createAddCommand, createChildParameter, createChildrenStore, createCommand, createCopyCommand, createCreateChildCommand, createCreateChildCommand, createCreateCopyCommand, createDragAndDropCommand, createInitializeCopyCommand, createMoveCommand, createMoveCommand, createRemoveCommand, createRemoveCommand, createReplaceCommand, createReplaceCommand, createSetCommand, createSetCommand, createWrapper, disposeWrapper, disposeWrappers, factorAddCommand, factorMoveCommand, factorRemoveCommand, fireNotifyChanged, getAdapterFactory, getBaseURL, getChildReference, getChildren, getChildrenReferences, getChildrenStore, getCreateChildDescription, getCreateChildResult, getCreateChildToolTipText, getEditableValue, getElements, getFeatureText, getFeatureValue, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyValue, getReferenceValue, getResourceLocator, getRootAdapterFactory, getSetFeature, getSetFeatures, getString, getString, getString, getString, getTypeText, getUpdateableText, getWrappedValues, hasChildren, isAdapterForType, isEquivalentValue, isPropertySet, isWrappingNeeded, removeListener, resetPropertyValue, setPropertyValue, unwrap, unwrapCommandValues, updateChildren, wrap, wrapCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static final String copyright
-
- See Also:
- Constant Field Values
WriteStructuralFeatureActionItemProvider
public WriteStructuralFeatureActionItemProvider(AdapterFactory adapterFactory)
- This constructs an instance from a factory and a notifier.
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 StructuralFeatureActionItemProvider
addValuePropertyDescriptor
protected void addValuePropertyDescriptor(Object object)
- This adds a property descriptor for the Value feature.
getChildrenFeatures
public Collection getChildrenFeatures(Object object)
- This specifies how to implement
ItemProviderAdapter.getChildren(java.lang.Object)
and is used to deduce an appropriate feature for an
AddCommand
, RemoveCommand
or
MoveCommand
in ItemProviderAdapter.createCommand(java.lang.Object, org.eclipse.emf.edit.domain.EditingDomain, java.lang.Class, org.eclipse.emf.edit.command.CommandParameter)
.
- Overrides:
getChildrenFeatures
in class StructuralFeatureActionItemProvider
getImage
public Object getImage(Object object)
- This returns WriteStructuralFeatureAction.gif.
- Specified by:
getImage
in interface IItemLabelProvider
- Overrides:
getImage
in class StructuralFeatureActionItemProvider
getText
public String getText(Object object)
- This returns the label text for the adapted class.
- Specified by:
getText
in interface IItemLabelProvider
- Overrides:
getText
in class StructuralFeatureActionItemProvider
notifyChanged
public void notifyChanged(Notification notification)
- This handles model notifications by calling
ItemProviderAdapter.updateChildren(org.eclipse.emf.common.notify.Notification)
to update any cached
children and by creating a viewer notification, which it passes to ItemProviderAdapter.fireNotifyChanged(org.eclipse.emf.common.notify.Notification)
.
- Specified by:
notifyChanged
in interface Adapter
- Overrides:
notifyChanged
in class StructuralFeatureActionItemProvider
collectNewChildDescriptors
protected void collectNewChildDescriptors(Collection newChildDescriptors,
Object object)
- This adds to the collection of
CommandParameter
s
describing all of the children that can be created under this object.
- Overrides:
collectNewChildDescriptors
in class StructuralFeatureActionItemProvider
getCreateChildText
public String getCreateChildText(Object owner,
Object feature,
Object child,
Collection selection)
- This returns the label text for
CreateChildCommand
.
- Specified by:
getCreateChildText
in interface CreateChildCommand.Helper
- Overrides:
getCreateChildText
in class StructuralFeatureActionItemProvider
getResourceLocator
public ResourceLocator getResourceLocator()
- Return the resource locator for this item provider's resources.
- Overrides:
getResourceLocator
in class StructuralFeatureActionItemProvider