Class SimpleNameLabelProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNameLabel​(java.lang.Object element)
      Calculates the simple-name based on the type of the passed element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleNameLabelProvider

        public SimpleNameLabelProvider()
    • Method Detail

      • getNameLabel

        public java.lang.String getNameLabel​(java.lang.Object element)
        Calculates the simple-name based on the type of the passed element. If the element is an instance of EObject, the value of the name attribute is returned. If the element is an instance of IEObjectDescription, the value of the QualifiedName.getLastSegment() is returned. A null value is returned otherwise.
        Specified by:
        getNameLabel in interface INameLabelProvider