public final class EObjectUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getLabel(EObject object)
Returns a String label for the given EObject given the following rules :
if the given
object is null , returns the String "<null>"
if not null, return the name of the EClass of the given object and the hex string
of the object hashcode. |
public static String getLabel(EObject object)
object
is null
, returns the String "<null>"
EClass
of the given object
and the hex string
of the object hashcode. It is followed by the value of the EStructuralFeature
name if the given
object
has one or the first EAttribute with an instance class equals to String. (same rule as
in the ReflectiveItemProvider)object
- the object to get the label from.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.