Search in sources :

Example 6 with BindingInfo

use of org.obeonetwork.dsl.environment.BindingInfo in project InformationSystem by ObeoNetwork.

the class BindingInfoItemProvider method getText.

/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
@Override
public String getText(Object object) {
    String label = " ";
    BindingInfo bindingInfo = (BindingInfo) object;
    if (bindingInfo.getLeft() != null) {
        label += labelProvider.getText(bindingInfo.getLeft());
    } else {
        label += "undefined";
    }
    label += " - ";
    if (bindingInfo.getRight() != null) {
        label += labelProvider.getText(bindingInfo.getRight());
    } else {
        label += "undefined";
    }
    return " ".equals(label) ? getString("_UI_BindingInfo_type") : getString("_UI_BindingInfo_type") + " " + label;
}
Also used : BindingInfo(org.obeonetwork.dsl.environment.BindingInfo)

Aggregations

BindingInfo (org.obeonetwork.dsl.environment.BindingInfo)6 ArrayList (java.util.ArrayList)2 LinkedHashSet (java.util.LinkedHashSet)2 BindingRegistry (org.obeonetwork.dsl.environment.BindingRegistry)2 StructuredType (org.obeonetwork.dsl.environment.StructuredType)2 HashSet (java.util.HashSet)1 EObject (org.eclipse.emf.ecore.EObject)1 EObjectQuery (org.eclipse.sirius.business.api.query.EObjectQuery)1 BoundableElement (org.obeonetwork.dsl.environment.BoundableElement)1 Type (org.obeonetwork.dsl.environment.Type)1 BindingInfoPropertiesEditionPart (org.obeonetwork.dsl.environment.parts.BindingInfoPropertiesEditionPart)1