Search in sources :

Example 6 with CombinedFragment

use of org.obeonetwork.dsl.interaction.CombinedFragment in project InformationSystem by ObeoNetwork.

the class OperandImpl method getFinishingEnd.

/**
 * @generated NOT
 */
@Override
public End getFinishingEnd() {
    End result = null;
    EObject eContainer = eContainer();
    if (eContainer instanceof CombinedFragment) {
        CombinedFragment cf = (CombinedFragment) eContainer;
        result = cf.getFinishingEnd();
        Operand prev = null;
        for (Operand op : cf.getOwnedOperands()) {
            if (this.equals(prev)) {
                result = op.getStartingEnd();
                break;
            } else {
                prev = op;
            }
        }
    }
    return result;
}
Also used : Operand(org.obeonetwork.dsl.interaction.Operand) EObject(org.eclipse.emf.ecore.EObject) End(org.obeonetwork.dsl.interaction.End) CombinedFragment(org.obeonetwork.dsl.interaction.CombinedFragment)

Aggregations

CombinedFragment (org.obeonetwork.dsl.interaction.CombinedFragment)6 End (org.obeonetwork.dsl.interaction.End)4 EObject (org.eclipse.emf.ecore.EObject)3 Operand (org.obeonetwork.dsl.interaction.Operand)2 ArrayList (java.util.ArrayList)1 CompoundEnd (org.obeonetwork.dsl.interaction.CompoundEnd)1 Interaction (org.obeonetwork.dsl.interaction.Interaction)1 Participant (org.obeonetwork.dsl.interaction.Participant)1 CombinedFragmentPropertiesEditionPart (org.obeonetwork.dsl.interaction.parts.CombinedFragmentPropertiesEditionPart)1