use of org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode in project titan.EclipsePlug-ins by eclipse.
the class MSCModel method createComponent.
private MSCNode[] createComponent(final String ref, final String time, final Lifeline lifeline, final int occurrence) {
String name = getComponentNameFromReference(ref);
if (!name.contentEquals(this.sutName) && !name.contentEquals(MSCConstants.MTC_NAME) && !name.contentEquals(ref)) {
// $NON-NLS-1$ //$NON-NLS-2$
name = name + " (" + ref + ")";
}
ComponentCreation start = new ComponentCreation(occurrence, lifeline);
start.setName(name);
return new MSCNode[] { start, new TimeStampNode(occurrence, time) };
}
use of org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode in project titan.EclipsePlug-ins by eclipse.
the class MSCModel method testCaseStart.
private MSCNode[] testCaseStart(final String name, final String time, final int width, final int occurrence) {
// Create Test Case Start
TestCaseStart testCaseStart = new TestCaseStart(occurrence, width);
testCaseStart.setName(name);
// Create and add Time Stamp
return new MSCNode[] { testCaseStart, new TimeStampNode(occurrence, time) };
}
use of org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode in project titan.EclipsePlug-ins by eclipse.
the class MSCModel method addSignal.
private MSCNode[] addSignal(final Signal signal, final String ref, final String target, final String name, final String time, final int occurrence) {
Lifeline source = this.lifelines.get(ref);
Lifeline dest = this.lifelines.get(target);
if ((source == null) || (dest == null)) {
return new MSCNode[] {};
}
source.setCurrentEventOccurrence(occurrence);
dest.setCurrentEventOccurrence(occurrence);
signal.setStartLifeline(source);
signal.setEndLifeline(dest);
signal.setName(name);
// Create and add Time Stamp
return new MSCNode[] { signal, new TimeStampNode(occurrence, time) };
}
use of org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode in project titan.EclipsePlug-ins by eclipse.
the class MSCModel method testCaseEnd.
private MSCNode[] testCaseEnd(final String name, final String time, final int width, final int occurrence) {
// Create Test Case End
TestCaseEnd testCaseEnd = new TestCaseEnd(occurrence, name, width);
testCaseEnd.setName(name);
// Create and add Time Stamp
return new MSCNode[] { testCaseEnd, new TimeStampNode(occurrence, time) };
}
Aggregations