* @param haltedPosition Current position of halted process
* @return The new event object
*/
public DebuggerEvent createDebuggerEvent(ModelQualifier haltedPosition)
{
DebuggerEvent de = new DebuggerEvent();
de.setEventType(eventType);
de.setException(exception);
if (exception != null)
{
de.setExceptionString(ExceptionUtil.getNestedTrace(exception));
}
if (controlLink != null)
de.setControlLinkQualifier(controlLink.getQualifier());
if (dataLink != null)
de.setDataLinkQualifier(dataLink.getQualifier());
if (sourceSocket != null)
de.setSourceSocketQualifier(sourceSocket.getQualifier());
if (targetSocket != null)
de.setTargetSocketQualifier(targetSocket.getQualifier());
if (sourceParam != null)
de.setSourceParamName(sourceParam.getQualifier());
de.setSourceMemberPath(sourceMemberPath);
if (targetParam != null)
de.setTargetParamName(targetParam.getQualifier());
de.setTargetMemberPath(targetMemberPath);
if (paramValue != null)
{
de.setParamValueString(paramValue.toString());
}
de.setHaltedPosition(haltedPosition);
return de;
}