Search in sources :

Example 1 with SetverdictUnknown

use of org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictUnknown in project titan.EclipsePlug-ins by eclipse.

the class MSCModel method addSetVerdict.

private MSCNode[] addSetVerdict(final String ref, final String name, final String time, final int occurrence) {
    MSCNode[] temp = new MSCNode[2];
    if ((ref == null) || (ref.length() == 0)) {
        SetverdictUnknown setverdictUnknown = new SetverdictUnknown(occurrence, name);
        setverdictUnknown.setName(name);
        temp[0] = setverdictUnknown;
    } else {
        // Get life line
        Lifeline tmpLifeline = this.lifelines.get(ref);
        if (tmpLifeline == null) {
            return new MSCNode[] {};
        }
        SetverdictComp setverdictComp = new SetverdictComp(occurrence, tmpLifeline, name);
        setverdictComp.setName(name);
        temp[0] = setverdictComp;
    }
    // Create and add Time Stamp
    temp[1] = new TimeStampNode(occurrence, time);
    return temp;
}
Also used : TimeStampNode(org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode) SetverdictUnknown(org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictUnknown) Lifeline(org.eclipse.titan.log.viewer.views.msc.ui.core.Lifeline) MSCNode(org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode) SetverdictComp(org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictComp)

Aggregations

Lifeline (org.eclipse.titan.log.viewer.views.msc.ui.core.Lifeline)1 MSCNode (org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode)1 SetverdictComp (org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictComp)1 SetverdictUnknown (org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictUnknown)1 TimeStampNode (org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode)1