|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItemProviderAdapter
org.eclipse.egf.model.provider.NamedModelElementWithIdItemProvider
public class NamedModelElementWithIdItemProvider
This is the item provider adapter for a NamedModelElementWithId
object.
Constructor Summary | |
---|---|
NamedModelElementWithIdItemProvider(AdapterFactory adapterFactory_p)
This constructs an instance from a factory and a notifier. |
Method Summary | |
---|---|
protected void |
addDescriptionPropertyDescriptor(Object object)
This adds a property descriptor for the Description feature |
protected void |
addIdPropertyDescriptor(Object object)
This adds a property descriptor for the Id feature |
protected void |
addJavaIdentifierPropertyDescriptor(Object object)
This adds a property descriptor for the Java Identifier feature |
protected void |
addNamePropertyDescriptor(Object object)
This adds a property descriptor for the Name feature |
protected void |
collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object)
This adds org.eclipse.emf.edit.command.CommandParameter s describing the children
that can be created under this object |
protected ItemPropertyDescriptor |
createItemPropertyDescriptor(AdapterFactory adapterFactory_p,
ResourceLocator resourceLocator_p,
String displayName_p,
String description_p,
EStructuralFeature feature_p,
boolean isSettable_p,
boolean multiLine_p,
boolean sortChoices_p,
Object staticImage_p,
String category_p,
String[] filterFlags_p)
|
protected Object |
getFirstElement(Collection<?> collection_p)
Get the first element in given collection. |
Object |
getImage(Object object)
This returns NamedModelElementWithId.gif |
List<IItemPropertyDescriptor> |
getPropertyDescriptors(Object object)
This returns the property descriptors for the adapted class. |
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(Notification notification)
This handles model notifications by calling #updateChildren to update any cached
children and by creating a viewer notification, which it passes to #fireNotifyChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedModelElementWithIdItemProvider(AdapterFactory adapterFactory_p)
Method Detail |
---|
protected ItemPropertyDescriptor createItemPropertyDescriptor(AdapterFactory adapterFactory_p, ResourceLocator resourceLocator_p, String displayName_p, String description_p, EStructuralFeature feature_p, boolean isSettable_p, boolean multiLine_p, boolean sortChoices_p, Object staticImage_p, String category_p, String[] filterFlags_p)
org.eclipse.emf.edit.provider.ItemProviderAdapter#createItemPropertyDescriptor(org.eclipse.emf.common.notify.AdapterFactory,
org.eclipse.emf.common.util.ResourceLocator, java.lang.String, java.lang.String, org.eclipse.emf.ecore.EStructuralFeature, boolean, boolean, boolean,
java.lang.Object, java.lang.String, java.lang.String[])
protected Object getFirstElement(Collection<?> collection_p)
collection_p
-
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
protected void addIdPropertyDescriptor(Object object)
protected void addJavaIdentifierPropertyDescriptor(Object object)
protected void addNamePropertyDescriptor(Object object)
protected void addDescriptionPropertyDescriptor(Object object)
public Object getImage(Object object)
public String getText(Object object)
public void notifyChanged(Notification notification)
#updateChildren
to update any cached
children and by creating a viewer notification, which it passes to #fireNotifyChanged
.
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object)
org.eclipse.emf.edit.command.CommandParameter
s describing the children
that can be created under this object.
public ResourceLocator getResourceLocator()
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.