public class ProjectSpaceItemProvider extends IdentifiableElementItemProvider
ProjectSpace object.
| Constructor and Description |
|---|
ProjectSpaceItemProvider(org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
getChildren(Object object) |
Collection<? extends org.eclipse.emf.ecore.EStructuralFeature> |
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 ItemProviderAdapter.createCommand(java.lang.Object, org.eclipse.emf.edit.domain.EditingDomain, java.lang.Class<? extends org.eclipse.emf.common.command.Command>, org.eclipse.emf.edit.command.CommandParameter). |
String |
getCreateChildText(Object owner,
Object feature,
Object child,
Collection<?> selection)
This returns the label text for
CreateChildCommand. |
Object |
getImage(Object object) |
List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> |
getPropertyDescriptors(Object object)
This returns the property descriptors for the adapted class.
|
org.eclipse.emf.common.util.ResourceLocator |
getResourceLocator()
Return the resource locator for this item provider's resources.
|
String |
getText(Object object)
This returns the label text for the adapted class.
|
void |
notifyChanged(org.eclipse.emf.common.notify.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). |
void |
setTarget(org.eclipse.emf.common.notify.Notifier target) |
addListener, createCommand, crop, dispose, fireNotifyChanged, getAdapterFactory, getBackground, getBackground, getBaseURL, getColumnImage, getColumnText, getCreateChildDescription, getCreateChildImage, getCreateChildResult, getCreateChildToolTipText, getEditableValue, getElements, getFont, getFont, getForeground, getForeground, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyValue, getString, getString, getString, getString, getStyledText, getUpdateableText, hasChildren, isAdapterForType, isPropertySet, removeListener, resetPropertyValue, setPropertyValue, unsetTargetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCommand, getNewChildDescriptors, getParentgetParent, hasChildrenpublic ProjectSpaceItemProvider(org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
adapterFactory - the adapter factory
public List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> getPropertyDescriptors(Object object)
getPropertyDescriptors in interface org.eclipse.emf.edit.provider.IItemPropertySourcegetPropertyDescriptors in class IdentifiableElementItemProviderpublic Collection<? extends org.eclipse.emf.ecore.EStructuralFeature> getChildrenFeatures(Object object)
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<? extends org.eclipse.emf.common.command.Command>, org.eclipse.emf.edit.command.CommandParameter).
getChildrenFeatures in class org.eclipse.emf.edit.provider.ItemProviderAdapterpublic Object getImage(Object object)
getImage in interface org.eclipse.emf.edit.provider.IItemLabelProvidergetImage in class org.eclipse.emf.edit.provider.ItemProviderAdapterItemProviderAdapter.getImage(java.lang.Object)public String getText(Object object)
getText in interface org.eclipse.emf.edit.provider.IItemLabelProvidergetText in class IdentifiableElementItemProviderItemProviderAdapter.getText(java.lang.Object)public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
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). 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). notifyChanged in interface org.eclipse.emf.common.notify.AdapternotifyChanged in class IdentifiableElementItemProviderpublic String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection)
CreateChildCommand.
getCreateChildText in interface org.eclipse.emf.edit.command.CreateChildCommand.HelpergetCreateChildText in class org.eclipse.emf.edit.provider.ItemProviderAdapterpublic org.eclipse.emf.common.util.ResourceLocator getResourceLocator()
getResourceLocator in class IdentifiableElementItemProviderpublic void setTarget(org.eclipse.emf.common.notify.Notifier target)
setTarget in interface org.eclipse.emf.common.notify.AdaptersetTarget in class org.eclipse.emf.edit.provider.ItemProviderAdapterItemProviderAdapter.setTarget(org.eclipse.emf.common.notify.Notifier)public Collection<?> getChildren(Object object)
getChildren in interface org.eclipse.emf.edit.provider.IEditingDomainItemProvidergetChildren in interface org.eclipse.emf.edit.provider.ITreeItemContentProvidergetChildren in class org.eclipse.emf.edit.provider.ItemProviderAdapterCopyright © 2017. All rights reserved.